mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
regen all APIs and validate them
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user