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-accesscontextmanager1_beta-cli"
version = "1.0.8+20190327"
version = "1.0.9+20190626"
authors = ["Sebastian Thiel <byronimo@gmail.com>"]
description = "A complete library to interact with Access Context Manager (protocol v1beta)"
repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/accesscontextmanager1_beta-cli"
@@ -39,4 +39,4 @@ clap = "^2.0"
[dependencies.google-accesscontextmanager1_beta]
path = "../accesscontextmanager1_beta"
version = "1.0.8+20190327"
version = "1.0.9+20190626"

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 *Access Context Manager* API at revision *20190327*. The CLI is at version *1.0.8*.
This documentation was generated from the *Access Context Manager* API at revision *20190626*. The CLI is at version *1.0.9*.
```bash
accesscontextmanager1-beta [options]

View File

@@ -1,4 +1,4 @@
site_name: Access Context Manager v1.0.8+20190327
site_name: Access Context Manager v1.0.9+20190626
site_url: http://byron.github.io/google-apis-rs/google-accesscontextmanager1_beta-cli
site_description: A complete library to interact with Access Context Manager (protocol v1beta)
@@ -28,5 +28,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

@@ -771,10 +771,16 @@ impl<'n> Engine<'n> {
let type_info: Option<(&'static str, JsonTypeInfo)> =
match &temp_cursor.to_string()[..] {
"status.restricted-services" => Some(("status.restrictedServices", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })),
"status.unrestricted-services" => Some(("status.unrestrictedServices", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })),
"status.resources" => Some(("status.resources", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })),
"status.ingress-service-restriction.enable-restriction" => Some(("status.ingressServiceRestriction.enableRestriction", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })),
"status.ingress-service-restriction.allowed-services" => Some(("status.ingressServiceRestriction.allowedServices", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })),
"status.bridge-service-restriction.enable-restriction" => Some(("status.bridgeServiceRestriction.enableRestriction", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })),
"status.bridge-service-restriction.allowed-services" => Some(("status.bridgeServiceRestriction.allowedServices", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })),
"status.access-levels" => Some(("status.accessLevels", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })),
"status.unrestricted-services" => Some(("status.unrestrictedServices", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })),
"status.vpc-service-restriction.enable-restriction" => Some(("status.vpcServiceRestriction.enableRestriction", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })),
"status.vpc-service-restriction.allowed-services" => Some(("status.vpcServiceRestriction.allowedServices", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })),
"status.restricted-services" => Some(("status.restrictedServices", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })),
"status.resources" => Some(("status.resources", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })),
"update-time" => Some(("updateTime", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })),
"name" => Some(("name", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })),
"title" => Some(("title", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })),
@@ -782,7 +788,7 @@ impl<'n> Engine<'n> {
"create-time" => Some(("createTime", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })),
"description" => Some(("description", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })),
_ => {
let suggestion = FieldCursor::did_you_mean(key, &vec!["access-levels", "create-time", "description", "name", "perimeter-type", "resources", "restricted-services", "status", "title", "unrestricted-services", "update-time"]);
let suggestion = FieldCursor::did_you_mean(key, &vec!["access-levels", "allowed-services", "bridge-service-restriction", "create-time", "description", "enable-restriction", "ingress-service-restriction", "name", "perimeter-type", "resources", "restricted-services", "status", "title", "unrestricted-services", "update-time", "vpc-service-restriction"]);
err.issues.push(CLIError::Field(FieldError::Unknown(temp_cursor.to_string(), suggestion, value.map(|v| v.to_string()))));
None
}
@@ -1028,10 +1034,16 @@ impl<'n> Engine<'n> {
let type_info: Option<(&'static str, JsonTypeInfo)> =
match &temp_cursor.to_string()[..] {
"status.restricted-services" => Some(("status.restrictedServices", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })),
"status.unrestricted-services" => Some(("status.unrestrictedServices", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })),
"status.resources" => Some(("status.resources", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })),
"status.ingress-service-restriction.enable-restriction" => Some(("status.ingressServiceRestriction.enableRestriction", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })),
"status.ingress-service-restriction.allowed-services" => Some(("status.ingressServiceRestriction.allowedServices", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })),
"status.bridge-service-restriction.enable-restriction" => Some(("status.bridgeServiceRestriction.enableRestriction", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })),
"status.bridge-service-restriction.allowed-services" => Some(("status.bridgeServiceRestriction.allowedServices", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })),
"status.access-levels" => Some(("status.accessLevels", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })),
"status.unrestricted-services" => Some(("status.unrestrictedServices", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })),
"status.vpc-service-restriction.enable-restriction" => Some(("status.vpcServiceRestriction.enableRestriction", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })),
"status.vpc-service-restriction.allowed-services" => Some(("status.vpcServiceRestriction.allowedServices", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })),
"status.restricted-services" => Some(("status.restrictedServices", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })),
"status.resources" => Some(("status.resources", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })),
"update-time" => Some(("updateTime", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })),
"name" => Some(("name", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })),
"title" => Some(("title", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })),
@@ -1039,7 +1051,7 @@ impl<'n> Engine<'n> {
"create-time" => Some(("createTime", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })),
"description" => Some(("description", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })),
_ => {
let suggestion = FieldCursor::did_you_mean(key, &vec!["access-levels", "create-time", "description", "name", "perimeter-type", "resources", "restricted-services", "status", "title", "unrestricted-services", "update-time"]);
let suggestion = FieldCursor::did_you_mean(key, &vec!["access-levels", "allowed-services", "bridge-service-restriction", "create-time", "description", "enable-restriction", "ingress-service-restriction", "name", "perimeter-type", "resources", "restricted-services", "status", "title", "unrestricted-services", "update-time", "vpc-service-restriction"]);
err.issues.push(CLIError::Field(FieldError::Unknown(temp_cursor.to_string(), suggestion, value.map(|v| v.to_string()))));
None
}
@@ -1768,7 +1780,7 @@ fn main() {
let mut app = App::new("accesscontextmanager1-beta")
.author("Sebastian Thiel <byronimo@gmail.com>")
.version("1.0.8+20190327")
.version("1.0.9+20190626")
.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")