mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
regenerate everything
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
use std::collections::HashMap;
|
||||
use std::cell::RefCell;
|
||||
use std::borrow::BorrowMut;
|
||||
use std::default::Default;
|
||||
use std::collections::BTreeMap;
|
||||
use serde_json as json;
|
||||
@@ -83,35 +82,34 @@ use crate::client;
|
||||
/// }
|
||||
/// # }
|
||||
/// ```
|
||||
pub struct CloudSecurityToken<C> {
|
||||
client: RefCell<C>,
|
||||
auth: RefCell<oauth2::authenticator::Authenticator<hyper_rustls::HttpsConnector<hyper::client::connect::HttpConnector>>>,
|
||||
pub struct CloudSecurityToken<> {
|
||||
client: hyper::Client<hyper_rustls::HttpsConnector<hyper::client::connect::HttpConnector>, hyper::body::Body>,
|
||||
auth: oauth2::authenticator::Authenticator<hyper_rustls::HttpsConnector<hyper::client::connect::HttpConnector>>,
|
||||
_user_agent: String,
|
||||
_base_url: String,
|
||||
_root_url: String,
|
||||
}
|
||||
|
||||
impl<'a, C> client::Hub for CloudSecurityToken<C> {}
|
||||
impl<'a, > client::Hub for CloudSecurityToken<> {}
|
||||
|
||||
impl<'a, C> CloudSecurityToken<C>
|
||||
where C: BorrowMut<hyper::Client<hyper_rustls::HttpsConnector<hyper::client::connect::HttpConnector>, hyper::body::Body>> {
|
||||
impl<'a, > CloudSecurityToken<> {
|
||||
|
||||
pub fn new(client: C, authenticator: oauth2::authenticator::Authenticator<hyper_rustls::HttpsConnector<hyper::client::connect::HttpConnector>>) -> CloudSecurityToken<C> {
|
||||
pub fn new(client: hyper::Client<hyper_rustls::HttpsConnector<hyper::client::connect::HttpConnector>, hyper::body::Body>, authenticator: oauth2::authenticator::Authenticator<hyper_rustls::HttpsConnector<hyper::client::connect::HttpConnector>>) -> CloudSecurityToken<> {
|
||||
CloudSecurityToken {
|
||||
client: RefCell::new(client),
|
||||
auth: RefCell::new(authenticator),
|
||||
_user_agent: "google-api-rust-client/2.0.0".to_string(),
|
||||
client,
|
||||
auth: authenticator,
|
||||
_user_agent: "google-api-rust-client/2.0.3".to_string(),
|
||||
_base_url: "https://sts.googleapis.com/".to_string(),
|
||||
_root_url: "https://sts.googleapis.com/".to_string(),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn methods(&'a self) -> MethodMethods<'a, C> {
|
||||
pub fn methods(&'a self) -> MethodMethods<'a> {
|
||||
MethodMethods { hub: &self }
|
||||
}
|
||||
|
||||
/// Set the user-agent header field to use in all requests to the server.
|
||||
/// It defaults to `google-api-rust-client/2.0.0`.
|
||||
/// It defaults to `google-api-rust-client/2.0.3`.
|
||||
///
|
||||
/// Returns the previously set user-agent.
|
||||
pub fn user_agent(&mut self, agent_name: String) -> String {
|
||||
@@ -232,15 +230,15 @@ impl client::ResponseResult for GoogleIdentityStsV1ExchangeTokenResponse {}
|
||||
/// let rb = hub.methods();
|
||||
/// # }
|
||||
/// ```
|
||||
pub struct MethodMethods<'a, C>
|
||||
where C: 'a {
|
||||
pub struct MethodMethods<'a>
|
||||
where {
|
||||
|
||||
hub: &'a CloudSecurityToken<C>,
|
||||
hub: &'a CloudSecurityToken<>,
|
||||
}
|
||||
|
||||
impl<'a, C> client::MethodsBuilder for MethodMethods<'a, C> {}
|
||||
impl<'a> client::MethodsBuilder for MethodMethods<'a> {}
|
||||
|
||||
impl<'a, C> MethodMethods<'a, C> {
|
||||
impl<'a> MethodMethods<'a> {
|
||||
|
||||
/// Create a builder to help you perform the following task:
|
||||
///
|
||||
@@ -249,7 +247,7 @@ impl<'a, C> MethodMethods<'a, C> {
|
||||
/// # Arguments
|
||||
///
|
||||
/// * `request` - No description provided.
|
||||
pub fn token(&self, request: GoogleIdentityStsV1ExchangeTokenRequest) -> MethodTokenCall<'a, C> {
|
||||
pub fn token(&self, request: GoogleIdentityStsV1ExchangeTokenRequest) -> MethodTokenCall<'a> {
|
||||
MethodTokenCall {
|
||||
hub: self.hub,
|
||||
_request: request,
|
||||
@@ -305,18 +303,18 @@ impl<'a, C> MethodMethods<'a, C> {
|
||||
/// .doit().await;
|
||||
/// # }
|
||||
/// ```
|
||||
pub struct MethodTokenCall<'a, C>
|
||||
where C: 'a {
|
||||
pub struct MethodTokenCall<'a>
|
||||
where {
|
||||
|
||||
hub: &'a CloudSecurityToken<C>,
|
||||
hub: &'a CloudSecurityToken<>,
|
||||
_request: GoogleIdentityStsV1ExchangeTokenRequest,
|
||||
_delegate: Option<&'a mut dyn client::Delegate>,
|
||||
_additional_params: HashMap<String, String>,
|
||||
}
|
||||
|
||||
impl<'a, C> client::CallBuilder for MethodTokenCall<'a, C> {}
|
||||
impl<'a> client::CallBuilder for MethodTokenCall<'a> {}
|
||||
|
||||
impl<'a, C> MethodTokenCall<'a, C> where C: BorrowMut<hyper::Client<hyper_rustls::HttpsConnector<hyper::client::connect::HttpConnector>, hyper::body::Body>> {
|
||||
impl<'a> MethodTokenCall<'a> {
|
||||
|
||||
|
||||
/// Perform the operation you have build so far.
|
||||
@@ -374,7 +372,7 @@ impl<'a, C> MethodTokenCall<'a, C> where C: BorrowMut<hyper::Client<hyper_rustls
|
||||
loop {
|
||||
request_value_reader.seek(io::SeekFrom::Start(0)).unwrap();
|
||||
let mut req_result = {
|
||||
let mut client = &mut *self.hub.client.borrow_mut();
|
||||
let client = &self.hub.client;
|
||||
dlg.pre_request();
|
||||
let mut req_builder = hyper::Request::builder().method(hyper::Method::POST).uri(url.clone().into_string())
|
||||
.header(USER_AGENT, self.hub._user_agent.clone());
|
||||
@@ -385,7 +383,7 @@ impl<'a, C> MethodTokenCall<'a, C> where C: BorrowMut<hyper::Client<hyper_rustls
|
||||
.header(CONTENT_LENGTH, request_size as u64)
|
||||
.body(hyper::body::Body::from(request_value_reader.get_ref().clone()));
|
||||
|
||||
client.borrow_mut().request(request.unwrap()).await
|
||||
client.request(request.unwrap()).await
|
||||
|
||||
};
|
||||
|
||||
@@ -444,7 +442,7 @@ impl<'a, C> MethodTokenCall<'a, C> where C: BorrowMut<hyper::Client<hyper_rustls
|
||||
///
|
||||
/// Even though the property as already been set when instantiating this call,
|
||||
/// we provide this method for API completeness.
|
||||
pub fn request(mut self, new_value: GoogleIdentityStsV1ExchangeTokenRequest) -> MethodTokenCall<'a, C> {
|
||||
pub fn request(mut self, new_value: GoogleIdentityStsV1ExchangeTokenRequest) -> MethodTokenCall<'a> {
|
||||
self._request = new_value;
|
||||
self
|
||||
}
|
||||
@@ -454,7 +452,7 @@ impl<'a, C> MethodTokenCall<'a, C> where C: BorrowMut<hyper::Client<hyper_rustls
|
||||
/// It should be used to handle progress information, and to implement a certain level of resilience.
|
||||
///
|
||||
/// Sets the *delegate* property to the given value.
|
||||
pub fn delegate(mut self, new_value: &'a mut dyn client::Delegate) -> MethodTokenCall<'a, C> {
|
||||
pub fn delegate(mut self, new_value: &'a mut dyn client::Delegate) -> MethodTokenCall<'a> {
|
||||
self._delegate = Some(new_value);
|
||||
self
|
||||
}
|
||||
@@ -479,7 +477,7 @@ impl<'a, C> MethodTokenCall<'a, C> where C: BorrowMut<hyper::Client<hyper_rustls
|
||||
/// * *quotaUser* (query-string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
/// * *uploadType* (query-string) - Legacy upload protocol for media (e.g. "media", "multipart").
|
||||
/// * *upload_protocol* (query-string) - Upload protocol for media (e.g. "raw", "multipart").
|
||||
pub fn param<T>(mut self, name: T, value: T) -> MethodTokenCall<'a, C>
|
||||
pub fn param<T>(mut self, name: T, value: T) -> MethodTokenCall<'a>
|
||||
where T: AsRef<str> {
|
||||
self._additional_params.insert(name.as_ref().to_string(), value.as_ref().to_string());
|
||||
self
|
||||
|
||||
Reference in New Issue
Block a user