pub struct GoogleIamV1AuditConfig {
pub audit_log_configs: Option<Vec<GoogleIamV1AuditLogConfig>>,
pub service: Option<String>,
}
Expand description
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.
This type is not used in any activity, and only used as part of another schema.
Fields§
§audit_log_configs: Option<Vec<GoogleIamV1AuditLogConfig>>
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§
Source§impl Clone for GoogleIamV1AuditConfig
impl Clone for GoogleIamV1AuditConfig
Source§fn clone(&self) -> GoogleIamV1AuditConfig
fn clone(&self) -> GoogleIamV1AuditConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for GoogleIamV1AuditConfig
impl Debug for GoogleIamV1AuditConfig
Source§impl Default for GoogleIamV1AuditConfig
impl Default for GoogleIamV1AuditConfig
Source§fn default() -> GoogleIamV1AuditConfig
fn default() -> GoogleIamV1AuditConfig
Source§impl<'de> Deserialize<'de> for GoogleIamV1AuditConfig
impl<'de> Deserialize<'de> for GoogleIamV1AuditConfig
Source§fn 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>,
Source§impl Serialize for GoogleIamV1AuditConfig
impl Serialize for GoogleIamV1AuditConfig
impl Part for GoogleIamV1AuditConfig
Auto Trait Implementations§
impl Freeze for GoogleIamV1AuditConfig
impl RefUnwindSafe for GoogleIamV1AuditConfig
impl Send for GoogleIamV1AuditConfig
impl Sync for GoogleIamV1AuditConfig
impl Unpin for GoogleIamV1AuditConfig
impl UnwindSafe for GoogleIamV1AuditConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more