regenerate all crates with updated patch level

This commit is contained in:
Sebastian Thiel
2020-04-12 18:58:21 +08:00
parent aacc30f08d
commit d302542d8d
1372 changed files with 345452 additions and 163522 deletions

View File

@@ -4,7 +4,7 @@
[package]
name = "google-vault1-cli"
version = "1.0.12+20190614"
version = "1.0.13+20200330"
authors = ["Sebastian Thiel <byronimo@gmail.com>"]
description = "A complete library to interact with Vault (protocol v1)"
repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/vault1-cli"
@@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"]
[dependencies.google-vault1]
path = "../vault1"
version = "1.0.12+20190614"
version = "1.0.13+20200330"

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 *Vault* API at revision *20190614*. The CLI is at version *1.0.12*.
This documentation was generated from the *Vault* API at revision *20200330*. The CLI is at version *1.0.13*.
```bash
vault1 [options]
@@ -58,6 +58,8 @@ vault1 [options]
saved-queries-list <matter-id> [-p <v>]... [-o <out>]
undelete <matter-id> (-r <kv>)... [-p <v>]... [-o <out>]
update <matter-id> (-r <kv>)... [-p <v>]... [-o <out>]
operations
delete <name> [-p <v>]... [-o <out>]
vault1 --help
Configuration:

View File

@@ -1,4 +1,4 @@
site_name: Vault v1.0.12+20190614
site_name: Vault v1.0.13+20200330
site_url: http://byron.github.io/google-apis-rs/google-vault1-cli
site_description: A complete library to interact with Vault (protocol v1)
@@ -37,6 +37,7 @@ pages:
- ['matters_saved-queries-list.md', 'Matters', 'Saved Queries List']
- ['matters_undelete.md', 'Matters', 'Undelete']
- ['matters_update.md', 'Matters', 'Update']
- ['operations_delete.md', 'Operations', 'Delete']
theme: readthedocs

View File

@@ -2102,6 +2102,55 @@ impl<'n> Engine<'n> {
}
}
fn _operations_delete(&self, opt: &ArgMatches<'n>, dry_run: bool, err: &mut InvalidOptionsError)
-> Result<(), DoitError> {
let mut call = self.hub.operations().delete(opt.value_of("name").unwrap_or(""));
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 {
_ => {
let mut found = false;
for param in &self.gp {
if key == *param {
found = true;
call = call.param(self.gpm.iter().find(|t| t.0 == key).unwrap_or(&("", key)).1, value.unwrap_or("unset"));
break;
}
}
if !found {
err.issues.push(CLIError::UnknownParameter(key.to_string(),
{let mut v = Vec::new();
v.extend(self.gp.iter().map(|v|*v));
v } ));
}
}
}
}
let protocol = CallType::Standard;
if dry_run {
Ok(())
} else {
assert!(err.issues.len() == 0);
let mut ostream = match writer_from_opts(opt.value_of("out")) {
Ok(mut f) => f,
Err(io_err) => return Err(DoitError::IoError(opt.value_of("out").unwrap_or("-").to_string(), io_err)),
};
match match protocol {
CallType::Standard => call.doit(),
_ => unreachable!()
} {
Err(api_err) => Err(DoitError::ApiError(api_err)),
Ok((mut response, output_schema)) => {
let mut value = json::value::to_value(&output_schema).expect("serde to work");
remove_json_null_values(&mut value);
json::to_writer_pretty(&mut ostream, &value).unwrap();
ostream.flush().unwrap();
Ok(())
}
}
}
}
fn _doit(&self, dry_run: bool) -> Result<Result<(), DoitError>, Option<InvalidOptionsError>> {
let mut err = InvalidOptionsError::new();
let mut call_result: Result<(), DoitError> = Ok(());
@@ -2199,6 +2248,17 @@ impl<'n> Engine<'n> {
}
}
},
("operations", Some(opt)) => {
match opt.subcommand() {
("delete", Some(opt)) => {
call_result = self._operations_delete(opt, dry_run, &mut err);
},
_ => {
err.issues.push(CLIError::MissingMethodError("operations".to_string()));
writeln!(io::stderr(), "{}\n", opt.usage()).ok();
}
}
},
_ => {
err.issues.push(CLIError::MissingCommandError);
writeln!(io::stderr(), "{}\n", self.opt.usage()).ok();
@@ -3076,11 +3136,39 @@ fn main() {
]),
]),
("operations", "methods: 'delete'", vec![
("delete",
Some(r##"Deletes a long-running operation. This method indicates that the client is
no longer interested in the operation result. It does not cancel the
operation. If the server doesn't support this method, it returns
`google.rpc.Code.UNIMPLEMENTED`."##),
"Details at http://byron.github.io/google-apis-rs/google_vault1_cli/operations_delete",
vec![
(Some(r##"name"##),
None,
Some(r##"The name of the operation resource to be deleted."##),
Some(true),
Some(false)),
(Some(r##"v"##),
Some(r##"p"##),
Some(r##"Set various optional parameters, matching the key=value form"##),
Some(false),
Some(true)),
(Some(r##"out"##),
Some(r##"o"##),
Some(r##"Specify the file into which to write the program's output"##),
Some(false),
Some(false)),
]),
]),
];
let mut app = App::new("vault1")
.author("Sebastian Thiel <byronimo@gmail.com>")
.version("1.0.12+20190614")
.version("1.0.13+20200330")
.about("Archiving and eDiscovery for G Suite.")
.after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_vault1_cli")
.arg(Arg::with_name("url")