mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-01-24 12:15:55 +01:00
chore(json-update): update json and regen all code
This commit is contained in:
@@ -114,6 +114,7 @@ impl<'n, 'a> Engine<'n, 'a> {
|
||||
let mut value = json::value::to_value(&output_schema);
|
||||
remove_json_null_values(&mut value);
|
||||
json::to_writer_pretty(&mut ostream, &value).unwrap();
|
||||
ostream.flush().unwrap();
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
@@ -232,6 +233,7 @@ impl<'n, 'a> Engine<'n, 'a> {
|
||||
let mut value = json::value::to_value(&output_schema);
|
||||
remove_json_null_values(&mut value);
|
||||
json::to_writer_pretty(&mut ostream, &value).unwrap();
|
||||
ostream.flush().unwrap();
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
@@ -379,6 +381,7 @@ impl<'n, 'a> Engine<'n, 'a> {
|
||||
let mut value = json::value::to_value(&output_schema);
|
||||
remove_json_null_values(&mut value);
|
||||
json::to_writer_pretty(&mut ostream, &value).unwrap();
|
||||
ostream.flush().unwrap();
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
@@ -446,6 +449,7 @@ impl<'n, 'a> Engine<'n, 'a> {
|
||||
let mut value = json::value::to_value(&output_schema);
|
||||
remove_json_null_values(&mut value);
|
||||
json::to_writer_pretty(&mut ostream, &value).unwrap();
|
||||
ostream.flush().unwrap();
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
@@ -538,7 +542,7 @@ impl<'n, 'a> Engine<'n, 'a> {
|
||||
let auth = Authenticator::new( &secret, DefaultAuthenticatorDelegate,
|
||||
if opt.is_present("debug-auth") {
|
||||
hyper::Client::with_connector(mock::TeeConnector {
|
||||
connector: hyper::net::HttpConnector(None)
|
||||
connector: hyper::net::HttpsConnector::<hyper::net::Openssl>::default()
|
||||
})
|
||||
} else {
|
||||
hyper::Client::new()
|
||||
@@ -551,7 +555,7 @@ impl<'n, 'a> Engine<'n, 'a> {
|
||||
let client =
|
||||
if opt.is_present("debug") {
|
||||
hyper::Client::with_connector(mock::TeeConnector {
|
||||
connector: hyper::net::HttpConnector(None)
|
||||
connector: hyper::net::HttpsConnector::<hyper::net::Openssl>::default()
|
||||
})
|
||||
} else {
|
||||
hyper::Client::new()
|
||||
@@ -730,7 +734,7 @@ fn main() {
|
||||
|
||||
let mut app = App::new("admin1-reports")
|
||||
.author("Sebastian Thiel <byronimo@gmail.com>")
|
||||
.version("0.3.0+20150115")
|
||||
.version("0.3.0+20150429")
|
||||
.about("Allows the administrators of Google Apps customers to fetch reports about the usage, collaboration, security and risk for their users.")
|
||||
.after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_admin1_reports_cli")
|
||||
.arg(Arg::with_name("url")
|
||||
|
||||
Reference in New Issue
Block a user