chore(json-update): update json and regen all code

This commit is contained in:
Sebastian Thiel
2015-06-26 16:08:25 +02:00
parent 615ac64ec1
commit 7d58d66025
596 changed files with 35453 additions and 5854 deletions

View File

@@ -4,7 +4,7 @@
[package]
name = "google-appsactivity1"
version = "0.1.8+20140828"
version = "0.1.8+20150326"
authors = ["Sebastian Thiel <byronimo@gmail.com>"]
description = "A complete library to interact with appsactivity (protocol v1)"
repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/appsactivity1"
@@ -16,8 +16,8 @@ build = "src/build.rs"
[dependencies]
hyper = ">= 0.5.2"
mime = "0.0.11"
hyper = ">= 0.6.0"
mime = "0.0.12"
serde = ">= 0.4.1"
yup-oauth2 = "*"
url = "*"

View File

@@ -5,7 +5,7 @@ DO NOT EDIT !
-->
The `google-appsactivity1` library allows access to all features of the *Google appsactivity* service.
This documentation was generated from *appsactivity* crate version *0.1.8+20140828*, where *20140828* is the exact revision of the *appsactivity:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.8*.
This documentation was generated from *appsactivity* crate version *0.1.8+20150326*, where *20150326* is the exact revision of the *appsactivity:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.8*.
Everything else about the *appsactivity* *v1* API can be found at the
[official documentation site](https://developers.google.com/google-apps/activity/).

View File

@@ -12,7 +12,7 @@ use oauth2::{TokenType, Retry, self};
use hyper;
use hyper::header::{ContentType, ContentLength, Headers, UserAgent, Authorization, Header,
HeaderFormat};
use hyper::http::LINE_ENDING;
use hyper::http::h1::LINE_ENDING;
use hyper::method::Method;
use hyper::status::StatusCode;
@@ -504,7 +504,7 @@ impl ::std::ops::DerefMut for XUploadContentType {
}
impl Header for XUploadContentType {
fn header_name() -> &'static str { "X-Upload-Content-Type" }
fn parse_header(raw: &[Vec<u8>]) -> Option<Self> {
fn parse_header(raw: &[Vec<u8>]) -> hyper::error::Result<Self> {
hyper::header::parsing::from_one_raw_str(raw).map(XUploadContentType)
}
}
@@ -569,8 +569,8 @@ impl Header for ContentRange {
}
/// We are not parsable, as parsing is done by the `Range` header
fn parse_header(_: &[Vec<u8>]) -> Option<Self> {
None
fn parse_header(_: &[Vec<u8>]) -> hyper::error::Result<Self> {
Err(hyper::error::Error::Method)
}
}
@@ -595,19 +595,19 @@ impl Header for RangeResponseHeader {
"Range"
}
fn parse_header(raw: &[Vec<u8>]) -> Option<Self> {
fn parse_header(raw: &[Vec<u8>]) -> hyper::error::Result<Self> {
if raw.len() > 0 {
let v = &raw[0];
if let Ok(s) = std::str::from_utf8(v) {
const PREFIX: &'static str = "bytes ";
if s.starts_with(PREFIX) {
if let Ok(c) = <Chunk as FromStr>::from_str(&s[PREFIX.len()..]) {
return Some(RangeResponseHeader(c))
return Ok(RangeResponseHeader(c))
}
}
}
}
None
Err(hyper::error::Error::Method)
}
}

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 *appsactivity* crate version *0.1.8+20140828*, where *20140828* is the exact revision of the *appsactivity:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.8*.
//! This documentation was generated from *appsactivity* crate version *0.1.8+20150326*, where *20150326* is the exact revision of the *appsactivity:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.8*.
//!
//! Everything else about the *appsactivity* *v1* API can be found at the
//! [official documentation site](https://developers.google.com/google-apps/activity/).

View File

@@ -40,6 +40,9 @@ pub enum Scope {
/// View the activity history of your Google Apps
Activity,
/// View and manage metadata of files in your Google Drive
DriveMetadata,
/// View metadata for files in your Google Drive
DriveMetadataReadonly,
@@ -52,6 +55,7 @@ impl AsRef<str> for Scope {
match *self {
Scope::Drive => "https://www.googleapis.com/auth/drive",
Scope::Activity => "https://www.googleapis.com/auth/activity",
Scope::DriveMetadata => "https://www.googleapis.com/auth/drive.metadata",
Scope::DriveMetadataReadonly => "https://www.googleapis.com/auth/drive.metadata.readonly",
Scope::DriveReadonly => "https://www.googleapis.com/auth/drive.readonly",
}