google_tagmanager2/
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 *Tag Manager* crate version *7.0.0+20251210*, where *20251210* is the exact revision of the *tagmanager:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v7.0.0*.
6//!
7//! Everything else about the *Tag Manager* *v2* API can be found at the
8//! [official documentation site](https://developers.google.com/tag-manager).
9//! The original source code is [on github](https://github.com/Byron/google-apis-rs/tree/main/gen/tagmanager2).
10//! # Features
11//!
12//! Handle the following *Resources* with ease from the central [hub](TagManager) ...
13//!
14//! * [accounts](api::Account)
15//!  * [*containers combine*](api::AccountContainerCombineCall), [*containers create*](api::AccountContainerCreateCall), [*containers delete*](api::AccountContainerDeleteCall), [*containers destinations get*](api::AccountContainerDestinationGetCall), [*containers destinations link*](api::AccountContainerDestinationLinkCall), [*containers destinations list*](api::AccountContainerDestinationListCall), [*containers environments create*](api::AccountContainerEnvironmentCreateCall), [*containers environments delete*](api::AccountContainerEnvironmentDeleteCall), [*containers environments get*](api::AccountContainerEnvironmentGetCall), [*containers environments list*](api::AccountContainerEnvironmentListCall), [*containers environments reauthorize*](api::AccountContainerEnvironmentReauthorizeCall), [*containers environments update*](api::AccountContainerEnvironmentUpdateCall), [*containers get*](api::AccountContainerGetCall), [*containers list*](api::AccountContainerListCall), [*containers lookup*](api::AccountContainerLookupCall), [*containers move_tag_id*](api::AccountContainerMoveTagIdCall), [*containers snippet*](api::AccountContainerSnippetCall), [*containers update*](api::AccountContainerUpdateCall), [*containers version_headers latest*](api::AccountContainerVersionHeaderLatestCall), [*containers version_headers list*](api::AccountContainerVersionHeaderListCall), [*containers versions delete*](api::AccountContainerVersionDeleteCall), [*containers versions get*](api::AccountContainerVersionGetCall), [*containers versions live*](api::AccountContainerVersionLiveCall), [*containers versions publish*](api::AccountContainerVersionPublishCall), [*containers versions set_latest*](api::AccountContainerVersionSetLatestCall), [*containers versions undelete*](api::AccountContainerVersionUndeleteCall), [*containers versions update*](api::AccountContainerVersionUpdateCall), [*containers workspaces built_in_variables create*](api::AccountContainerWorkspaceBuiltInVariableCreateCall), [*containers workspaces built_in_variables delete*](api::AccountContainerWorkspaceBuiltInVariableDeleteCall), [*containers workspaces built_in_variables list*](api::AccountContainerWorkspaceBuiltInVariableListCall), [*containers workspaces built_in_variables revert*](api::AccountContainerWorkspaceBuiltInVariableRevertCall), [*containers workspaces bulk_update*](api::AccountContainerWorkspaceBulkUpdateCall), [*containers workspaces clients create*](api::AccountContainerWorkspaceClientCreateCall), [*containers workspaces clients delete*](api::AccountContainerWorkspaceClientDeleteCall), [*containers workspaces clients get*](api::AccountContainerWorkspaceClientGetCall), [*containers workspaces clients list*](api::AccountContainerWorkspaceClientListCall), [*containers workspaces clients revert*](api::AccountContainerWorkspaceClientRevertCall), [*containers workspaces clients update*](api::AccountContainerWorkspaceClientUpdateCall), [*containers workspaces create*](api::AccountContainerWorkspaceCreateCall), [*containers workspaces create_version*](api::AccountContainerWorkspaceCreateVersionCall), [*containers workspaces delete*](api::AccountContainerWorkspaceDeleteCall), [*containers workspaces folders create*](api::AccountContainerWorkspaceFolderCreateCall), [*containers workspaces folders delete*](api::AccountContainerWorkspaceFolderDeleteCall), [*containers workspaces folders entities*](api::AccountContainerWorkspaceFolderEntityCall), [*containers workspaces folders get*](api::AccountContainerWorkspaceFolderGetCall), [*containers workspaces folders list*](api::AccountContainerWorkspaceFolderListCall), [*containers workspaces folders move_entities_to_folder*](api::AccountContainerWorkspaceFolderMoveEntitiesToFolderCall), [*containers workspaces folders revert*](api::AccountContainerWorkspaceFolderRevertCall), [*containers workspaces folders update*](api::AccountContainerWorkspaceFolderUpdateCall), [*containers workspaces get*](api::AccountContainerWorkspaceGetCall), [*containers workspaces get status*](api::AccountContainerWorkspaceGetStatuCall), [*containers workspaces gtag_config create*](api::AccountContainerWorkspaceGtagConfigCreateCall), [*containers workspaces gtag_config delete*](api::AccountContainerWorkspaceGtagConfigDeleteCall), [*containers workspaces gtag_config get*](api::AccountContainerWorkspaceGtagConfigGetCall), [*containers workspaces gtag_config list*](api::AccountContainerWorkspaceGtagConfigListCall), [*containers workspaces gtag_config update*](api::AccountContainerWorkspaceGtagConfigUpdateCall), [*containers workspaces list*](api::AccountContainerWorkspaceListCall), [*containers workspaces quick_preview*](api::AccountContainerWorkspaceQuickPreviewCall), [*containers workspaces resolve_conflict*](api::AccountContainerWorkspaceResolveConflictCall), [*containers workspaces sync*](api::AccountContainerWorkspaceSyncCall), [*containers workspaces tags create*](api::AccountContainerWorkspaceTagCreateCall), [*containers workspaces tags delete*](api::AccountContainerWorkspaceTagDeleteCall), [*containers workspaces tags get*](api::AccountContainerWorkspaceTagGetCall), [*containers workspaces tags list*](api::AccountContainerWorkspaceTagListCall), [*containers workspaces tags revert*](api::AccountContainerWorkspaceTagRevertCall), [*containers workspaces tags update*](api::AccountContainerWorkspaceTagUpdateCall), [*containers workspaces templates create*](api::AccountContainerWorkspaceTemplateCreateCall), [*containers workspaces templates delete*](api::AccountContainerWorkspaceTemplateDeleteCall), [*containers workspaces templates get*](api::AccountContainerWorkspaceTemplateGetCall), [*containers workspaces templates import_from_gallery*](api::AccountContainerWorkspaceTemplateImportFromGalleryCall), [*containers workspaces templates list*](api::AccountContainerWorkspaceTemplateListCall), [*containers workspaces templates revert*](api::AccountContainerWorkspaceTemplateRevertCall), [*containers workspaces templates update*](api::AccountContainerWorkspaceTemplateUpdateCall), [*containers workspaces transformations create*](api::AccountContainerWorkspaceTransformationCreateCall), [*containers workspaces transformations delete*](api::AccountContainerWorkspaceTransformationDeleteCall), [*containers workspaces transformations get*](api::AccountContainerWorkspaceTransformationGetCall), [*containers workspaces transformations list*](api::AccountContainerWorkspaceTransformationListCall), [*containers workspaces transformations revert*](api::AccountContainerWorkspaceTransformationRevertCall), [*containers workspaces transformations update*](api::AccountContainerWorkspaceTransformationUpdateCall), [*containers workspaces triggers create*](api::AccountContainerWorkspaceTriggerCreateCall), [*containers workspaces triggers delete*](api::AccountContainerWorkspaceTriggerDeleteCall), [*containers workspaces triggers get*](api::AccountContainerWorkspaceTriggerGetCall), [*containers workspaces triggers list*](api::AccountContainerWorkspaceTriggerListCall), [*containers workspaces triggers revert*](api::AccountContainerWorkspaceTriggerRevertCall), [*containers workspaces triggers update*](api::AccountContainerWorkspaceTriggerUpdateCall), [*containers workspaces update*](api::AccountContainerWorkspaceUpdateCall), [*containers workspaces variables create*](api::AccountContainerWorkspaceVariableCreateCall), [*containers workspaces variables delete*](api::AccountContainerWorkspaceVariableDeleteCall), [*containers workspaces variables get*](api::AccountContainerWorkspaceVariableGetCall), [*containers workspaces variables list*](api::AccountContainerWorkspaceVariableListCall), [*containers workspaces variables revert*](api::AccountContainerWorkspaceVariableRevertCall), [*containers workspaces variables update*](api::AccountContainerWorkspaceVariableUpdateCall), [*containers workspaces zones create*](api::AccountContainerWorkspaceZoneCreateCall), [*containers workspaces zones delete*](api::AccountContainerWorkspaceZoneDeleteCall), [*containers workspaces zones get*](api::AccountContainerWorkspaceZoneGetCall), [*containers workspaces zones list*](api::AccountContainerWorkspaceZoneListCall), [*containers workspaces zones revert*](api::AccountContainerWorkspaceZoneRevertCall), [*containers workspaces zones update*](api::AccountContainerWorkspaceZoneUpdateCall), [*get*](api::AccountGetCall), [*list*](api::AccountListCall), [*update*](api::AccountUpdateCall), [*user_permissions create*](api::AccountUserPermissionCreateCall), [*user_permissions delete*](api::AccountUserPermissionDeleteCall), [*user_permissions get*](api::AccountUserPermissionGetCall), [*user_permissions list*](api::AccountUserPermissionListCall) and [*user_permissions update*](api::AccountUserPermissionUpdateCall)
16//!
17//!
18//!
19//!
20//! Not what you are looking for ? Find all other Google APIs in their Rust [documentation index](http://byron.github.io/google-apis-rs).
21//!
22//! # Structure of this Library
23//!
24//! The API is structured into the following primary items:
25//!
26//! * **[Hub](TagManager)**
27//!     * a central object to maintain state and allow accessing all *Activities*
28//!     * creates [*Method Builders*](common::MethodsBuilder) which in turn
29//!       allow access to individual [*Call Builders*](common::CallBuilder)
30//! * **[Resources](common::Resource)**
31//!     * primary types that you can apply *Activities* to
32//!     * a collection of properties and *Parts*
33//!     * **[Parts](common::Part)**
34//!         * a collection of properties
35//!         * never directly used in *Activities*
36//! * **[Activities](common::CallBuilder)**
37//!     * operations to apply to *Resources*
38//!
39//! All *structures* are marked with applicable traits to further categorize them and ease browsing.
40//!
41//! Generally speaking, you can invoke *Activities* like this:
42//!
43//! ```Rust,ignore
44//! let r = hub.resource().activity(...).doit().await
45//! ```
46//!
47//! Or specifically ...
48//!
49//! ```ignore
50//! let r = hub.accounts().containers_destinations_get(...).doit().await
51//! let r = hub.accounts().containers_destinations_link(...).doit().await
52//! let r = hub.accounts().containers_destinations_list(...).doit().await
53//! let r = hub.accounts().containers_environments_create(...).doit().await
54//! let r = hub.accounts().containers_environments_delete(...).doit().await
55//! let r = hub.accounts().containers_environments_get(...).doit().await
56//! let r = hub.accounts().containers_environments_list(...).doit().await
57//! let r = hub.accounts().containers_environments_reauthorize(...).doit().await
58//! let r = hub.accounts().containers_environments_update(...).doit().await
59//! let r = hub.accounts().containers_version_headers_latest(...).doit().await
60//! let r = hub.accounts().containers_version_headers_list(...).doit().await
61//! let r = hub.accounts().containers_versions_delete(...).doit().await
62//! let r = hub.accounts().containers_versions_get(...).doit().await
63//! let r = hub.accounts().containers_versions_live(...).doit().await
64//! let r = hub.accounts().containers_versions_publish(...).doit().await
65//! let r = hub.accounts().containers_versions_set_latest(...).doit().await
66//! let r = hub.accounts().containers_versions_undelete(...).doit().await
67//! let r = hub.accounts().containers_versions_update(...).doit().await
68//! let r = hub.accounts().containers_workspaces_built_in_variables_create(...).doit().await
69//! let r = hub.accounts().containers_workspaces_built_in_variables_delete(...).doit().await
70//! let r = hub.accounts().containers_workspaces_built_in_variables_list(...).doit().await
71//! let r = hub.accounts().containers_workspaces_built_in_variables_revert(...).doit().await
72//! let r = hub.accounts().containers_workspaces_clients_create(...).doit().await
73//! let r = hub.accounts().containers_workspaces_clients_delete(...).doit().await
74//! let r = hub.accounts().containers_workspaces_clients_get(...).doit().await
75//! let r = hub.accounts().containers_workspaces_clients_list(...).doit().await
76//! let r = hub.accounts().containers_workspaces_clients_revert(...).doit().await
77//! let r = hub.accounts().containers_workspaces_clients_update(...).doit().await
78//! let r = hub.accounts().containers_workspaces_folders_create(...).doit().await
79//! let r = hub.accounts().containers_workspaces_folders_delete(...).doit().await
80//! let r = hub.accounts().containers_workspaces_folders_entities(...).doit().await
81//! let r = hub.accounts().containers_workspaces_folders_get(...).doit().await
82//! let r = hub.accounts().containers_workspaces_folders_list(...).doit().await
83//! let r = hub.accounts().containers_workspaces_folders_move_entities_to_folder(...).doit().await
84//! let r = hub.accounts().containers_workspaces_folders_revert(...).doit().await
85//! let r = hub.accounts().containers_workspaces_folders_update(...).doit().await
86//! let r = hub.accounts().containers_workspaces_gtag_config_create(...).doit().await
87//! let r = hub.accounts().containers_workspaces_gtag_config_delete(...).doit().await
88//! let r = hub.accounts().containers_workspaces_gtag_config_get(...).doit().await
89//! let r = hub.accounts().containers_workspaces_gtag_config_list(...).doit().await
90//! let r = hub.accounts().containers_workspaces_gtag_config_update(...).doit().await
91//! let r = hub.accounts().containers_workspaces_tags_create(...).doit().await
92//! let r = hub.accounts().containers_workspaces_tags_delete(...).doit().await
93//! let r = hub.accounts().containers_workspaces_tags_get(...).doit().await
94//! let r = hub.accounts().containers_workspaces_tags_list(...).doit().await
95//! let r = hub.accounts().containers_workspaces_tags_revert(...).doit().await
96//! let r = hub.accounts().containers_workspaces_tags_update(...).doit().await
97//! let r = hub.accounts().containers_workspaces_templates_create(...).doit().await
98//! let r = hub.accounts().containers_workspaces_templates_delete(...).doit().await
99//! let r = hub.accounts().containers_workspaces_templates_get(...).doit().await
100//! let r = hub.accounts().containers_workspaces_templates_import_from_gallery(...).doit().await
101//! let r = hub.accounts().containers_workspaces_templates_list(...).doit().await
102//! let r = hub.accounts().containers_workspaces_templates_revert(...).doit().await
103//! let r = hub.accounts().containers_workspaces_templates_update(...).doit().await
104//! let r = hub.accounts().containers_workspaces_transformations_create(...).doit().await
105//! let r = hub.accounts().containers_workspaces_transformations_delete(...).doit().await
106//! let r = hub.accounts().containers_workspaces_transformations_get(...).doit().await
107//! let r = hub.accounts().containers_workspaces_transformations_list(...).doit().await
108//! let r = hub.accounts().containers_workspaces_transformations_revert(...).doit().await
109//! let r = hub.accounts().containers_workspaces_transformations_update(...).doit().await
110//! let r = hub.accounts().containers_workspaces_triggers_create(...).doit().await
111//! let r = hub.accounts().containers_workspaces_triggers_delete(...).doit().await
112//! let r = hub.accounts().containers_workspaces_triggers_get(...).doit().await
113//! let r = hub.accounts().containers_workspaces_triggers_list(...).doit().await
114//! let r = hub.accounts().containers_workspaces_triggers_revert(...).doit().await
115//! let r = hub.accounts().containers_workspaces_triggers_update(...).doit().await
116//! let r = hub.accounts().containers_workspaces_variables_create(...).doit().await
117//! let r = hub.accounts().containers_workspaces_variables_delete(...).doit().await
118//! let r = hub.accounts().containers_workspaces_variables_get(...).doit().await
119//! let r = hub.accounts().containers_workspaces_variables_list(...).doit().await
120//! let r = hub.accounts().containers_workspaces_variables_revert(...).doit().await
121//! let r = hub.accounts().containers_workspaces_variables_update(...).doit().await
122//! let r = hub.accounts().containers_workspaces_zones_create(...).doit().await
123//! let r = hub.accounts().containers_workspaces_zones_delete(...).doit().await
124//! let r = hub.accounts().containers_workspaces_zones_get(...).doit().await
125//! let r = hub.accounts().containers_workspaces_zones_list(...).doit().await
126//! let r = hub.accounts().containers_workspaces_zones_revert(...).doit().await
127//! let r = hub.accounts().containers_workspaces_zones_update(...).doit().await
128//! let r = hub.accounts().containers_workspaces_bulk_update(...).doit().await
129//! let r = hub.accounts().containers_workspaces_create(...).doit().await
130//! let r = hub.accounts().containers_workspaces_create_version(...).doit().await
131//! let r = hub.accounts().containers_workspaces_delete(...).doit().await
132//! let r = hub.accounts().containers_workspaces_get(...).doit().await
133//! let r = hub.accounts().containers_workspaces_get_status(...).doit().await
134//! let r = hub.accounts().containers_workspaces_list(...).doit().await
135//! let r = hub.accounts().containers_workspaces_quick_preview(...).doit().await
136//! let r = hub.accounts().containers_workspaces_resolve_conflict(...).doit().await
137//! let r = hub.accounts().containers_workspaces_sync(...).doit().await
138//! let r = hub.accounts().containers_workspaces_update(...).doit().await
139//! let r = hub.accounts().containers_combine(...).doit().await
140//! let r = hub.accounts().containers_create(...).doit().await
141//! let r = hub.accounts().containers_delete(...).doit().await
142//! let r = hub.accounts().containers_get(...).doit().await
143//! let r = hub.accounts().containers_list(...).doit().await
144//! let r = hub.accounts().containers_lookup(...).doit().await
145//! let r = hub.accounts().containers_move_tag_id(...).doit().await
146//! let r = hub.accounts().containers_snippet(...).doit().await
147//! let r = hub.accounts().containers_update(...).doit().await
148//! let r = hub.accounts().user_permissions_create(...).doit().await
149//! let r = hub.accounts().user_permissions_delete(...).doit().await
150//! let r = hub.accounts().user_permissions_get(...).doit().await
151//! let r = hub.accounts().user_permissions_list(...).doit().await
152//! let r = hub.accounts().user_permissions_update(...).doit().await
153//! let r = hub.accounts().get(...).doit().await
154//! let r = hub.accounts().list(...).doit().await
155//! let r = hub.accounts().update(...).doit().await
156//! ```
157//!
158//! The `resource()` and `activity(...)` calls create [builders][builder-pattern]. The second one dealing with `Activities`
159//! supports various methods to configure the impending operation (not shown here). It is made such that all required arguments have to be
160//! specified right away (i.e. `(...)`), whereas all optional ones can be [build up][builder-pattern] as desired.
161//! The `doit()` method performs the actual communication with the server and returns the respective result.
162//!
163//! # Usage
164//!
165//! ## Setting up your Project
166//!
167//! To use this library, you would put the following lines into your `Cargo.toml` file:
168//!
169//! ```toml
170//! [dependencies]
171//! google-tagmanager2 = "*"
172//! serde = "1"
173//! serde_json = "1"
174//! ```
175//!
176//! ## A complete example
177//!
178//! ```test_harness,no_run
179//! extern crate hyper;
180//! extern crate hyper_rustls;
181//! extern crate google_tagmanager2 as tagmanager2;
182//! use tagmanager2::{Result, Error};
183//! # async fn dox() {
184//! use tagmanager2::{TagManager, FieldMask, hyper_rustls, hyper_util, yup_oauth2};
185//!
186//! // Get an ApplicationSecret instance by some means. It contains the `client_id` and
187//! // `client_secret`, among other things.
188//! let secret: yup_oauth2::ApplicationSecret = Default::default();
189//! // Instantiate the authenticator. It will choose a suitable authentication flow for you,
190//! // unless you replace  `None` with the desired Flow.
191//! // Provide your own `AuthenticatorDelegate` to adjust the way it operates and get feedback about
192//! // what's going on. You probably want to bring in your own `TokenStorage` to persist tokens and
193//! // retrieve them from storage.
194//! let connector = hyper_rustls::HttpsConnectorBuilder::new()
195//!     .with_native_roots()
196//!     .unwrap()
197//!     .https_only()
198//!     .enable_http2()
199//!     .build();
200//!
201//! let executor = hyper_util::rt::TokioExecutor::new();
202//! let auth = yup_oauth2::InstalledFlowAuthenticator::with_client(
203//!     secret,
204//!     yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect,
205//!     yup_oauth2::client::CustomHyperClientBuilder::from(
206//!         hyper_util::client::legacy::Client::builder(executor).build(connector),
207//!     ),
208//! ).build().await.unwrap();
209//!
210//! let client = hyper_util::client::legacy::Client::builder(
211//!     hyper_util::rt::TokioExecutor::new()
212//! )
213//! .build(
214//!     hyper_rustls::HttpsConnectorBuilder::new()
215//!         .with_native_roots()
216//!         .unwrap()
217//!         .https_or_http()
218//!         .enable_http2()
219//!         .build()
220//! );
221//! let mut hub = TagManager::new(client, auth);
222//! // You can configure optional parameters by calling the respective setters at will, and
223//! // execute the final call using `doit()`.
224//! // Values shown here are possibly random and not representative !
225//! let result = hub.accounts().containers_move_tag_id("path")
226//!              .tag_name("ipsum")
227//!              .tag_id("gubergren")
228//!              .copy_users(true)
229//!              .copy_terms_of_service(false)
230//!              .copy_settings(true)
231//!              .allow_user_permission_feature_update(false)
232//!              .doit().await;
233//!
234//! match result {
235//!     Err(e) => match e {
236//!         // The Error enum provides details about what exactly happened.
237//!         // You can also just use its `Debug`, `Display` or `Error` traits
238//!          Error::HttpError(_)
239//!         |Error::Io(_)
240//!         |Error::MissingAPIKey
241//!         |Error::MissingToken(_)
242//!         |Error::Cancelled
243//!         |Error::UploadSizeLimitExceeded(_, _)
244//!         |Error::Failure(_)
245//!         |Error::BadRequest(_)
246//!         |Error::FieldClash(_)
247//!         |Error::JsonDecodeError(_, _) => println!("{}", e),
248//!     },
249//!     Ok(res) => println!("Success: {:?}", res),
250//! }
251//! # }
252//! ```
253//! ## Handling Errors
254//!
255//! All errors produced by the system are provided either as [Result](common::Result) enumeration as return value of
256//! the doit() methods, or handed as possibly intermediate results to either the
257//! [Hub Delegate](common::Delegate), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html).
258//!
259//! When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This
260//! makes the system potentially resilient to all kinds of errors.
261//!
262//! ## Uploads and Downloads
263//! If a method supports downloads, the response body, which is part of the [Result](common::Result), should be
264//! read by you to obtain the media.
265//! If such a method also supports a [Response Result](common::ResponseResult), it will return that by default.
266//! 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
267//! this call: `.param("alt", "media")`.
268//!
269//! Methods supporting uploads can do so using up to 2 different protocols:
270//! *simple* and *resumable*. The distinctiveness of each is represented by customized
271//! `doit(...)` methods, which are then named `upload(...)` and `upload_resumable(...)` respectively.
272//!
273//! ## Customization and Callbacks
274//!
275//! You may alter the way an `doit()` method is called by providing a [delegate](common::Delegate) to the
276//! [Method Builder](common::CallBuilder) before making the final `doit()` call.
277//! Respective methods will be called to provide progress information, as well as determine whether the system should
278//! retry on failure.
279//!
280//! The [delegate trait](common::Delegate) is default-implemented, allowing you to customize it with minimal effort.
281//!
282//! ## Optional Parts in Server-Requests
283//!
284//! All structures provided by this library are made to be [encodable](common::RequestValue) and
285//! [decodable](common::ResponseResult) via *json*. Optionals are used to indicate that partial requests are responses
286//! are valid.
287//! Most optionals are are considered [Parts](common::Part) which are identifiable by name, which will be sent to
288//! the server to indicate either the set parts of the request or the desired parts in the response.
289//!
290//! ## Builder Arguments
291//!
292//! Using [method builders](common::CallBuilder), you are able to prepare an action call by repeatedly calling it's methods.
293//! These will always take a single argument, for which the following statements are true.
294//!
295//! * [PODs][wiki-pod] are handed by copy
296//! * strings are passed as `&str`
297//! * [request values](common::RequestValue) are moved
298//!
299//! Arguments will always be copied or cloned into the builder, to make them independent of their original life times.
300//!
301//! [wiki-pod]: http://en.wikipedia.org/wiki/Plain_old_data_structure
302//! [builder-pattern]: http://en.wikipedia.org/wiki/Builder_pattern
303//! [google-go-api]: https://github.com/google/google-api-go-client
304//!
305//! ## Cargo Features
306//!
307//! * `utoipa` - Add support for [utoipa](https://crates.io/crates/utoipa) and derive `utoipa::ToSchema` on all
308//! the types. You'll have to import and register the required types in `#[openapi(schemas(...))]`, otherwise the
309//! generated `openapi` spec would be invalid.
310//!
311//!
312//!
313
314// Unused attributes happen thanks to defined, but unused structures We don't
315// warn about this, as depending on the API, some data structures or facilities
316// are never used. Instead of pre-determining this, we just disable the lint.
317// It's manually tuned to not have any unused imports in fully featured APIs.
318// Same with unused_mut.
319#![allow(unused_imports, unused_mut, dead_code)]
320
321// DO NOT EDIT !
322// This file was generated automatically from 'src/generator/templates/api/lib.rs.mako'
323// DO NOT EDIT !
324
325pub extern crate hyper;
326pub extern crate hyper_rustls;
327pub extern crate hyper_util;
328#[cfg(feature = "yup-oauth2")]
329pub extern crate yup_oauth2;
330
331pub extern crate google_apis_common as common;
332pub use common::{Delegate, Error, FieldMask, Result};
333
334pub mod api;
335pub use api::TagManager;