Bump version to 1.0.9; update JSON schemas; add new APIs

This commit is contained in:
Sebastian Thiel
2019-07-05 11:32:35 +08:00
parent 99e97ceece
commit e42ebc0c2b
2442 changed files with 190984 additions and 71186 deletions

View File

@@ -4,7 +4,7 @@
[package]
name = "google-cloudresourcemanager2-cli"
version = "1.0.8+20190401"
version = "1.0.9+20190701"
authors = ["Sebastian Thiel <byronimo@gmail.com>"]
description = "A complete library to interact with Cloud Resource Manager (protocol v2)"
repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudresourcemanager2-cli"
@@ -39,4 +39,4 @@ clap = "^2.0"
[dependencies.google-cloudresourcemanager2]
path = "../cloudresourcemanager2"
version = "1.0.8+20190401"
version = "1.0.9+20190701"

View File

@@ -6,7 +6,7 @@ DO NOT EDIT !
The MIT License (MIT)
=====================
Copyright © `2015-2016` `Sebastian Thiel`
Copyright © `2015-2019` `Sebastian Thiel`
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation

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 Resource Manager* API at revision *20190401*. The CLI is at version *1.0.8*.
This documentation was generated from the *Cloud Resource Manager* API at revision *20190701*. The CLI is at version *1.0.9*.
```bash
cloudresourcemanager2 [options]

View File

@@ -1,4 +1,4 @@
site_name: Cloud Resource Manager v1.0.8+20190401
site_name: Cloud Resource Manager v1.0.9+20190701
site_url: http://byron.github.io/google-apis-rs/google-cloudresourcemanager2-cli
site_description: A complete library to interact with Cloud Resource Manager (protocol v2)
@@ -24,5 +24,5 @@ pages:
theme: readthedocs
copyright: Copyright &copy; 2015-2016, `Sebastian Thiel`
copyright: Copyright &copy; 2015-2019, `Sebastian Thiel`

View File

@@ -67,6 +67,17 @@ pub fn remove_json_null_values(value: &mut Value) {
map.remove(key);
}
}
json::value::Value::Array(ref mut arr) => {
let mut i = 0;
while i < arr.len() {
if arr[i].is_null() {
arr.remove(i);
} else {
remove_json_null_values(&mut arr[i]);
i += 1;
}
}
}
_ => {}
}
}

View File

@@ -266,8 +266,9 @@ impl<'n> Engine<'n> {
let type_info: Option<(&'static str, JsonTypeInfo)> =
match &temp_cursor.to_string()[..] {
"options.requested-policy-version" => Some(("options.requestedPolicyVersion", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })),
_ => {
let suggestion = FieldCursor::did_you_mean(key, &vec![]);
let suggestion = FieldCursor::did_you_mean(key, &vec!["options", "requested-policy-version"]);
err.issues.push(CLIError::Field(FieldError::Unknown(temp_cursor.to_string(), suggestion, value.map(|v| v.to_string()))));
None
}
@@ -1521,7 +1522,7 @@ fn main() {
let mut app = App::new("cloudresourcemanager2")
.author("Sebastian Thiel <byronimo@gmail.com>")
.version("1.0.8+20190401")
.version("1.0.9+20190701")
.about("Creates, reads, and updates metadata for Google Cloud Platform resource containers.")
.after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_cloudresourcemanager2_cli")
.arg(Arg::with_name("url")