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 *6.0.0+20240531*, where *20240531* is the exact revision of the *logging:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v6.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 list*](api::BillingAccountLocationSavedQueryListCall), [*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 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 list*](api::FolderLocationSavedQueryListCall), [*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 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 list*](api::OrganizationLocationSavedQueryListCall), [*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 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 list*](api::ProjectLocationSavedQueryListCall), [*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_operations_cancel(...).doit().await
88//! let r = hub.folders().locations_saved_queries_delete(...).doit().await
89//! let r = hub.folders().logs_delete(...).doit().await
90//! let r = hub.folders().sinks_delete(...).doit().await
91//! let r = hub.locations().buckets_views_delete(...).doit().await
92//! let r = hub.locations().buckets_delete(...).doit().await
93//! let r = hub.locations().buckets_undelete(...).doit().await
94//! let r = hub.locations().operations_cancel(...).doit().await
95//! let r = hub.logs().delete(...).doit().await
96//! let r = hub.organizations().exclusions_delete(...).doit().await
97//! let r = hub.organizations().locations_buckets_views_delete(...).doit().await
98//! let r = hub.organizations().locations_buckets_delete(...).doit().await
99//! let r = hub.organizations().locations_buckets_undelete(...).doit().await
100//! let r = hub.organizations().locations_operations_cancel(...).doit().await
101//! let r = hub.organizations().locations_saved_queries_delete(...).doit().await
102//! let r = hub.organizations().logs_delete(...).doit().await
103//! let r = hub.organizations().sinks_delete(...).doit().await
104//! let r = hub.projects().exclusions_delete(...).doit().await
105//! let r = hub.projects().locations_buckets_views_delete(...).doit().await
106//! let r = hub.projects().locations_buckets_delete(...).doit().await
107//! let r = hub.projects().locations_buckets_undelete(...).doit().await
108//! let r = hub.projects().locations_operations_cancel(...).doit().await
109//! let r = hub.projects().locations_saved_queries_delete(...).doit().await
110//! let r = hub.projects().logs_delete(...).doit().await
111//! let r = hub.projects().metrics_delete(...).doit().await
112//! let r = hub.projects().sinks_delete(...).doit().await
113//! let r = hub.sinks().delete(...).doit().await
114//! ```
115//!
116//! The `resource()` and `activity(...)` calls create [builders][builder-pattern]. The second one dealing with `Activities`
117//! supports various methods to configure the impending operation (not shown here). It is made such that all required arguments have to be
118//! specified right away (i.e. `(...)`), whereas all optional ones can be [build up][builder-pattern] as desired.
119//! The `doit()` method performs the actual communication with the server and returns the respective result.
120//!
121//! # Usage
122//!
123//! ## Setting up your Project
124//!
125//! To use this library, you would put the following lines into your `Cargo.toml` file:
126//!
127//! ```toml
128//! [dependencies]
129//! google-logging2 = "*"
130//! serde = "1"
131//! serde_json = "1"
132//! ```
133//!
134//! ## A complete example
135//!
136//! ```test_harness,no_run
137//! extern crate hyper;
138//! extern crate hyper_rustls;
139//! extern crate google_logging2 as logging2;
140//! use logging2::api::UndeleteBucketRequest;
141//! use logging2::{Result, Error};
142//! # async fn dox() {
143//! use logging2::{Logging, FieldMask, hyper_rustls, hyper_util, yup_oauth2};
144//!
145//! // Get an ApplicationSecret instance by some means. It contains the `client_id` and
146//! // `client_secret`, among other things.
147//! let secret: yup_oauth2::ApplicationSecret = Default::default();
148//! // Instantiate the authenticator. It will choose a suitable authentication flow for you,
149//! // unless you replace `None` with the desired Flow.
150//! // Provide your own `AuthenticatorDelegate` to adjust the way it operates and get feedback about
151//! // what's going on. You probably want to bring in your own `TokenStorage` to persist tokens and
152//! // retrieve them from storage.
153//! let auth = yup_oauth2::InstalledFlowAuthenticator::builder(
154//! secret,
155//! yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect,
156//! ).build().await.unwrap();
157//!
158//! let client = hyper_util::client::legacy::Client::builder(
159//! hyper_util::rt::TokioExecutor::new()
160//! )
161//! .build(
162//! hyper_rustls::HttpsConnectorBuilder::new()
163//! .with_native_roots()
164//! .unwrap()
165//! .https_or_http()
166//! .enable_http1()
167//! .build()
168//! );
169//! let mut hub = Logging::new(client, auth);
170//! // As the method needs a request, you would usually fill it with the desired information
171//! // into the respective structure. Some of the parts shown here might not be applicable !
172//! // Values shown here are possibly random and not representative !
173//! let mut req = UndeleteBucketRequest::default();
174//!
175//! // You can configure optional parameters by calling the respective setters at will, and
176//! // execute the final call using `doit()`.
177//! // Values shown here are possibly random and not representative !
178//! let result = hub.billing_accounts().locations_buckets_undelete(req, "name")
179//! .doit().await;
180//!
181//! match result {
182//! Err(e) => match e {
183//! // The Error enum provides details about what exactly happened.
184//! // You can also just use its `Debug`, `Display` or `Error` traits
185//! Error::HttpError(_)
186//! |Error::Io(_)
187//! |Error::MissingAPIKey
188//! |Error::MissingToken(_)
189//! |Error::Cancelled
190//! |Error::UploadSizeLimitExceeded(_, _)
191//! |Error::Failure(_)
192//! |Error::BadRequest(_)
193//! |Error::FieldClash(_)
194//! |Error::JsonDecodeError(_, _) => println!("{}", e),
195//! },
196//! Ok(res) => println!("Success: {:?}", res),
197//! }
198//! # }
199//! ```
200//! ## Handling Errors
201//!
202//! All errors produced by the system are provided either as [Result](common::Result) enumeration as return value of
203//! the doit() methods, or handed as possibly intermediate results to either the
204//! [Hub Delegate](common::Delegate), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html).
205//!
206//! When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This
207//! makes the system potentially resilient to all kinds of errors.
208//!
209//! ## Uploads and Downloads
210//! If a method supports downloads, the response body, which is part of the [Result](common::Result), should be
211//! read by you to obtain the media.
212//! If such a method also supports a [Response Result](common::ResponseResult), it will return that by default.
213//! 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
214//! this call: `.param("alt", "media")`.
215//!
216//! Methods supporting uploads can do so using up to 2 different protocols:
217//! *simple* and *resumable*. The distinctiveness of each is represented by customized
218//! `doit(...)` methods, which are then named `upload(...)` and `upload_resumable(...)` respectively.
219//!
220//! ## Customization and Callbacks
221//!
222//! You may alter the way an `doit()` method is called by providing a [delegate](common::Delegate) to the
223//! [Method Builder](common::CallBuilder) before making the final `doit()` call.
224//! Respective methods will be called to provide progress information, as well as determine whether the system should
225//! retry on failure.
226//!
227//! The [delegate trait](common::Delegate) is default-implemented, allowing you to customize it with minimal effort.
228//!
229//! ## Optional Parts in Server-Requests
230//!
231//! All structures provided by this library are made to be [encodable](common::RequestValue) and
232//! [decodable](common::ResponseResult) via *json*. Optionals are used to indicate that partial requests are responses
233//! are valid.
234//! Most optionals are are considered [Parts](common::Part) which are identifiable by name, which will be sent to
235//! the server to indicate either the set parts of the request or the desired parts in the response.
236//!
237//! ## Builder Arguments
238//!
239//! Using [method builders](common::CallBuilder), you are able to prepare an action call by repeatedly calling it's methods.
240//! These will always take a single argument, for which the following statements are true.
241//!
242//! * [PODs][wiki-pod] are handed by copy
243//! * strings are passed as `&str`
244//! * [request values](common::RequestValue) are moved
245//!
246//! Arguments will always be copied or cloned into the builder, to make them independent of their original life times.
247//!
248//! [wiki-pod]: http://en.wikipedia.org/wiki/Plain_old_data_structure
249//! [builder-pattern]: http://en.wikipedia.org/wiki/Builder_pattern
250//! [google-go-api]: https://github.com/google/google-api-go-client
251//!
252//! ## Cargo Features
253//!
254//! * `utoipa` - Add support for [utoipa](https://crates.io/crates/utoipa) and derive `utoipa::ToSchema` on all
255//! the types. You'll have to import and register the required types in `#[openapi(schemas(...))]`, otherwise the
256//! generated `openapi` spec would be invalid.
257//!
258//!
259//!
260
261// Unused attributes happen thanks to defined, but unused structures We don't
262// warn about this, as depending on the API, some data structures or facilities
263// are never used. Instead of pre-determining this, we just disable the lint.
264// It's manually tuned to not have any unused imports in fully featured APIs.
265// Same with unused_mut.
266#![allow(unused_imports, unused_mut, dead_code)]
267
268// DO NOT EDIT !
269// This file was generated automatically from 'src/generator/templates/api/lib.rs.mako'
270// DO NOT EDIT !
271
272pub extern crate hyper;
273pub extern crate hyper_rustls;
274pub extern crate hyper_util;
275#[cfg(feature = "yup-oauth2")]
276pub extern crate yup_oauth2;
277
278pub extern crate google_apis_common as common;
279pub use common::{Delegate, Error, FieldMask, Result};
280
281pub mod api;
282pub use api::Logging;