Update to latest versions of API declarations

This commit is contained in:
Sebastian Thiel
2018-10-13 13:49:14 +02:00
parent 5a67475b54
commit 255c7f5ad5
1508 changed files with 819225 additions and 838421 deletions

View File

@@ -4,7 +4,7 @@
[package]
name = "google-language1_beta1-cli"
version = "1.0.7+20171204"
version = "1.0.7+20180930"
authors = ["Sebastian Thiel <byronimo@gmail.com>"]
description = "A complete library to interact with Cloud Natural Language (protocol v1beta1)"
repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/language1_beta1-cli"
@@ -12,9 +12,11 @@ homepage = "https://cloud.google.com/natural-language/"
documentation = "http://byron.github.io/google-apis-rs/google_language1_beta1_cli"
license = "MIT"
keywords = ["language", "google", "cli"]
autobins = false
[[bin]]
name = "language1-beta1"
path = "src/main.rs"
[dev-dependencies]
hyper-rustls = "^0.6"
@@ -37,4 +39,4 @@ clap = "^2.0"
[dependencies.google-language1_beta1]
path = "../language1_beta1"
version = "1.0.7+20171204"
version = "1.0.7+20180930"

View File

@@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma
# Usage
This documentation was generated from the *Cloud Natural Language* API at revision *20171204*. The CLI is at version *1.0.7*.
This documentation was generated from the *Cloud Natural Language* API at revision *20180930*. The CLI is at version *1.0.7*.
```bash
language1-beta1 [options]

View File

@@ -1,4 +1,4 @@
site_name: Cloud Natural Language v1.0.7+20171204
site_name: Cloud Natural Language v1.0.7+20180930
site_url: http://byron.github.io/google-apis-rs/google-language1_beta1-cli
site_description: A complete library to interact with Cloud Natural Language (protocol v1beta1)

View File

@@ -337,13 +337,13 @@ impl<'n> Engine<'n> {
let type_info: Option<(&'static str, JsonTypeInfo)> =
match &temp_cursor.to_string()[..] {
"encoding-type" => Some(("encodingType", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })),
"features.extract-document-sentiment" => Some(("features.extractDocumentSentiment", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })),
"features.extract-entities" => Some(("features.extractEntities", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })),
"features.extract-syntax" => Some(("features.extractSyntax", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })),
"document.content" => Some(("document.content", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })),
"document.type" => Some(("document.type", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })),
"document.language" => Some(("document.language", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })),
"document.gcs-content-uri" => Some(("document.gcsContentUri", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })),
"features.extract-document-sentiment" => Some(("features.extractDocumentSentiment", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })),
"features.extract-entities" => Some(("features.extractEntities", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })),
"features.extract-syntax" => Some(("features.extractSyntax", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })),
_ => {
let suggestion = FieldCursor::did_you_mean(key, &vec!["content", "document", "encoding-type", "extract-document-sentiment", "extract-entities", "extract-syntax", "features", "gcs-content-uri", "language", "type"]);
err.issues.push(CLIError::Field(FieldError::Unknown(temp_cursor.to_string(), suggestion, value.map(|v| v.to_string()))));
@@ -485,11 +485,10 @@ impl<'n> Engine<'n> {
let engine = Engine {
opt: opt,
hub: api::CloudNaturalLanguage::new(client, auth),
gp: vec!["$-xgafv", "access-token", "alt", "bearer-token", "callback", "fields", "key", "oauth-token", "pp", "pretty-print", "quota-user", "upload-type", "upload-protocol"],
gp: vec!["$-xgafv", "access-token", "alt", "callback", "fields", "key", "oauth-token", "pretty-print", "quota-user", "upload-type", "upload-protocol"],
gpm: vec![
("$-xgafv", "$.xgafv"),
("access-token", "access_token"),
("bearer-token", "bearer_token"),
("oauth-token", "oauth_token"),
("pretty-print", "prettyPrint"),
("quota-user", "quotaUser"),
@@ -616,7 +615,7 @@ fn main() {
let mut app = App::new("language1-beta1")
.author("Sebastian Thiel <byronimo@gmail.com>")
.version("1.0.7+20171204")
.version("1.0.7+20180930")
.about("Provides natural language understanding technologies to developers. Examples include sentiment analysis, entity recognition, entity sentiment analysis, and text annotations.")
.after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_language1_beta1_cli")
.arg(Arg::with_name("url")