google_logging2/lib.rs
1// DO NOT EDIT !
2// This file was generated automatically from 'src/generator/templates/api/lib.rs.mako'
3// DO NOT EDIT !
4
5//! This documentation was generated from *Logging* crate version *7.0.0+20251202*, where *20251202* is the exact revision of the *logging:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v7.0.0*.
6//!
7//! Everything else about the *Logging* *v2* API can be found at the
8//! [official documentation site](https://cloud.google.com/logging/docs/).
9//! The original source code is [on github](https://github.com/Byron/google-apis-rs/tree/main/gen/logging2).
10//! # Features
11//!
12//! Handle the following *Resources* with ease from the central [hub](Logging) ...
13//!
14//! * billing accounts
15//! * [*exclusions create*](api::BillingAccountExclusionCreateCall), [*exclusions delete*](api::BillingAccountExclusionDeleteCall), [*exclusions get*](api::BillingAccountExclusionGetCall), [*exclusions list*](api::BillingAccountExclusionListCall), [*exclusions patch*](api::BillingAccountExclusionPatchCall), [*get cmek settings*](api::BillingAccountGetCmekSettingCall), [*get settings*](api::BillingAccountGetSettingCall), [*locations buckets create*](api::BillingAccountLocationBucketCreateCall), [*locations buckets create async*](api::BillingAccountLocationBucketCreateAsyncCall), [*locations buckets delete*](api::BillingAccountLocationBucketDeleteCall), [*locations buckets get*](api::BillingAccountLocationBucketGetCall), [*locations buckets links create*](api::BillingAccountLocationBucketLinkCreateCall), [*locations buckets links delete*](api::BillingAccountLocationBucketLinkDeleteCall), [*locations buckets links get*](api::BillingAccountLocationBucketLinkGetCall), [*locations buckets links list*](api::BillingAccountLocationBucketLinkListCall), [*locations buckets list*](api::BillingAccountLocationBucketListCall), [*locations buckets patch*](api::BillingAccountLocationBucketPatchCall), [*locations buckets undelete*](api::BillingAccountLocationBucketUndeleteCall), [*locations buckets update async*](api::BillingAccountLocationBucketUpdateAsyncCall), [*locations buckets views create*](api::BillingAccountLocationBucketViewCreateCall), [*locations buckets views delete*](api::BillingAccountLocationBucketViewDeleteCall), [*locations buckets views get*](api::BillingAccountLocationBucketViewGetCall), [*locations buckets views list*](api::BillingAccountLocationBucketViewListCall), [*locations buckets views logs list*](api::BillingAccountLocationBucketViewLogListCall), [*locations buckets views patch*](api::BillingAccountLocationBucketViewPatchCall), [*locations get*](api::BillingAccountLocationGetCall), [*locations list*](api::BillingAccountLocationListCall), [*locations operations cancel*](api::BillingAccountLocationOperationCancelCall), [*locations operations get*](api::BillingAccountLocationOperationGetCall), [*locations operations list*](api::BillingAccountLocationOperationListCall), [*locations recent queries list*](api::BillingAccountLocationRecentQueryListCall), [*locations saved queries create*](api::BillingAccountLocationSavedQueryCreateCall), [*locations saved queries delete*](api::BillingAccountLocationSavedQueryDeleteCall), [*locations saved queries get*](api::BillingAccountLocationSavedQueryGetCall), [*locations saved queries list*](api::BillingAccountLocationSavedQueryListCall), [*locations saved queries patch*](api::BillingAccountLocationSavedQueryPatchCall), [*logs delete*](api::BillingAccountLogDeleteCall), [*logs list*](api::BillingAccountLogListCall), [*sinks create*](api::BillingAccountSinkCreateCall), [*sinks delete*](api::BillingAccountSinkDeleteCall), [*sinks get*](api::BillingAccountSinkGetCall), [*sinks list*](api::BillingAccountSinkListCall), [*sinks patch*](api::BillingAccountSinkPatchCall) and [*sinks update*](api::BillingAccountSinkUpdateCall)
16//! * entries
17//! * [*copy*](api::EntryCopyCall), [*list*](api::EntryListCall), [*tail*](api::EntryTailCall) and [*write*](api::EntryWriteCall)
18//! * exclusions
19//! * [*create*](api::ExclusionCreateCall), [*delete*](api::ExclusionDeleteCall), [*get*](api::ExclusionGetCall), [*list*](api::ExclusionListCall) and [*patch*](api::ExclusionPatchCall)
20//! * folders
21//! * [*exclusions create*](api::FolderExclusionCreateCall), [*exclusions delete*](api::FolderExclusionDeleteCall), [*exclusions get*](api::FolderExclusionGetCall), [*exclusions list*](api::FolderExclusionListCall), [*exclusions patch*](api::FolderExclusionPatchCall), [*get cmek settings*](api::FolderGetCmekSettingCall), [*get settings*](api::FolderGetSettingCall), [*locations buckets create*](api::FolderLocationBucketCreateCall), [*locations buckets create async*](api::FolderLocationBucketCreateAsyncCall), [*locations buckets delete*](api::FolderLocationBucketDeleteCall), [*locations buckets get*](api::FolderLocationBucketGetCall), [*locations buckets links create*](api::FolderLocationBucketLinkCreateCall), [*locations buckets links delete*](api::FolderLocationBucketLinkDeleteCall), [*locations buckets links get*](api::FolderLocationBucketLinkGetCall), [*locations buckets links list*](api::FolderLocationBucketLinkListCall), [*locations buckets list*](api::FolderLocationBucketListCall), [*locations buckets patch*](api::FolderLocationBucketPatchCall), [*locations buckets undelete*](api::FolderLocationBucketUndeleteCall), [*locations buckets update async*](api::FolderLocationBucketUpdateAsyncCall), [*locations buckets views create*](api::FolderLocationBucketViewCreateCall), [*locations buckets views delete*](api::FolderLocationBucketViewDeleteCall), [*locations buckets views get*](api::FolderLocationBucketViewGetCall), [*locations buckets views get iam policy*](api::FolderLocationBucketViewGetIamPolicyCall), [*locations buckets views list*](api::FolderLocationBucketViewListCall), [*locations buckets views logs list*](api::FolderLocationBucketViewLogListCall), [*locations buckets views patch*](api::FolderLocationBucketViewPatchCall), [*locations buckets views set iam policy*](api::FolderLocationBucketViewSetIamPolicyCall), [*locations buckets views test iam permissions*](api::FolderLocationBucketViewTestIamPermissionCall), [*locations get*](api::FolderLocationGetCall), [*locations list*](api::FolderLocationListCall), [*locations log scopes create*](api::FolderLocationLogScopeCreateCall), [*locations log scopes delete*](api::FolderLocationLogScopeDeleteCall), [*locations log scopes get*](api::FolderLocationLogScopeGetCall), [*locations log scopes list*](api::FolderLocationLogScopeListCall), [*locations log scopes patch*](api::FolderLocationLogScopePatchCall), [*locations operations cancel*](api::FolderLocationOperationCancelCall), [*locations operations get*](api::FolderLocationOperationGetCall), [*locations operations list*](api::FolderLocationOperationListCall), [*locations recent queries list*](api::FolderLocationRecentQueryListCall), [*locations saved queries create*](api::FolderLocationSavedQueryCreateCall), [*locations saved queries delete*](api::FolderLocationSavedQueryDeleteCall), [*locations saved queries get*](api::FolderLocationSavedQueryGetCall), [*locations saved queries list*](api::FolderLocationSavedQueryListCall), [*locations saved queries patch*](api::FolderLocationSavedQueryPatchCall), [*logs delete*](api::FolderLogDeleteCall), [*logs list*](api::FolderLogListCall), [*sinks create*](api::FolderSinkCreateCall), [*sinks delete*](api::FolderSinkDeleteCall), [*sinks get*](api::FolderSinkGetCall), [*sinks list*](api::FolderSinkListCall), [*sinks patch*](api::FolderSinkPatchCall), [*sinks update*](api::FolderSinkUpdateCall) and [*update settings*](api::FolderUpdateSettingCall)
22//! * [locations](api::Location)
23//! * [*buckets create*](api::LocationBucketCreateCall), [*buckets create async*](api::LocationBucketCreateAsyncCall), [*buckets delete*](api::LocationBucketDeleteCall), [*buckets get*](api::LocationBucketGetCall), [*buckets links create*](api::LocationBucketLinkCreateCall), [*buckets links delete*](api::LocationBucketLinkDeleteCall), [*buckets links get*](api::LocationBucketLinkGetCall), [*buckets links list*](api::LocationBucketLinkListCall), [*buckets list*](api::LocationBucketListCall), [*buckets patch*](api::LocationBucketPatchCall), [*buckets undelete*](api::LocationBucketUndeleteCall), [*buckets update async*](api::LocationBucketUpdateAsyncCall), [*buckets views create*](api::LocationBucketViewCreateCall), [*buckets views delete*](api::LocationBucketViewDeleteCall), [*buckets views get*](api::LocationBucketViewGetCall), [*buckets views get iam policy*](api::LocationBucketViewGetIamPolicyCall), [*buckets views list*](api::LocationBucketViewListCall), [*buckets views patch*](api::LocationBucketViewPatchCall), [*buckets views set iam policy*](api::LocationBucketViewSetIamPolicyCall), [*buckets views test iam permissions*](api::LocationBucketViewTestIamPermissionCall), [*get*](api::LocationGetCall), [*list*](api::LocationListCall), [*operations cancel*](api::LocationOperationCancelCall), [*operations get*](api::LocationOperationGetCall) and [*operations list*](api::LocationOperationListCall)
24//! * logs
25//! * [*delete*](api::LogDeleteCall) and [*list*](api::LogListCall)
26//! * [monitored resource descriptors](api::MonitoredResourceDescriptor)
27//! * [*list*](api::MonitoredResourceDescriptorListCall)
28//! * organizations
29//! * [*exclusions create*](api::OrganizationExclusionCreateCall), [*exclusions delete*](api::OrganizationExclusionDeleteCall), [*exclusions get*](api::OrganizationExclusionGetCall), [*exclusions list*](api::OrganizationExclusionListCall), [*exclusions patch*](api::OrganizationExclusionPatchCall), [*get cmek settings*](api::OrganizationGetCmekSettingCall), [*get settings*](api::OrganizationGetSettingCall), [*locations buckets create*](api::OrganizationLocationBucketCreateCall), [*locations buckets create async*](api::OrganizationLocationBucketCreateAsyncCall), [*locations buckets delete*](api::OrganizationLocationBucketDeleteCall), [*locations buckets get*](api::OrganizationLocationBucketGetCall), [*locations buckets links create*](api::OrganizationLocationBucketLinkCreateCall), [*locations buckets links delete*](api::OrganizationLocationBucketLinkDeleteCall), [*locations buckets links get*](api::OrganizationLocationBucketLinkGetCall), [*locations buckets links list*](api::OrganizationLocationBucketLinkListCall), [*locations buckets list*](api::OrganizationLocationBucketListCall), [*locations buckets patch*](api::OrganizationLocationBucketPatchCall), [*locations buckets undelete*](api::OrganizationLocationBucketUndeleteCall), [*locations buckets update async*](api::OrganizationLocationBucketUpdateAsyncCall), [*locations buckets views create*](api::OrganizationLocationBucketViewCreateCall), [*locations buckets views delete*](api::OrganizationLocationBucketViewDeleteCall), [*locations buckets views get*](api::OrganizationLocationBucketViewGetCall), [*locations buckets views get iam policy*](api::OrganizationLocationBucketViewGetIamPolicyCall), [*locations buckets views list*](api::OrganizationLocationBucketViewListCall), [*locations buckets views logs list*](api::OrganizationLocationBucketViewLogListCall), [*locations buckets views patch*](api::OrganizationLocationBucketViewPatchCall), [*locations buckets views set iam policy*](api::OrganizationLocationBucketViewSetIamPolicyCall), [*locations buckets views test iam permissions*](api::OrganizationLocationBucketViewTestIamPermissionCall), [*locations get*](api::OrganizationLocationGetCall), [*locations list*](api::OrganizationLocationListCall), [*locations log scopes create*](api::OrganizationLocationLogScopeCreateCall), [*locations log scopes delete*](api::OrganizationLocationLogScopeDeleteCall), [*locations log scopes get*](api::OrganizationLocationLogScopeGetCall), [*locations log scopes list*](api::OrganizationLocationLogScopeListCall), [*locations log scopes patch*](api::OrganizationLocationLogScopePatchCall), [*locations operations cancel*](api::OrganizationLocationOperationCancelCall), [*locations operations get*](api::OrganizationLocationOperationGetCall), [*locations operations list*](api::OrganizationLocationOperationListCall), [*locations recent queries list*](api::OrganizationLocationRecentQueryListCall), [*locations saved queries create*](api::OrganizationLocationSavedQueryCreateCall), [*locations saved queries delete*](api::OrganizationLocationSavedQueryDeleteCall), [*locations saved queries get*](api::OrganizationLocationSavedQueryGetCall), [*locations saved queries list*](api::OrganizationLocationSavedQueryListCall), [*locations saved queries patch*](api::OrganizationLocationSavedQueryPatchCall), [*logs delete*](api::OrganizationLogDeleteCall), [*logs list*](api::OrganizationLogListCall), [*sinks create*](api::OrganizationSinkCreateCall), [*sinks delete*](api::OrganizationSinkDeleteCall), [*sinks get*](api::OrganizationSinkGetCall), [*sinks list*](api::OrganizationSinkListCall), [*sinks patch*](api::OrganizationSinkPatchCall), [*sinks update*](api::OrganizationSinkUpdateCall), [*update cmek settings*](api::OrganizationUpdateCmekSettingCall) and [*update settings*](api::OrganizationUpdateSettingCall)
30//! * projects
31//! * [*exclusions create*](api::ProjectExclusionCreateCall), [*exclusions delete*](api::ProjectExclusionDeleteCall), [*exclusions get*](api::ProjectExclusionGetCall), [*exclusions list*](api::ProjectExclusionListCall), [*exclusions patch*](api::ProjectExclusionPatchCall), [*get cmek settings*](api::ProjectGetCmekSettingCall), [*get settings*](api::ProjectGetSettingCall), [*locations buckets create*](api::ProjectLocationBucketCreateCall), [*locations buckets create async*](api::ProjectLocationBucketCreateAsyncCall), [*locations buckets delete*](api::ProjectLocationBucketDeleteCall), [*locations buckets get*](api::ProjectLocationBucketGetCall), [*locations buckets links create*](api::ProjectLocationBucketLinkCreateCall), [*locations buckets links delete*](api::ProjectLocationBucketLinkDeleteCall), [*locations buckets links get*](api::ProjectLocationBucketLinkGetCall), [*locations buckets links list*](api::ProjectLocationBucketLinkListCall), [*locations buckets list*](api::ProjectLocationBucketListCall), [*locations buckets patch*](api::ProjectLocationBucketPatchCall), [*locations buckets undelete*](api::ProjectLocationBucketUndeleteCall), [*locations buckets update async*](api::ProjectLocationBucketUpdateAsyncCall), [*locations buckets views create*](api::ProjectLocationBucketViewCreateCall), [*locations buckets views delete*](api::ProjectLocationBucketViewDeleteCall), [*locations buckets views get*](api::ProjectLocationBucketViewGetCall), [*locations buckets views get iam policy*](api::ProjectLocationBucketViewGetIamPolicyCall), [*locations buckets views list*](api::ProjectLocationBucketViewListCall), [*locations buckets views logs list*](api::ProjectLocationBucketViewLogListCall), [*locations buckets views patch*](api::ProjectLocationBucketViewPatchCall), [*locations buckets views set iam policy*](api::ProjectLocationBucketViewSetIamPolicyCall), [*locations buckets views test iam permissions*](api::ProjectLocationBucketViewTestIamPermissionCall), [*locations get*](api::ProjectLocationGetCall), [*locations list*](api::ProjectLocationListCall), [*locations log scopes create*](api::ProjectLocationLogScopeCreateCall), [*locations log scopes delete*](api::ProjectLocationLogScopeDeleteCall), [*locations log scopes get*](api::ProjectLocationLogScopeGetCall), [*locations log scopes list*](api::ProjectLocationLogScopeListCall), [*locations log scopes patch*](api::ProjectLocationLogScopePatchCall), [*locations operations cancel*](api::ProjectLocationOperationCancelCall), [*locations operations get*](api::ProjectLocationOperationGetCall), [*locations operations list*](api::ProjectLocationOperationListCall), [*locations recent queries list*](api::ProjectLocationRecentQueryListCall), [*locations saved queries create*](api::ProjectLocationSavedQueryCreateCall), [*locations saved queries delete*](api::ProjectLocationSavedQueryDeleteCall), [*locations saved queries get*](api::ProjectLocationSavedQueryGetCall), [*locations saved queries list*](api::ProjectLocationSavedQueryListCall), [*locations saved queries patch*](api::ProjectLocationSavedQueryPatchCall), [*logs delete*](api::ProjectLogDeleteCall), [*logs list*](api::ProjectLogListCall), [*metrics create*](api::ProjectMetricCreateCall), [*metrics delete*](api::ProjectMetricDeleteCall), [*metrics get*](api::ProjectMetricGetCall), [*metrics list*](api::ProjectMetricListCall), [*metrics update*](api::ProjectMetricUpdateCall), [*sinks create*](api::ProjectSinkCreateCall), [*sinks delete*](api::ProjectSinkDeleteCall), [*sinks get*](api::ProjectSinkGetCall), [*sinks list*](api::ProjectSinkListCall), [*sinks patch*](api::ProjectSinkPatchCall) and [*sinks update*](api::ProjectSinkUpdateCall)
32//! * sinks
33//! * [*create*](api::SinkCreateCall), [*delete*](api::SinkDeleteCall), [*get*](api::SinkGetCall), [*list*](api::SinkListCall) and [*update*](api::SinkUpdateCall)
34//!
35//! Other activities are ...
36//!
37//! * [get cmek settings](api::MethodGetCmekSettingCall)
38//! * [get settings](api::MethodGetSettingCall)
39//! * [update cmek settings](api::MethodUpdateCmekSettingCall)
40//! * [update settings](api::MethodUpdateSettingCall)
41//!
42//!
43//!
44//! Not what you are looking for ? Find all other Google APIs in their Rust [documentation index](http://byron.github.io/google-apis-rs).
45//!
46//! # Structure of this Library
47//!
48//! The API is structured into the following primary items:
49//!
50//! * **[Hub](Logging)**
51//! * a central object to maintain state and allow accessing all *Activities*
52//! * creates [*Method Builders*](common::MethodsBuilder) which in turn
53//! allow access to individual [*Call Builders*](common::CallBuilder)
54//! * **[Resources](common::Resource)**
55//! * primary types that you can apply *Activities* to
56//! * a collection of properties and *Parts*
57//! * **[Parts](common::Part)**
58//! * a collection of properties
59//! * never directly used in *Activities*
60//! * **[Activities](common::CallBuilder)**
61//! * operations to apply to *Resources*
62//!
63//! All *structures* are marked with applicable traits to further categorize them and ease browsing.
64//!
65//! Generally speaking, you can invoke *Activities* like this:
66//!
67//! ```Rust,ignore
68//! let r = hub.resource().activity(...).doit().await
69//! ```
70//!
71//! Or specifically ...
72//!
73//! ```ignore
74//! let r = hub.billing_accounts().exclusions_delete(...).doit().await
75//! let r = hub.billing_accounts().locations_buckets_views_delete(...).doit().await
76//! let r = hub.billing_accounts().locations_buckets_delete(...).doit().await
77//! let r = hub.billing_accounts().locations_buckets_undelete(...).doit().await
78//! let r = hub.billing_accounts().locations_operations_cancel(...).doit().await
79//! let r = hub.billing_accounts().locations_saved_queries_delete(...).doit().await
80//! let r = hub.billing_accounts().logs_delete(...).doit().await
81//! let r = hub.billing_accounts().sinks_delete(...).doit().await
82//! let r = hub.exclusions().delete(...).doit().await
83//! let r = hub.folders().exclusions_delete(...).doit().await
84//! let r = hub.folders().locations_buckets_views_delete(...).doit().await
85//! let r = hub.folders().locations_buckets_delete(...).doit().await
86//! let r = hub.folders().locations_buckets_undelete(...).doit().await
87//! let r = hub.folders().locations_log_scopes_delete(...).doit().await
88//! let r = hub.folders().locations_operations_cancel(...).doit().await
89//! let r = hub.folders().locations_saved_queries_delete(...).doit().await
90//! let r = hub.folders().logs_delete(...).doit().await
91//! let r = hub.folders().sinks_delete(...).doit().await
92//! let r = hub.locations().buckets_views_delete(...).doit().await
93//! let r = hub.locations().buckets_delete(...).doit().await
94//! let r = hub.locations().buckets_undelete(...).doit().await
95//! let r = hub.locations().operations_cancel(...).doit().await
96//! let r = hub.logs().delete(...).doit().await
97//! let r = hub.organizations().exclusions_delete(...).doit().await
98//! let r = hub.organizations().locations_buckets_views_delete(...).doit().await
99//! let r = hub.organizations().locations_buckets_delete(...).doit().await
100//! let r = hub.organizations().locations_buckets_undelete(...).doit().await
101//! let r = hub.organizations().locations_log_scopes_delete(...).doit().await
102//! let r = hub.organizations().locations_operations_cancel(...).doit().await
103//! let r = hub.organizations().locations_saved_queries_delete(...).doit().await
104//! let r = hub.organizations().logs_delete(...).doit().await
105//! let r = hub.organizations().sinks_delete(...).doit().await
106//! let r = hub.projects().exclusions_delete(...).doit().await
107//! let r = hub.projects().locations_buckets_views_delete(...).doit().await
108//! let r = hub.projects().locations_buckets_delete(...).doit().await
109//! let r = hub.projects().locations_buckets_undelete(...).doit().await
110//! let r = hub.projects().locations_log_scopes_delete(...).doit().await
111//! let r = hub.projects().locations_operations_cancel(...).doit().await
112//! let r = hub.projects().locations_saved_queries_delete(...).doit().await
113//! let r = hub.projects().logs_delete(...).doit().await
114//! let r = hub.projects().metrics_delete(...).doit().await
115//! let r = hub.projects().sinks_delete(...).doit().await
116//! let r = hub.sinks().delete(...).doit().await
117//! ```
118//!
119//! The `resource()` and `activity(...)` calls create [builders][builder-pattern]. The second one dealing with `Activities`
120//! supports various methods to configure the impending operation (not shown here). It is made such that all required arguments have to be
121//! specified right away (i.e. `(...)`), whereas all optional ones can be [build up][builder-pattern] as desired.
122//! The `doit()` method performs the actual communication with the server and returns the respective result.
123//!
124//! # Usage
125//!
126//! ## Setting up your Project
127//!
128//! To use this library, you would put the following lines into your `Cargo.toml` file:
129//!
130//! ```toml
131//! [dependencies]
132//! google-logging2 = "*"
133//! serde = "1"
134//! serde_json = "1"
135//! ```
136//!
137//! ## A complete example
138//!
139//! ```test_harness,no_run
140//! extern crate hyper;
141//! extern crate hyper_rustls;
142//! extern crate google_logging2 as logging2;
143//! use logging2::api::UndeleteBucketRequest;
144//! use logging2::{Result, Error};
145//! # async fn dox() {
146//! use logging2::{Logging, FieldMask, hyper_rustls, hyper_util, yup_oauth2};
147//!
148//! // Get an ApplicationSecret instance by some means. It contains the `client_id` and
149//! // `client_secret`, among other things.
150//! let secret: yup_oauth2::ApplicationSecret = Default::default();
151//! // Instantiate the authenticator. It will choose a suitable authentication flow for you,
152//! // unless you replace `None` with the desired Flow.
153//! // Provide your own `AuthenticatorDelegate` to adjust the way it operates and get feedback about
154//! // what's going on. You probably want to bring in your own `TokenStorage` to persist tokens and
155//! // retrieve them from storage.
156//! let connector = hyper_rustls::HttpsConnectorBuilder::new()
157//! .with_native_roots()
158//! .unwrap()
159//! .https_only()
160//! .enable_http2()
161//! .build();
162//!
163//! let executor = hyper_util::rt::TokioExecutor::new();
164//! let auth = yup_oauth2::InstalledFlowAuthenticator::with_client(
165//! secret,
166//! yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect,
167//! yup_oauth2::client::CustomHyperClientBuilder::from(
168//! hyper_util::client::legacy::Client::builder(executor).build(connector),
169//! ),
170//! ).build().await.unwrap();
171//!
172//! let client = hyper_util::client::legacy::Client::builder(
173//! hyper_util::rt::TokioExecutor::new()
174//! )
175//! .build(
176//! hyper_rustls::HttpsConnectorBuilder::new()
177//! .with_native_roots()
178//! .unwrap()
179//! .https_or_http()
180//! .enable_http2()
181//! .build()
182//! );
183//! let mut hub = Logging::new(client, auth);
184//! // As the method needs a request, you would usually fill it with the desired information
185//! // into the respective structure. Some of the parts shown here might not be applicable !
186//! // Values shown here are possibly random and not representative !
187//! let mut req = UndeleteBucketRequest::default();
188//!
189//! // You can configure optional parameters by calling the respective setters at will, and
190//! // execute the final call using `doit()`.
191//! // Values shown here are possibly random and not representative !
192//! let result = hub.billing_accounts().locations_buckets_undelete(req, "name")
193//! .doit().await;
194//!
195//! match result {
196//! Err(e) => match e {
197//! // The Error enum provides details about what exactly happened.
198//! // You can also just use its `Debug`, `Display` or `Error` traits
199//! Error::HttpError(_)
200//! |Error::Io(_)
201//! |Error::MissingAPIKey
202//! |Error::MissingToken(_)
203//! |Error::Cancelled
204//! |Error::UploadSizeLimitExceeded(_, _)
205//! |Error::Failure(_)
206//! |Error::BadRequest(_)
207//! |Error::FieldClash(_)
208//! |Error::JsonDecodeError(_, _) => println!("{}", e),
209//! },
210//! Ok(res) => println!("Success: {:?}", res),
211//! }
212//! # }
213//! ```
214//! ## Handling Errors
215//!
216//! All errors produced by the system are provided either as [Result](common::Result) enumeration as return value of
217//! the doit() methods, or handed as possibly intermediate results to either the
218//! [Hub Delegate](common::Delegate), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html).
219//!
220//! When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This
221//! makes the system potentially resilient to all kinds of errors.
222//!
223//! ## Uploads and Downloads
224//! If a method supports downloads, the response body, which is part of the [Result](common::Result), should be
225//! read by you to obtain the media.
226//! If such a method also supports a [Response Result](common::ResponseResult), it will return that by default.
227//! You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making
228//! this call: `.param("alt", "media")`.
229//!
230//! Methods supporting uploads can do so using up to 2 different protocols:
231//! *simple* and *resumable*. The distinctiveness of each is represented by customized
232//! `doit(...)` methods, which are then named `upload(...)` and `upload_resumable(...)` respectively.
233//!
234//! ## Customization and Callbacks
235//!
236//! You may alter the way an `doit()` method is called by providing a [delegate](common::Delegate) to the
237//! [Method Builder](common::CallBuilder) before making the final `doit()` call.
238//! Respective methods will be called to provide progress information, as well as determine whether the system should
239//! retry on failure.
240//!
241//! The [delegate trait](common::Delegate) is default-implemented, allowing you to customize it with minimal effort.
242//!
243//! ## Optional Parts in Server-Requests
244//!
245//! All structures provided by this library are made to be [encodable](common::RequestValue) and
246//! [decodable](common::ResponseResult) via *json*. Optionals are used to indicate that partial requests are responses
247//! are valid.
248//! Most optionals are are considered [Parts](common::Part) which are identifiable by name, which will be sent to
249//! the server to indicate either the set parts of the request or the desired parts in the response.
250//!
251//! ## Builder Arguments
252//!
253//! Using [method builders](common::CallBuilder), you are able to prepare an action call by repeatedly calling it's methods.
254//! These will always take a single argument, for which the following statements are true.
255//!
256//! * [PODs][wiki-pod] are handed by copy
257//! * strings are passed as `&str`
258//! * [request values](common::RequestValue) are moved
259//!
260//! Arguments will always be copied or cloned into the builder, to make them independent of their original life times.
261//!
262//! [wiki-pod]: http://en.wikipedia.org/wiki/Plain_old_data_structure
263//! [builder-pattern]: http://en.wikipedia.org/wiki/Builder_pattern
264//! [google-go-api]: https://github.com/google/google-api-go-client
265//!
266//! ## Cargo Features
267//!
268//! * `utoipa` - Add support for [utoipa](https://crates.io/crates/utoipa) and derive `utoipa::ToSchema` on all
269//! the types. You'll have to import and register the required types in `#[openapi(schemas(...))]`, otherwise the
270//! generated `openapi` spec would be invalid.
271//!
272//!
273//!
274
275// Unused attributes happen thanks to defined, but unused structures We don't
276// warn about this, as depending on the API, some data structures or facilities
277// are never used. Instead of pre-determining this, we just disable the lint.
278// It's manually tuned to not have any unused imports in fully featured APIs.
279// Same with unused_mut.
280#![allow(unused_imports, unused_mut, dead_code)]
281
282// DO NOT EDIT !
283// This file was generated automatically from 'src/generator/templates/api/lib.rs.mako'
284// DO NOT EDIT !
285
286pub extern crate hyper;
287pub extern crate hyper_rustls;
288pub extern crate hyper_util;
289#[cfg(feature = "yup-oauth2")]
290pub extern crate yup_oauth2;
291
292pub extern crate google_apis_common as common;
293pub use common::{Delegate, Error, FieldMask, Result};
294
295pub mod api;
296pub use api::Logging;