mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
chore(json-update): update json and regen all code
This commit is contained in:
@@ -17,8 +17,8 @@ keywords = ["manager", "google", "cli"]
|
||||
name = "manager1-beta2"
|
||||
|
||||
[dependencies]
|
||||
hyper = ">= 0.5.2"
|
||||
mime = "0.0.11"
|
||||
hyper = ">= 0.6.0"
|
||||
mime = "0.0.12"
|
||||
serde = ">= 0.4.1"
|
||||
yup-oauth2 = "*"
|
||||
strsim = "*"
|
||||
|
||||
@@ -133,6 +133,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(())
|
||||
}
|
||||
}
|
||||
@@ -222,6 +223,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(())
|
||||
}
|
||||
}
|
||||
@@ -280,6 +282,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(())
|
||||
}
|
||||
}
|
||||
@@ -375,6 +378,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(())
|
||||
}
|
||||
}
|
||||
@@ -460,6 +464,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(())
|
||||
}
|
||||
}
|
||||
@@ -518,6 +523,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(())
|
||||
}
|
||||
}
|
||||
@@ -603,7 +609,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()
|
||||
@@ -616,7 +622,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()
|
||||
|
||||
Reference in New Issue
Block a user