update docs1 to latest version

Strange this didn't happen when regenerating all APIs.
This commit is contained in:
Sebastian Thiel
2022-09-14 09:16:18 +08:00
parent 4f8c85310a
commit 1738a9eeac
6 changed files with 13454 additions and 3600 deletions

View File

@@ -1,18 +1,34 @@
// DO NOT EDIT !
// This file was generated automatically from 'src/mako/api/lib.rs.mako'
// This file was generated automatically from 'src/generator/templates/api/lib.rs.mako'
// DO NOT EDIT !
//! This documentation was generated from *Docs* crate version *3.1.0+20220301*, where *20220301* is the exact revision of the *docs:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v3.1.0*.
//! This documentation was generated from *Dns* crate version *4.0.1+20220217*, where *20220217* is the exact revision of the *dns:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v4.0.1*.
//!
//! Everything else about the *Docs* *v1* API can be found at the
//! [official documentation site](https://developers.google.com/docs/).
//! The original source code is [on github](https://github.com/Byron/google-apis-rs/tree/main/gen/docs1).
//! Everything else about the *Dns* *v2* API can be found at the
//! [official documentation site](https://cloud.google.com/dns/docs).
//! The original source code is [on github](https://github.com/Byron/google-apis-rs/tree/main/gen/dns2).
//! # Features
//!
//! Handle the following *Resources* with ease from the central [hub](Docs) ...
//! Handle the following *Resources* with ease from the central [hub](Dns) ...
//!
//! * [documents](api::Document)
//! * [*batch update*](api::DocumentBatchUpdateCall), [*create*](api::DocumentCreateCall) and [*get*](api::DocumentGetCall)
//! * [changes](api::Change)
//! * [*create*](api::ChangeCreateCall), [*get*](api::ChangeGetCall) and [*list*](api::ChangeListCall)
//! * [dns keys](api::DnsKey)
//! * [*get*](api::DnsKeyGetCall) and [*list*](api::DnsKeyListCall)
//! * managed zone operations
//! * [*get*](api::ManagedZoneOperationGetCall) and [*list*](api::ManagedZoneOperationListCall)
//! * [managed zones](api::ManagedZone)
//! * [*create*](api::ManagedZoneCreateCall), [*delete*](api::ManagedZoneDeleteCall), [*get*](api::ManagedZoneGetCall), [*list*](api::ManagedZoneListCall), [*patch*](api::ManagedZonePatchCall) and [*update*](api::ManagedZoneUpdateCall)
//! * [policies](api::Policy)
//! * [*create*](api::PolicyCreateCall), [*delete*](api::PolicyDeleteCall), [*get*](api::PolicyGetCall), [*list*](api::PolicyListCall), [*patch*](api::PolicyPatchCall) and [*update*](api::PolicyUpdateCall)
//! * [projects](api::Project)
//! * [*get*](api::ProjectGetCall)
//! * [resource record sets](api::ResourceRecordSet)
//! * [*create*](api::ResourceRecordSetCreateCall), [*delete*](api::ResourceRecordSetDeleteCall), [*get*](api::ResourceRecordSetGetCall), [*list*](api::ResourceRecordSetListCall) and [*patch*](api::ResourceRecordSetPatchCall)
//! * [response policies](api::ResponsePolicy)
//! * [*create*](api::ResponsePolicyCreateCall), [*delete*](api::ResponsePolicyDeleteCall), [*get*](api::ResponsePolicyGetCall), [*list*](api::ResponsePolicyListCall), [*patch*](api::ResponsePolicyPatchCall) and [*update*](api::ResponsePolicyUpdateCall)
//! * [response policy rules](api::ResponsePolicyRule)
//! * [*create*](api::ResponsePolicyRuleCreateCall), [*delete*](api::ResponsePolicyRuleDeleteCall), [*get*](api::ResponsePolicyRuleGetCall), [*list*](api::ResponsePolicyRuleListCall), [*patch*](api::ResponsePolicyRulePatchCall) and [*update*](api::ResponsePolicyRuleUpdateCall)
//!
//!
//!
@@ -23,7 +39,7 @@
//!
//! The API is structured into the following primary items:
//!
//! * **[Hub](Docs)**
//! * **[Hub](Dns)**
//! * a central object to maintain state and allow accessing all *Activities*
//! * creates [*Method Builders*](client::MethodsBuilder) which in turn
//! allow access to individual [*Call Builders*](client::CallBuilder)
@@ -47,9 +63,12 @@
//! Or specifically ...
//!
//! ```ignore
//! let r = hub.documents().batch_update(...).doit().await
//! let r = hub.documents().create(...).doit().await
//! let r = hub.documents().get(...).doit().await
//! let r = hub.managed_zones().create(...).doit().await
//! let r = hub.managed_zones().delete(...).doit().await
//! let r = hub.managed_zones().get(...).doit().await
//! let r = hub.managed_zones().list(...).doit().await
//! let r = hub.managed_zones().patch(...).doit().await
//! let r = hub.managed_zones().update(...).doit().await
//! ```
//!
//! The `resource()` and `activity(...)` calls create [builders][builder-pattern]. The second one dealing with `Activities`
@@ -65,7 +84,7 @@
//!
//! ```toml
//! [dependencies]
//! google-docs1 = "*"
//! google-dns2 = "*"
//! serde = "^1.0"
//! serde_json = "^1.0"
//! ```
@@ -75,12 +94,11 @@
//! ```test_harness,no_run
//! extern crate hyper;
//! extern crate hyper_rustls;
//! extern crate google_docs1 as docs1;
//! use docs1::api::BatchUpdateDocumentRequest;
//! use docs1::{Result, Error};
//! extern crate google_dns2 as dns2;
//! use dns2::{Result, Error};
//! # async fn dox() {
//! use std::default::Default;
//! use docs1::{Docs, oauth2, hyper, hyper_rustls};
//! use dns2::{Dns, oauth2, hyper, hyper_rustls};
//!
//! // Get an ApplicationSecret instance by some means. It contains the `client_id` and
//! // `client_secret`, among other things.
@@ -94,16 +112,14 @@
//! secret,
//! oauth2::InstalledFlowReturnMethod::HTTPRedirect,
//! ).build().await.unwrap();
//! let mut hub = Docs::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth);
//! // As the method needs a request, you would usually fill it with the desired information
//! // into the respective structure. Some of the parts shown here might not be applicable !
//! // Values shown here are possibly random and not representative !
//! let mut req = BatchUpdateDocumentRequest::default();
//!
//! let mut hub = Dns::new(hyper::Client::builder().build(hyper_rustls::HttpsConnectorBuilder::new().with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth);
//! // You can configure optional parameters by calling the respective setters at will, and
//! // execute the final call using `doit()`.
//! // Values shown here are possibly random and not representative !
//! let result = hub.documents().batch_update(req, "documentId")
//! let result = hub.managed_zones().list("project", "location")
//! .page_token("sed")
//! .max_results(-2)
//! .dns_name("takimata")
//! .doit().await;
//!
//! match result {
@@ -186,7 +202,7 @@
#![allow(unused_imports, unused_mut, dead_code)]
// DO NOT EDIT !
// This file was generated automatically from 'src/mako/api/lib.rs.mako'
// This file was generated automatically from 'src/generator/templates/api/lib.rs.mako'
// DO NOT EDIT !
#[macro_use]
@@ -206,5 +222,5 @@ pub mod api;
pub mod client;
// Re-export the hub type and some basic client structs
pub use api::Docs;
pub use api::Dns;
pub use client::{Result, Error, Delegate};