regen all APIs and validate them

This commit is contained in:
Sebastian Thiel
2022-03-08 08:23:03 +08:00
parent 743a56f4b7
commit f2c1b82112
3257 changed files with 789515 additions and 1330642 deletions

View File

@@ -7,13 +7,12 @@ extern crate tokio;
#[macro_use]
extern crate clap;
extern crate yup_oauth2 as oauth2;
use std::env;
use std::io::{self, Write};
use clap::{App, SubCommand, Arg};
use google_accesscontextmanager1_beta::{api, Error};
use google_accesscontextmanager1_beta::{api, Error, oauth2};
mod client;
@@ -1250,9 +1249,9 @@ impl<'n> Engine<'n> {
}
};
let auth = yup_oauth2::InstalledFlowAuthenticator::builder(
let auth = oauth2::InstalledFlowAuthenticator::builder(
secret,
yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect,
oauth2::InstalledFlowReturnMethod::HTTPRedirect,
).persist_tokens_to_disk(format!("{}/accesscontextmanager1-beta", config_dir)).build().await.unwrap();
let client = hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots());
@@ -1676,7 +1675,7 @@ async fn main() {
let mut app = App::new("accesscontextmanager1-beta")
.author("Sebastian Thiel <byronimo@gmail.com>")
.version("2.0.8+20210319")
.version("3.0.0+20220301")
.about("An API for setting attribute based access control to requests to GCP services.")
.after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_accesscontextmanager1_beta_cli")
.arg(Arg::with_name("url")