pub struct AuditLogClient { /* private fields */ }Expand description
Calls AuditLogService.
An organization’s audit log: a record of each change to who may do what
in it, written when the change is made and never changed afterwards.
It records role bindings created and deleted, members removed, invites
created and deleted, and service accounts created and deleted; and the
organization’s own lifecycle and its projects’: each created, renamed and
deleted (resourcemanager.organization.*, resourcemanager.project.*).
An organization’s log is kept after the organization is deleted.
This API serves a recent window of the log, 90 days unless the platform
sets it longer: a list says where its window starts in
window_start_time, and an older entry is NOT_FOUND here.
Implementations§
Source§impl AuditLogClient
impl AuditLogClient
Sourcepub fn new(client: &Client) -> Self
pub fn new(client: &Client) -> Self
Returns a client of AuditLogService that sends its calls through client.
Sourcepub fn service(&self) -> &Service
pub fn service(&self) -> &Service
The endpoint the client sends its calls to, which also serves the operations its methods answer with.
Sourcepub fn with_options(&self, options: CallOptions) -> Self
pub fn with_options(&self, options: CallOptions) -> Self
The same client, whose calls are sent as options says instead of as the Client’s settings do, such as a mutation that must not be sent twice: .with_options(CallOptions::new().max_attempts(1)). See CallOptions.
Sourcepub async fn get_audit_log_entry(
&self,
request: GetAuditLogEntryRequest,
) -> Result<AuditLogEntry, Error>
pub async fn get_audit_log_entry( &self, request: GetAuditLogEntryRequest, ) -> Result<AuditLogEntry, Error>
Returns an audit log entry. Needs iam.audit_log.list on the
organization.
Sourcepub async fn list_audit_log_entries(
&self,
request: ListAuditLogEntriesRequest,
) -> Result<ListAuditLogEntriesResponse, Error>
pub async fn list_audit_log_entries( &self, request: ListAuditLogEntriesRequest, ) -> Result<ListAuditLogEntriesResponse, Error>
Lists an organization’s audit log entries, most recent first,
optionally only a project’s, an actor’s or an action’s. Needs
iam.audit_log.list on the organization.
Sourcepub fn all_audit_log_entries(
&self,
request: ListAuditLogEntriesRequest,
) -> Pages<AuditLogEntry>
pub fn all_audit_log_entries( &self, request: ListAuditLogEntriesRequest, ) -> Pages<AuditLogEntry>
Returns everything list_audit_log_entries lists from request’s page on, fetching the next page as the stream reaches it. A page that fails ends the stream with its error.