Regenerate all code

Related to #239
This commit is contained in:
Sebastian Thiel
2019-09-09 08:31:59 +02:00
parent bcc72e4fc1
commit 11db47ca2a
1565 changed files with 10716 additions and 9543 deletions

View File

@@ -72,24 +72,24 @@ pub struct JsonServerError {
/// The latter happen if the sent parameters or request structures are unsound
#[derive(Deserialize, Serialize, Debug)]
pub struct ErrorResponse {
error: ServerError,
pub error: ServerError,
}
#[derive(Deserialize, Serialize, Debug)]
pub struct ServerError {
errors: Vec<ServerMessage>,
code: u16,
message: String,
pub errors: Vec<ServerMessage>,
pub code: u16,
pub message: String,
}
#[derive(Deserialize, Serialize, Debug)]
pub struct ServerMessage {
domain: String,
reason: String,
message: String,
pub domain: String,
pub reason: String,
pub message: String,
#[serde(rename="locationType")]
location_type: Option<String>,
location: Option<String>
pub location_type: Option<String>,
pub location: Option<String>
}
#[derive(Copy, Clone)]

View File

@@ -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.10+20190622*, where *20190622* is the exact revision of the *cloudtrace:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.10*.
//! This documentation was generated from *Cloud Trace* crate version *1.0.11+20190622*, where *20190622* is the exact revision of the *cloudtrace:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*.
//!
//! 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.10".to_string(),
_user_agent: "google-api-rust-client/1.0.11".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.10`.
/// It defaults to `google-api-rust-client/1.0.11`.
///
/// Returns the previously set user-agent.
pub fn user_agent(&mut self, agent_name: String) -> String {