mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
regen all APIs
This commit is contained in:
@@ -127,6 +127,7 @@ impl Default for Scope {
|
||||
/// }
|
||||
/// # }
|
||||
/// ```
|
||||
#[derive(Clone)]
|
||||
pub struct Bigquery<> {
|
||||
client: hyper::Client<hyper_rustls::HttpsConnector<hyper::client::connect::HttpConnector>, hyper::body::Body>,
|
||||
auth: oauth2::authenticator::Authenticator<hyper_rustls::HttpsConnector<hyper::client::connect::HttpConnector>>,
|
||||
@@ -143,7 +144,7 @@ impl<'a, > Bigquery<> {
|
||||
Bigquery {
|
||||
client,
|
||||
auth: authenticator,
|
||||
_user_agent: "google-api-rust-client/2.0.5".to_string(),
|
||||
_user_agent: "google-api-rust-client/2.0.8".to_string(),
|
||||
_base_url: "https://bigquery.googleapis.com/bigquery/v2/".to_string(),
|
||||
_root_url: "https://bigquery.googleapis.com/".to_string(),
|
||||
}
|
||||
@@ -175,7 +176,7 @@ impl<'a, > Bigquery<> {
|
||||
}
|
||||
|
||||
/// 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.8`.
|
||||
///
|
||||
/// Returns the previously set user-agent.
|
||||
pub fn user_agent(&mut self, agent_name: String) -> String {
|
||||
@@ -8108,9 +8109,9 @@ impl<'a> JobInsertCall<'a> {
|
||||
mp_reader.add_part(&mut request_value_reader, request_size, json_mime_type.clone())
|
||||
.add_part(&mut reader, size, reader_mime_type.clone());
|
||||
let mime_type = mp_reader.mime_type();
|
||||
(&mut mp_reader as &mut dyn io::Read, (CONTENT_TYPE, mime_type.to_string()))
|
||||
(&mut mp_reader as &mut (dyn io::Read + Send), (CONTENT_TYPE, mime_type.to_string()))
|
||||
},
|
||||
_ => (&mut request_value_reader as &mut dyn io::Read, (CONTENT_TYPE, json_mime_type.to_string())),
|
||||
_ => (&mut request_value_reader as &mut (dyn io::Read + Send), (CONTENT_TYPE, json_mime_type.to_string())),
|
||||
};
|
||||
let client = &self.hub.client;
|
||||
dlg.pre_request();
|
||||
|
||||
@@ -61,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 {
|
||||
@@ -362,8 +362,8 @@ const BOUNDARY: &str = "MDuXWGyeE33QFXGchb2VFWc4Z7945d";
|
||||
/// to google APIs, and might not be a fully-featured implementation.
|
||||
#[derive(Default)]
|
||||
pub struct MultiPartReader<'a> {
|
||||
raw_parts: Vec<(HeaderMap, &'a mut dyn Read)>,
|
||||
current_part: Option<(Cursor<Vec<u8>>, &'a mut dyn Read)>,
|
||||
raw_parts: Vec<(HeaderMap, &'a mut (dyn Read + Send))>,
|
||||
current_part: Option<(Cursor<Vec<u8>>, &'a mut (dyn Read + Send))>,
|
||||
last_part_boundary: Option<Cursor<Vec<u8>>>,
|
||||
}
|
||||
|
||||
@@ -386,7 +386,7 @@ impl<'a> MultiPartReader<'a> {
|
||||
/// `mime` - It will be put onto the content type
|
||||
pub fn add_part(
|
||||
&mut self,
|
||||
reader: &'a mut dyn Read,
|
||||
reader: &'a mut (dyn Read + Send),
|
||||
size: u64,
|
||||
mime_type: Mime,
|
||||
) -> &mut MultiPartReader<'a> {
|
||||
@@ -405,7 +405,7 @@ impl<'a> MultiPartReader<'a> {
|
||||
pub fn mime_type(&self) -> Mime {
|
||||
Mime(
|
||||
TopLevel::Multipart,
|
||||
SubLevel::Ext("Related".to_string()),
|
||||
SubLevel::Ext("related".to_string()),
|
||||
vec code generator *v2.0.5*.
|
||||
//! This documentation was generated from *bigquery* crate version *2.0.8+20210327*, where *20210327* is the exact revision of the *bigquery:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v2.0.8*.
|
||||
//!
|
||||
//! Everything else about the *bigquery* *v2* API can be found at the
|
||||
//! [official documentation site](https://cloud.google.com/bigquery/).
|
||||
|
||||
Reference in New Issue
Block a user