pub struct LogMethods<'a, C>where
C: 'a,{ /* private fields */ }
Expand description
A builder providing access to all methods supported on log resources.
It is not used directly, but through the Logging
hub.
§Example
Instantiate a resource builder
extern crate hyper;
extern crate hyper_rustls;
extern crate google_logging2 as logging2;
use logging2::{Logging, FieldMask, hyper_rustls, hyper_util, yup_oauth2};
let secret: yup_oauth2::ApplicationSecret = Default::default();
let auth = yup_oauth2::InstalledFlowAuthenticator::builder(
secret,
yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect,
).build().await.unwrap();
let client = hyper_util::client::legacy::Client::builder(
hyper_util::rt::TokioExecutor::new()
)
.build(
hyper_rustls::HttpsConnectorBuilder::new()
.with_native_roots()
.unwrap()
.https_or_http()
.enable_http1()
.build()
);
let mut hub = Logging::new(client, auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `delete(...)` and `list(...)`
// to build up your call.
let rb = hub.logs();
Implementations§
Source§impl<'a, C> LogMethods<'a, C>
impl<'a, C> LogMethods<'a, C>
Sourcepub fn delete(&self, log_name: &str) -> LogDeleteCall<'a, C>
pub fn delete(&self, log_name: &str) -> LogDeleteCall<'a, C>
Create a builder to help you perform the following task:
Deletes all the log entries in a log for the _Default Log Bucket. The log reappears if it receives new entries. Log entries written shortly before the delete operation might not be deleted. Entries received after the delete operation with a timestamp before the operation will be deleted.
§Arguments
logName
- Required. The resource name of the log to delete: projects/[PROJECT_ID]/logs/[LOG_ID] organizations/[ORGANIZATION_ID]/logs/[LOG_ID] billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID] folders/[FOLDER_ID]/logs/[LOG_ID][LOG_ID] must be URL-encoded. For example, “projects/my-project-id/logs/syslog”, “organizations/123/logs/cloudaudit.googleapis.com%2Factivity”.For more information about log names, see LogEntry.
Sourcepub fn list(&self, parent: &str) -> LogListCall<'a, C>
pub fn list(&self, parent: &str) -> LogListCall<'a, C>
Create a builder to help you perform the following task:
Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.
§Arguments
parent
- Required. The resource name to list logs for: projects/[PROJECT_ID] organizations/[ORGANIZATION_ID] billingAccounts/[BILLING_ACCOUNT_ID] folders/[FOLDER_ID]
Trait Implementations§
impl<'a, C> MethodsBuilder for LogMethods<'a, C>
Auto Trait Implementations§
impl<'a, C> Freeze for LogMethods<'a, C>
impl<'a, C> !RefUnwindSafe for LogMethods<'a, C>
impl<'a, C> Send for LogMethods<'a, C>where
C: Sync,
impl<'a, C> Sync for LogMethods<'a, C>where
C: Sync,
impl<'a, C> Unpin for LogMethods<'a, C>
impl<'a, C> !UnwindSafe for LogMethods<'a, C>
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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