regen all APIs and CLIs

This commit is contained in:
Sebastian Thiel
2022-04-26 11:12:08 +08:00
parent cc296a57b6
commit f393030e84
2544 changed files with 26840 additions and 24926 deletions

View File

@@ -285,7 +285,13 @@ impl<'n> Engine<'n> {
oauth2::InstalledFlowReturnMethod::HTTPRedirect,
).persist_tokens_to_disk(format!("{}/commentanalyzer1-alpha1", config_dir)).build().await.unwrap();
let client = hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots());
let client = hyper::Client::builder().build(
hyper_rustls::HttpsConnectorBuilder::new().with_native_roots()
.https_or_http()
.enable_http1()
.enable_http2()
.build()
);
let engine = Engine {
opt: opt,
hub: api::CommentAnalyzer::new(client, auth),
@@ -371,7 +377,7 @@ async fn main() {
let mut app = App::new("commentanalyzer1-alpha1")
.author("Sebastian Thiel <byronimo@gmail.com>")
.version("3.0.0+20200405")
.version("3.1.0+20200405")
.about("The Perspective Comment Analyzer API provides information about the potential impact of a comment on a conversation (e.g. it can provide a score for the \"toxicity\" of a comment). Users can leverage the \"SuggestCommentScore\" method to submit corrections to improve Perspective over time. Users can set the \"doNotStore\" flag to ensure that all submitted comments are automatically deleted after scores are returned.")
.after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_commentanalyzer1_alpha1_cli")
.arg(Arg::with_name("url")