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-cloudtrace2-cli"
version = "1.0.7+20171202"
version = "1.0.7+20181004"
authors = ["Sebastian Thiel <byronimo@gmail.com>"]
description = "A complete library to interact with Cloud Trace (protocol v2)"
repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudtrace2-cli"
@@ -12,9 +12,11 @@ homepage = "https://cloud.google.com/trace"
documentation = "http://byron.github.io/google-apis-rs/google_cloudtrace2_cli"
license = "MIT"
keywords = ["cloudtrace", "google", "cli"]
autobins = false
[[bin]]
name = "cloudtrace2"
path = "src/main.rs"
[dev-dependencies]
hyper-rustls = "^0.6"
@@ -37,4 +39,4 @@ clap = "^2.0"
[dependencies.google-cloudtrace2]
path = "../cloudtrace2"
version = "1.0.7+20171202"
version = "1.0.7+20181004"

View File

@@ -25,13 +25,13 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma
# Usage
This documentation was generated from the *Cloud Trace* API at revision *20171202*. The CLI is at version *1.0.7*.
This documentation was generated from the *Cloud Trace* API at revision *20181004*. The CLI is at version *1.0.7*.
```bash
cloudtrace2 [options]
projects
traces-batch-write <name> (-r <kv>)... [-p <v>]... [-o <out>]
traces-spans-create <name> (-r <kv>)... [-p <v>]... [-o <out>]
traces-spans-create-span <name> (-r <kv>)... [-p <v>]... [-o <out>]
cloudtrace2 --help
Configuration:

View File

@@ -1,4 +1,4 @@
site_name: Cloud Trace v1.0.7+20171202
site_name: Cloud Trace v1.0.7+20181004
site_url: http://byron.github.io/google-apis-rs/google-cloudtrace2-cli
site_description: A complete library to interact with Cloud Trace (protocol v2)
@@ -10,7 +10,7 @@ site_dir: build_html
pages:
- ['index.md', 'Home']
- ['projects_traces-batch-write.md', 'Projects', 'Traces Batch Write']
- ['projects_traces-spans-create.md', 'Projects', 'Traces Spans Create']
- ['projects_traces-spans-create-span.md', 'Projects', 'Traces Spans Create Span']
theme: readthedocs

View File

@@ -130,7 +130,7 @@ impl<'n> Engine<'n> {
}
}
fn _projects_traces_spans_create(&self, opt: &ArgMatches<'n>, dry_run: bool, err: &mut InvalidOptionsError)
fn _projects_traces_spans_create_span(&self, opt: &ArgMatches<'n>, dry_run: bool, err: &mut InvalidOptionsError)
-> Result<(), DoitError> {
let mut field_cursor = FieldCursor::default();
@@ -181,7 +181,7 @@ impl<'n> Engine<'n> {
}
}
let mut request: api::Span = json::value::from_value(object).unwrap();
let mut call = self.hub.projects().traces_spans_create(request, opt.value_of("name").unwrap_or(""));
let mut call = self.hub.projects().traces_spans_create_span(request, 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 {
@@ -241,8 +241,8 @@ impl<'n> Engine<'n> {
("traces-batch-write", Some(opt)) => {
call_result = self._projects_traces_batch_write(opt, dry_run, &mut err);
},
("traces-spans-create", Some(opt)) => {
call_result = self._projects_traces_spans_create(opt, dry_run, &mut err);
("traces-spans-create-span", Some(opt)) => {
call_result = self._projects_traces_spans_create_span(opt, dry_run, &mut err);
},
_ => {
err.issues.push(CLIError::MissingMethodError("projects".to_string()));
@@ -305,11 +305,10 @@ impl<'n> Engine<'n> {
let engine = Engine {
opt: opt,
hub: api::CloudTrace::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"),
@@ -336,7 +335,7 @@ impl<'n> Engine<'n> {
fn main() {
let mut exit_status = 0i32;
let arg_data = [
("projects", "methods: 'traces-batch-write' and 'traces-spans-create'", vec![
("projects", "methods: 'traces-batch-write' and 'traces-spans-create-span'", vec![
("traces-batch-write",
Some(r##"Sends new spans to new or existing traces. You cannot update
existing spans."##),
@@ -367,9 +366,9 @@ fn main() {
Some(false),
Some(false)),
]),
("traces-spans-create",
("traces-spans-create-span",
Some(r##"Creates a new span."##),
"Details at http://byron.github.io/google-apis-rs/google_cloudtrace2_cli/projects_traces-spans-create",
"Details at http://byron.github.io/google-apis-rs/google_cloudtrace2_cli/projects_traces-spans-create-span",
vec![
(Some(r##"name"##),
None,
@@ -407,8 +406,8 @@ fn main() {
let mut app = App::new("cloudtrace2")
.author("Sebastian Thiel <byronimo@gmail.com>")
.version("1.0.7+20171202")
.about("Sends application trace data to Stackdriver Trace for viewing. Trace data is collected for all App Engine applications by default. Trace data from other applications can be provided using this API.
.version("1.0.7+20181004")
.about("Sends application trace data to Stackdriver Trace for viewing. Trace data is collected for all App Engine applications by default. Trace data from other applications can be provided using this API. This library is used to interact with the Trace API directly. If you are looking to instrument your application for Stackdriver Trace, we recommend using OpenCensus.
")
.after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_cloudtrace2_cli")
.arg(Arg::with_name("url")