mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
Bump version to 1.0.9; update JSON schemas; add new APIs
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
[package]
|
||||
|
||||
name = "google-remotebuildexecution2-cli"
|
||||
version = "1.0.8+20190326"
|
||||
version = "1.0.9+20190702"
|
||||
authors = ["Sebastian Thiel <byronimo@gmail.com>"]
|
||||
description = "A complete library to interact with Remote Build Execution (protocol v2)"
|
||||
repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/remotebuildexecution2-cli"
|
||||
@@ -39,4 +39,4 @@ clap = "^2.0"
|
||||
|
||||
[dependencies.google-remotebuildexecution2]
|
||||
path = "../remotebuildexecution2"
|
||||
version = "1.0.8+20190326"
|
||||
version = "1.0.9+20190702"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 *Remote Build Execution* API at revision *20190326*. The CLI is at version *1.0.8*.
|
||||
This documentation was generated from the *Remote Build Execution* API at revision *20190702*. The CLI is at version *1.0.9*.
|
||||
|
||||
```bash
|
||||
remotebuildexecution2 [options]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
site_name: Remote Build Execution v1.0.8+20190326
|
||||
site_name: Remote Build Execution v1.0.9+20190702
|
||||
site_url: http://byron.github.io/google-apis-rs/google-remotebuildexecution2-cli
|
||||
site_description: A complete library to interact with Remote Build Execution (protocol v2)
|
||||
|
||||
@@ -21,5 +21,5 @@ pages:
|
||||
|
||||
theme: readthedocs
|
||||
|
||||
copyright: Copyright © 2015-2016, `Sebastian Thiel`
|
||||
copyright: Copyright © 2015-2019, `Sebastian Thiel`
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,6 +52,15 @@ impl<'n> Engine<'n> {
|
||||
for parg in opt.values_of("v").map(|i|i.collect()).unwrap_or(Vec::new()).iter() {
|
||||
let (key, value) = parse_kv_arg(&*parg, err, false);
|
||||
match key {
|
||||
"inline-stdout" => {
|
||||
call = call.inline_stdout(arg_from_str(value.unwrap_or("false"), err, "inline-stdout", "boolean"));
|
||||
},
|
||||
"inline-stderr" => {
|
||||
call = call.inline_stderr(arg_from_str(value.unwrap_or("false"), err, "inline-stderr", "boolean"));
|
||||
},
|
||||
"inline-output-files" => {
|
||||
call = call.add_inline_output_files(value.unwrap_or(""));
|
||||
},
|
||||
_ => {
|
||||
let mut found = false;
|
||||
for param in &self.gp {
|
||||
@@ -65,6 +74,7 @@ impl<'n> Engine<'n> {
|
||||
err.issues.push(CLIError::UnknownParameter(key.to_string(),
|
||||
{let mut v = Vec::new();
|
||||
v.extend(self.gp.iter().map(|v|*v));
|
||||
v.extend(["inline-output-files", "inline-stderr", "inline-stdout"].iter().map(|v|*v));
|
||||
v } ));
|
||||
}
|
||||
}
|
||||
@@ -900,6 +910,13 @@ fn main() {
|
||||
("get",
|
||||
Some(r##"Retrieve a cached execution result.
|
||||
|
||||
Implementations SHOULD ensure that any blobs referenced from the
|
||||
ContentAddressableStorage
|
||||
are available at the time of returning the
|
||||
ActionResult and will be
|
||||
for some period of time afterwards. The TTLs of the referenced blobs SHOULD be increased
|
||||
if necessary and applicable.
|
||||
|
||||
Errors:
|
||||
|
||||
* `NOT_FOUND`: The requested `ActionResult` is not in the cache."##),
|
||||
@@ -1306,7 +1323,14 @@ fn main() {
|
||||
|
||||
("methods", "methods: 'get-capabilities'", vec![
|
||||
("get-capabilities",
|
||||
Some(r##"GetCapabilities returns the server capabilities configuration."##),
|
||||
Some(r##"GetCapabilities returns the server capabilities configuration of the
|
||||
remote endpoint.
|
||||
Only the capabilities of the services supported by the endpoint will
|
||||
be returned:
|
||||
* Execution + CAS + Action Cache endpoints should return both
|
||||
CacheCapabilities and ExecutionCapabilities.
|
||||
* Execution only endpoints should return ExecutionCapabilities.
|
||||
* CAS + Action Cache only endpoints should return CacheCapabilities."##),
|
||||
"Details at http://byron.github.io/google-apis-rs/google_remotebuildexecution2_cli/methods_get-capabilities",
|
||||
vec![
|
||||
(Some(r##"instance-name"##),
|
||||
@@ -1374,7 +1398,7 @@ fn main() {
|
||||
|
||||
let mut app = App::new("remotebuildexecution2")
|
||||
.author("Sebastian Thiel <byronimo@gmail.com>")
|
||||
.version("1.0.8+20190326")
|
||||
.version("1.0.9+20190702")
|
||||
.about("Supplies a Remote Execution API service for tools such as bazel.")
|
||||
.after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_remotebuildexecution2_cli")
|
||||
.arg(Arg::with_name("url")
|
||||
|
||||
Reference in New Issue
Block a user