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 {