mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
regenerate all crates with updated patch level
This commit is contained in:
@@ -4,12 +4,12 @@
|
||||
[package]
|
||||
|
||||
name = "google-cloudtrace2"
|
||||
version = "1.0.12+20190622"
|
||||
version = "1.0.13+20200330"
|
||||
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"
|
||||
homepage = "https://cloud.google.com/trace"
|
||||
documentation = "https://docs.rs/google-cloudtrace2/1.0.12+20190622"
|
||||
documentation = "https://docs.rs/google-cloudtrace2/1.0.13+20200330"
|
||||
license = "MIT"
|
||||
keywords = ["cloudtrace", "google", "protocol", "web", "api"]
|
||||
autobins = false
|
||||
|
||||
@@ -5,16 +5,16 @@ DO NOT EDIT !
|
||||
-->
|
||||
The `google-cloudtrace2` library allows access to all features of the *Google Cloud Trace* service.
|
||||
|
||||
This documentation was generated from *Cloud Trace* crate version *1.0.12+20190622*, where *20190622* is the exact revision of the *cloudtrace:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*.
|
||||
This documentation was generated from *Cloud Trace* crate version *1.0.13+20200330*, where *20200330* is the exact revision of the *cloudtrace:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.13*.
|
||||
|
||||
Everything else about the *Cloud Trace* *v2* API can be found at the
|
||||
[official documentation site](https://cloud.google.com/trace).
|
||||
# Features
|
||||
|
||||
Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudtrace2/1.0.12+20190622/google_cloudtrace2/struct.CloudTrace.html) ...
|
||||
Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudtrace2/1.0.13+20200330/google_cloudtrace2/struct.CloudTrace.html) ...
|
||||
|
||||
* projects
|
||||
* [*traces batch write*](https://docs.rs/google-cloudtrace2/1.0.12+20190622/google_cloudtrace2/struct.ProjectTraceBatchWriteCall.html) and [*traces spans create span*](https://docs.rs/google-cloudtrace2/1.0.12+20190622/google_cloudtrace2/struct.ProjectTraceSpanCreateSpanCall.html)
|
||||
* [*traces batch write*](https://docs.rs/google-cloudtrace2/1.0.13+20200330/google_cloudtrace2/struct.ProjectTraceBatchWriteCall.html) and [*traces spans create span*](https://docs.rs/google-cloudtrace2/1.0.13+20200330/google_cloudtrace2/struct.ProjectTraceSpanCreateSpanCall.html)
|
||||
|
||||
|
||||
|
||||
@@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r
|
||||
|
||||
The API is structured into the following primary items:
|
||||
|
||||
* **[Hub](https://docs.rs/google-cloudtrace2/1.0.12+20190622/google_cloudtrace2/struct.CloudTrace.html)**
|
||||
* **[Hub](https://docs.rs/google-cloudtrace2/1.0.13+20200330/google_cloudtrace2/struct.CloudTrace.html)**
|
||||
* a central object to maintain state and allow accessing all *Activities*
|
||||
* creates [*Method Builders*](https://docs.rs/google-cloudtrace2/1.0.12+20190622/google_cloudtrace2/trait.MethodsBuilder.html) which in turn
|
||||
allow access to individual [*Call Builders*](https://docs.rs/google-cloudtrace2/1.0.12+20190622/google_cloudtrace2/trait.CallBuilder.html)
|
||||
* **[Resources](https://docs.rs/google-cloudtrace2/1.0.12+20190622/google_cloudtrace2/trait.Resource.html)**
|
||||
* creates [*Method Builders*](https://docs.rs/google-cloudtrace2/1.0.13+20200330/google_cloudtrace2/trait.MethodsBuilder.html) which in turn
|
||||
allow access to individual [*Call Builders*](https://docs.rs/google-cloudtrace2/1.0.13+20200330/google_cloudtrace2/trait.CallBuilder.html)
|
||||
* **[Resources](https://docs.rs/google-cloudtrace2/1.0.13+20200330/google_cloudtrace2/trait.Resource.html)**
|
||||
* primary types that you can apply *Activities* to
|
||||
* a collection of properties and *Parts*
|
||||
* **[Parts](https://docs.rs/google-cloudtrace2/1.0.12+20190622/google_cloudtrace2/trait.Part.html)**
|
||||
* **[Parts](https://docs.rs/google-cloudtrace2/1.0.13+20200330/google_cloudtrace2/trait.Part.html)**
|
||||
* a collection of properties
|
||||
* never directly used in *Activities*
|
||||
* **[Activities](https://docs.rs/google-cloudtrace2/1.0.12+20190622/google_cloudtrace2/trait.CallBuilder.html)**
|
||||
* **[Activities](https://docs.rs/google-cloudtrace2/1.0.13+20200330/google_cloudtrace2/trait.CallBuilder.html)**
|
||||
* operations to apply to *Resources*
|
||||
|
||||
All *structures* are marked with applicable traits to further categorize them and ease browsing.
|
||||
@@ -130,17 +130,17 @@ match result {
|
||||
```
|
||||
## Handling Errors
|
||||
|
||||
All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudtrace2/1.0.12+20190622/google_cloudtrace2/enum.Result.html) enumeration as return value of
|
||||
All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudtrace2/1.0.13+20200330/google_cloudtrace2/enum.Result.html) enumeration as return value of
|
||||
the doit() methods, or handed as possibly intermediate results to either the
|
||||
[Hub Delegate](https://docs.rs/google-cloudtrace2/1.0.12+20190622/google_cloudtrace2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html).
|
||||
[Hub Delegate](https://docs.rs/google-cloudtrace2/1.0.13+20200330/google_cloudtrace2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html).
|
||||
|
||||
When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This
|
||||
makes the system potentially resilient to all kinds of errors.
|
||||
|
||||
## Uploads and Downloads
|
||||
If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudtrace2/1.0.12+20190622/google_cloudtrace2/enum.Result.html), should be
|
||||
If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudtrace2/1.0.13+20200330/google_cloudtrace2/enum.Result.html), should be
|
||||
read by you to obtain the media.
|
||||
If such a method also supports a [Response Result](https://docs.rs/google-cloudtrace2/1.0.12+20190622/google_cloudtrace2/trait.ResponseResult.html), it will return that by default.
|
||||
If such a method also supports a [Response Result](https://docs.rs/google-cloudtrace2/1.0.13+20200330/google_cloudtrace2/trait.ResponseResult.html), it will return that by default.
|
||||
You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making
|
||||
this call: `.param("alt", "media")`.
|
||||
|
||||
@@ -150,29 +150,29 @@ Methods supporting uploads can do so using up to 2 different protocols:
|
||||
|
||||
## Customization and Callbacks
|
||||
|
||||
You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudtrace2/1.0.12+20190622/google_cloudtrace2/trait.Delegate.html) to the
|
||||
[Method Builder](https://docs.rs/google-cloudtrace2/1.0.12+20190622/google_cloudtrace2/trait.CallBuilder.html) before making the final `doit()` call.
|
||||
You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudtrace2/1.0.13+20200330/google_cloudtrace2/trait.Delegate.html) to the
|
||||
[Method Builder](https://docs.rs/google-cloudtrace2/1.0.13+20200330/google_cloudtrace2/trait.CallBuilder.html) before making the final `doit()` call.
|
||||
Respective methods will be called to provide progress information, as well as determine whether the system should
|
||||
retry on failure.
|
||||
|
||||
The [delegate trait](https://docs.rs/google-cloudtrace2/1.0.12+20190622/google_cloudtrace2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort.
|
||||
The [delegate trait](https://docs.rs/google-cloudtrace2/1.0.13+20200330/google_cloudtrace2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort.
|
||||
|
||||
## Optional Parts in Server-Requests
|
||||
|
||||
All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudtrace2/1.0.12+20190622/google_cloudtrace2/trait.RequestValue.html) and
|
||||
[decodable](https://docs.rs/google-cloudtrace2/1.0.12+20190622/google_cloudtrace2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses
|
||||
All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudtrace2/1.0.13+20200330/google_cloudtrace2/trait.RequestValue.html) and
|
||||
[decodable](https://docs.rs/google-cloudtrace2/1.0.13+20200330/google_cloudtrace2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses
|
||||
are valid.
|
||||
Most optionals are are considered [Parts](https://docs.rs/google-cloudtrace2/1.0.12+20190622/google_cloudtrace2/trait.Part.html) which are identifiable by name, which will be sent to
|
||||
Most optionals are are considered [Parts](https://docs.rs/google-cloudtrace2/1.0.13+20200330/google_cloudtrace2/trait.Part.html) which are identifiable by name, which will be sent to
|
||||
the server to indicate either the set parts of the request or the desired parts in the response.
|
||||
|
||||
## Builder Arguments
|
||||
|
||||
Using [method builders](https://docs.rs/google-cloudtrace2/1.0.12+20190622/google_cloudtrace2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods.
|
||||
Using [method builders](https://docs.rs/google-cloudtrace2/1.0.13+20200330/google_cloudtrace2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods.
|
||||
These will always take a single argument, for which the following statements are true.
|
||||
|
||||
* [PODs][wiki-pod] are handed by copy
|
||||
* strings are passed as `&str`
|
||||
* [request values](https://docs.rs/google-cloudtrace2/1.0.12+20190622/google_cloudtrace2/trait.RequestValue.html) are moved
|
||||
* [request values](https://docs.rs/google-cloudtrace2/1.0.13+20200330/google_cloudtrace2/trait.RequestValue.html) are moved
|
||||
|
||||
Arguments will always be copied or cloned into the builder, to make them independent of their original life times.
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// This file was generated automatically from 'src/mako/api/lib.rs.mako'
|
||||
// DO NOT EDIT !
|
||||
|
||||
//! This documentation was generated from *Cloud Trace* crate version *1.0.12+20190622*, where *20190622* is the exact revision of the *cloudtrace:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*.
|
||||
//! This documentation was generated from *Cloud Trace* crate version *1.0.13+20200330*, where *20200330* is the exact revision of the *cloudtrace:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.13*.
|
||||
//!
|
||||
//! Everything else about the *Cloud Trace* *v2* API can be found at the
|
||||
//! [official documentation site](https://cloud.google.com/trace).
|
||||
@@ -333,7 +333,7 @@ impl<'a, C, A> CloudTrace<C, A>
|
||||
CloudTrace {
|
||||
client: RefCell::new(client),
|
||||
auth: RefCell::new(authenticator),
|
||||
_user_agent: "google-api-rust-client/1.0.12".to_string(),
|
||||
_user_agent: "google-api-rust-client/1.0.13".to_string(),
|
||||
_base_url: "https://cloudtrace.googleapis.com/".to_string(),
|
||||
_root_url: "https://cloudtrace.googleapis.com/".to_string(),
|
||||
}
|
||||
@@ -344,7 +344,7 @@ impl<'a, C, A> CloudTrace<C, A>
|
||||
}
|
||||
|
||||
/// Set the user-agent header field to use in all requests to the server.
|
||||
/// It defaults to `google-api-rust-client/1.0.12`.
|
||||
/// It defaults to `google-api-rust-client/1.0.13`.
|
||||
///
|
||||
/// Returns the previously set user-agent.
|
||||
pub fn user_agent(&mut self, agent_name: String) -> String {
|
||||
@@ -413,13 +413,13 @@ impl Part for StackTrace {}
|
||||
///
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct Span {
|
||||
/// An optional final status for this span.
|
||||
/// Optional. The final status for this span.
|
||||
pub status: Option<Status>,
|
||||
/// An optional number of child spans that were generated while this span
|
||||
/// Optional. The number of child spans that were generated while this span
|
||||
/// was active. If set, allows implementation to detect missing child spans.
|
||||
#[serde(rename="childSpanCount")]
|
||||
pub child_span_count: Option<i32>,
|
||||
/// A description of the span's operation (up to 128 bytes).
|
||||
/// Required. A description of the span's operation (up to 128 bytes).
|
||||
/// Stackdriver Trace displays the description in the
|
||||
/// Google Cloud Platform Console.
|
||||
/// For example, the display name can be a qualified method name or a file name
|
||||
@@ -444,11 +444,16 @@ pub struct Span {
|
||||
/// Stack trace captured at the start of the span.
|
||||
#[serde(rename="stackTrace")]
|
||||
pub stack_trace: Option<StackTrace>,
|
||||
/// Distinguishes between spans generated in a particular context. For example,
|
||||
/// two spans with the same name may be distinguished using `CLIENT` (caller)
|
||||
/// and `SERVER` (callee) to identify an RPC call.
|
||||
#[serde(rename="spanKind")]
|
||||
pub span_kind: Option<String>,
|
||||
/// The [SPAN_ID] of this span's parent span. If this is a root span,
|
||||
/// then this field must be empty.
|
||||
#[serde(rename="parentSpanId")]
|
||||
pub parent_span_id: Option<String>,
|
||||
/// The start time of the span. On the client side, this is the time kept by
|
||||
/// Required. The start time of the span. On the client side, this is the time kept by
|
||||
/// the local machine where the span execution starts. On the server side, this
|
||||
/// is the time when the server's application handler starts running.
|
||||
#[serde(rename="startTime")]
|
||||
@@ -456,19 +461,19 @@ pub struct Span {
|
||||
/// A set of attributes on the span. You can have up to 32 attributes per
|
||||
/// span.
|
||||
pub attributes: Option<Attributes>,
|
||||
/// The [SPAN_ID] portion of the span's resource name.
|
||||
/// Required. The [SPAN_ID] portion of the span's resource name.
|
||||
#[serde(rename="spanId")]
|
||||
pub span_id: Option<String>,
|
||||
/// A set of time events. You can have up to 32 annotations and 128 message
|
||||
/// events per span.
|
||||
#[serde(rename="timeEvents")]
|
||||
pub time_events: Option<TimeEvents>,
|
||||
/// The end time of the span. On the client side, this is the time kept by
|
||||
/// Required. The end time of the span. On the client side, this is the time kept by
|
||||
/// the local machine where the span execution ends. On the server side, this
|
||||
/// is the time when the server application handler stops running.
|
||||
#[serde(rename="endTime")]
|
||||
pub end_time: Option<String>,
|
||||
/// (Optional) Set this parameter to indicate whether this span is in
|
||||
/// Optional. Set this parameter to indicate whether this span is in
|
||||
/// the same process as its parent. If you do not set this parameter,
|
||||
/// Stackdriver Trace is unable to take advantage of this helpful
|
||||
/// information.
|
||||
@@ -628,7 +633,7 @@ impl Part for MessageEvent {}
|
||||
///
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct BatchWriteSpansRequest {
|
||||
/// A list of new spans. The span names must not match existing
|
||||
/// Required. A list of new spans. The span names must not match existing
|
||||
/// spans, or the results are undefined.
|
||||
pub spans: Option<Vec<Span>>,
|
||||
}
|
||||
@@ -868,6 +873,8 @@ impl<'a, C, A> ProjectMethods<'a, C, A> {
|
||||
/// Create a builder to help you perform the following task:
|
||||
///
|
||||
/// Creates a new span.
|
||||
/// In this case, writing traces is not considered an active developer
|
||||
/// method since traces are machine generated.
|
||||
///
|
||||
/// # Arguments
|
||||
///
|
||||
@@ -892,6 +899,8 @@ impl<'a, C, A> ProjectMethods<'a, C, A> {
|
||||
///
|
||||
/// Sends new spans to new or existing traces. You cannot update
|
||||
/// existing spans.
|
||||
/// In this case, writing traces is not considered an active developer
|
||||
/// method since traces are machine generated.
|
||||
///
|
||||
/// # Arguments
|
||||
///
|
||||
@@ -919,6 +928,8 @@ impl<'a, C, A> ProjectMethods<'a, C, A> {
|
||||
// #################
|
||||
|
||||
/// Creates a new span.
|
||||
/// In this case, writing traces is not considered an active developer
|
||||
/// method since traces are machine generated.
|
||||
///
|
||||
/// A builder for the *traces.spans.createSpan* method supported by a *project* resource.
|
||||
/// It is not used directly, but through a `ProjectMethods` instance.
|
||||
@@ -1208,6 +1219,8 @@ impl<'a, C, A> ProjectTraceSpanCreateSpanCall<'a, C, A> where C: BorrowMut<hyper
|
||||
|
||||
/// Sends new spans to new or existing traces. You cannot update
|
||||
/// existing spans.
|
||||
/// In this case, writing traces is not considered an active developer
|
||||
/// method since traces are machine generated.
|
||||
///
|
||||
/// A builder for the *traces.batchWrite* method supported by a *project* resource.
|
||||
/// It is not used directly, but through a `ProjectMethods` instance.
|
||||
|
||||
Reference in New Issue
Block a user