Regen storage 1

This commit is contained in:
Sebastian Thiel
2021-08-25 07:59:53 +08:00
parent 32a6d876a6
commit 73fdfd4fed
9 changed files with 53 additions and 50 deletions

View File

@@ -136,6 +136,7 @@ impl Default for Scope {
/// }
/// # }
/// ```
#[derive(Clone)]
pub struct Storage<> {
client: hyper::Client<hyper_rustls::HttpsConnector<hyper::client::connect::HttpConnector>, hyper::body::Body>,
auth: oauth2::authenticator::Authenticator<hyper_rustls::HttpsConnector<hyper::client::connect::HttpConnector>>,
@@ -152,7 +153,7 @@ impl<'a, > Storage<> {
Storage {
client,
auth: authenticator,
_user_agent: "google-api-rust-client/2.0.5".to_string(),
_user_agent: "google-api-rust-client/2.0.7".to_string(),
_base_url: "https://storage.googleapis.com/storage/v1/".to_string(),
_root_url: "https://storage.googleapis.com/".to_string(),
}
@@ -184,7 +185,7 @@ impl<'a, > Storage<> {
}
/// Set the user-agent header field to use in all requests to the server.
/// It defaults to `google-api-rust-client/2.0.5`.
/// It defaults to `google-api-rust-client/2.0.7`.
///
/// Returns the previously set user-agent.
pub fn user_agent(&mut self, agent_name: String) -> String {

View File

@@ -1,3 +1,5 @@
// COPY OF 'src/rust/api/client.rs'
// DO NOT EDIT
use std::error;
use std::fmt::{self, Display};
use std::io::{self, Cursor, Read, Seek, SeekFrom, Write};
@@ -59,8 +61,8 @@ pub trait Part {}
pub trait NestedType {}
/// A utility to specify reader types which provide seeking capabilities too
pub trait ReadSeek: Seek + Read {}
impl<T: Seek + Read> ReadSeek for T {}
pub trait ReadSeek: Seek + Read + Send {}
impl<T: Seek + Read + Send> ReadSeek for T {}
/// A trait for all types that can convert themselves into a *parts* string
pub trait ToParts {

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 *storage* crate version *2.0.5+20210330*, where *20210330* is the exact revision of the *storage:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v2.0.5*.
//! This documentation was generated from *storage* crate version *2.0.7+20210330*, where *20210330* is the exact revision of the *storage:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v2.0.7*.
//!
//! Everything else about the *storage* *v1* API can be found at the
//! [official documentation site](https://developers.google.com/storage/docs/json_api/).