|
|
|
|
@@ -131,7 +131,7 @@ impl<'a, C, A> Webmasters<C, A>
|
|
|
|
|
Webmasters {
|
|
|
|
|
client: RefCell::new(client),
|
|
|
|
|
auth: RefCell::new(authenticator),
|
|
|
|
|
_user_agent: "google-api-rust-client/0.1.12".to_string(),
|
|
|
|
|
_user_agent: "google-api-rust-client/0.1.13".to_string(),
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -152,7 +152,7 @@ impl<'a, C, A> Webmasters<C, A>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// Set the user-agent header field to use in all requests to the server.
|
|
|
|
|
/// It defaults to `google-api-rust-client/0.1.12`.
|
|
|
|
|
/// It defaults to `google-api-rust-client/0.1.13`.
|
|
|
|
|
///
|
|
|
|
|
/// Returns the previously set user-agent.
|
|
|
|
|
pub fn user_agent(&mut self, agent_name: String) -> String {
|
|
|
|
|
@@ -376,6 +376,12 @@ pub struct SearchAnalyticsQueryRequest {
|
|
|
|
|
/// [Optional] Zero or more filters to apply to the dimension grouping values; for example, 'query contains "buy"' to see only data where the query string contains the substring "buy" (not case-sensitive). You can filter by a dimension without grouping by it.
|
|
|
|
|
#[serde(rename="dimensionFilterGroups")]
|
|
|
|
|
pub dimension_filter_groups: Option<Vec<ApiDimensionFilterGroup>>,
|
|
|
|
|
/// [Optional; Default is 0] Zero-based index of the first row in the response. Must be a non-negative number.
|
|
|
|
|
#[serde(rename="startRow")]
|
|
|
|
|
pub start_row: Option<i32>,
|
|
|
|
|
/// [Optional; Default is 1000] The maximum number of rows to return. Must be a number from 1 to 5,000 (inclusive).
|
|
|
|
|
#[serde(rename="rowLimit")]
|
|
|
|
|
pub row_limit: Option<i32>,
|
|
|
|
|
/// [Optional; Default is "auto"] How data is aggregated. If aggregated by property, all data for the same property is aggregated; if aggregated by page, all data is aggregated by canonical URI. If you filter or group by page, choose AUTO; otherwise you can aggregate either by property or by page, depending on how you want your data calculated; see the help documentation to learn how data is calculated differently by site versus by page.
|
|
|
|
|
///
|
|
|
|
|
/// Note: If you group or filter by page, you cannot aggregate by property.
|
|
|
|
|
@@ -383,9 +389,6 @@ pub struct SearchAnalyticsQueryRequest {
|
|
|
|
|
/// If you specify any value other than AUTO, the aggregation type in the result will match the requested type, or if you request an invalid type, you will get an error. The API will never change your aggregation type if the requested type is invalid.
|
|
|
|
|
#[serde(rename="aggregationType")]
|
|
|
|
|
pub aggregation_type: Option<String>,
|
|
|
|
|
/// [Optional; Default is 1000] The maximum number of rows to return. Must be a number from 1 to 5,000 (inclusive).
|
|
|
|
|
#[serde(rename="rowLimit")]
|
|
|
|
|
pub row_limit: Option<i32>,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl RequestValue for SearchAnalyticsQueryRequest {}
|
|
|
|
|
@@ -1025,7 +1028,7 @@ impl<'a, C, A> SitemapDeleteCall<'a, C, A> where C: BorrowMut<hyper::Client>, A:
|
|
|
|
|
/// Perform the operation you have build so far.
|
|
|
|
|
pub fn doit(mut self) -> Result<hyper::client::Response> {
|
|
|
|
|
use std::io::{Read, Seek};
|
|
|
|
|
use hyper::header::{ContentType, ContentLength, Authorization, UserAgent, Location};
|
|
|
|
|
use hyper::header::{ContentType, ContentLength, Authorization, Bearer, UserAgent, Location};
|
|
|
|
|
let mut dd = DefaultDelegate;
|
|
|
|
|
let mut dlg: &mut Delegate = match self._delegate {
|
|
|
|
|
Some(d) => d,
|
|
|
|
|
@@ -1094,8 +1097,7 @@ impl<'a, C, A> SitemapDeleteCall<'a, C, A> where C: BorrowMut<hyper::Client>, A:
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
let auth_header = Authorization(oauth2::Scheme { token_type: oauth2::TokenType::Bearer,
|
|
|
|
|
access_token: token.access_token });
|
|
|
|
|
let auth_header = Authorization(Bearer { token: token.access_token });
|
|
|
|
|
let mut req_result = {
|
|
|
|
|
let mut client = &mut *self.hub.client.borrow_mut();
|
|
|
|
|
let mut req = client.borrow_mut().request(hyper::method::Method::Delete, &url)
|
|
|
|
|
@@ -1262,7 +1264,7 @@ impl<'a, C, A> SitemapSubmitCall<'a, C, A> where C: BorrowMut<hyper::Client>, A:
|
|
|
|
|
/// Perform the operation you have build so far.
|
|
|
|
|
pub fn doit(mut self) -> Result<hyper::client::Response> {
|
|
|
|
|
use std::io::{Read, Seek};
|
|
|
|
|
use hyper::header::{ContentType, ContentLength, Authorization, UserAgent, Location};
|
|
|
|
|
use hyper::header::{ContentType, ContentLength, Authorization, Bearer, UserAgent, Location};
|
|
|
|
|
let mut dd = DefaultDelegate;
|
|
|
|
|
let mut dlg: &mut Delegate = match self._delegate {
|
|
|
|
|
Some(d) => d,
|
|
|
|
|
@@ -1331,8 +1333,7 @@ impl<'a, C, A> SitemapSubmitCall<'a, C, A> where C: BorrowMut<hyper::Client>, A:
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
let auth_header = Authorization(oauth2::Scheme { token_type: oauth2::TokenType::Bearer,
|
|
|
|
|
access_token: token.access_token });
|
|
|
|
|
let auth_header = Authorization(Bearer { token: token.access_token });
|
|
|
|
|
let mut req_result = {
|
|
|
|
|
let mut client = &mut *self.hub.client.borrow_mut();
|
|
|
|
|
let mut req = client.borrow_mut().request(hyper::method::Method::Put, &url)
|
|
|
|
|
@@ -1499,7 +1500,7 @@ impl<'a, C, A> SitemapGetCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: oa
|
|
|
|
|
/// Perform the operation you have build so far.
|
|
|
|
|
pub fn doit(mut self) -> Result<(hyper::client::Response, WmxSitemap)> {
|
|
|
|
|
use std::io::{Read, Seek};
|
|
|
|
|
use hyper::header::{ContentType, ContentLength, Authorization, UserAgent, Location};
|
|
|
|
|
use hyper::header::{ContentType, ContentLength, Authorization, Bearer, UserAgent, Location};
|
|
|
|
|
let mut dd = DefaultDelegate;
|
|
|
|
|
let mut dlg: &mut Delegate = match self._delegate {
|
|
|
|
|
Some(d) => d,
|
|
|
|
|
@@ -1569,8 +1570,7 @@ impl<'a, C, A> SitemapGetCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: oa
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
let auth_header = Authorization(oauth2::Scheme { token_type: oauth2::TokenType::Bearer,
|
|
|
|
|
access_token: token.access_token });
|
|
|
|
|
let auth_header = Authorization(Bearer { token: token.access_token });
|
|
|
|
|
let mut req_result = {
|
|
|
|
|
let mut client = &mut *self.hub.client.borrow_mut();
|
|
|
|
|
let mut req = client.borrow_mut().request(hyper::method::Method::Get, &url)
|
|
|
|
|
@@ -1748,7 +1748,7 @@ impl<'a, C, A> SitemapListCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: o
|
|
|
|
|
/// Perform the operation you have build so far.
|
|
|
|
|
pub fn doit(mut self) -> Result<(hyper::client::Response, SitemapsListResponse)> {
|
|
|
|
|
use std::io::{Read, Seek};
|
|
|
|
|
use hyper::header::{ContentType, ContentLength, Authorization, UserAgent, Location};
|
|
|
|
|
use hyper::header::{ContentType, ContentLength, Authorization, Bearer, UserAgent, Location};
|
|
|
|
|
let mut dd = DefaultDelegate;
|
|
|
|
|
let mut dlg: &mut Delegate = match self._delegate {
|
|
|
|
|
Some(d) => d,
|
|
|
|
|
@@ -1820,8 +1820,7 @@ impl<'a, C, A> SitemapListCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: o
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
let auth_header = Authorization(oauth2::Scheme { token_type: oauth2::TokenType::Bearer,
|
|
|
|
|
access_token: token.access_token });
|
|
|
|
|
let auth_header = Authorization(Bearer { token: token.access_token });
|
|
|
|
|
let mut req_result = {
|
|
|
|
|
let mut client = &mut *self.hub.client.borrow_mut();
|
|
|
|
|
let mut req = client.borrow_mut().request(hyper::method::Method::Get, &url)
|
|
|
|
|
@@ -1994,7 +1993,7 @@ impl<'a, C, A> SiteGetCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: oauth
|
|
|
|
|
/// Perform the operation you have build so far.
|
|
|
|
|
pub fn doit(mut self) -> Result<(hyper::client::Response, WmxSite)> {
|
|
|
|
|
use std::io::{Read, Seek};
|
|
|
|
|
use hyper::header::{ContentType, ContentLength, Authorization, UserAgent, Location};
|
|
|
|
|
use hyper::header::{ContentType, ContentLength, Authorization, Bearer, UserAgent, Location};
|
|
|
|
|
let mut dd = DefaultDelegate;
|
|
|
|
|
let mut dlg: &mut Delegate = match self._delegate {
|
|
|
|
|
Some(d) => d,
|
|
|
|
|
@@ -2063,8 +2062,7 @@ impl<'a, C, A> SiteGetCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: oauth
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
let auth_header = Authorization(oauth2::Scheme { token_type: oauth2::TokenType::Bearer,
|
|
|
|
|
access_token: token.access_token });
|
|
|
|
|
let auth_header = Authorization(Bearer { token: token.access_token });
|
|
|
|
|
let mut req_result = {
|
|
|
|
|
let mut client = &mut *self.hub.client.borrow_mut();
|
|
|
|
|
let mut req = client.borrow_mut().request(hyper::method::Method::Get, &url)
|
|
|
|
|
@@ -2230,7 +2228,7 @@ impl<'a, C, A> SiteAddCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: oauth
|
|
|
|
|
/// Perform the operation you have build so far.
|
|
|
|
|
pub fn doit(mut self) -> Result<hyper::client::Response> {
|
|
|
|
|
use std::io::{Read, Seek};
|
|
|
|
|
use hyper::header::{ContentType, ContentLength, Authorization, UserAgent, Location};
|
|
|
|
|
use hyper::header::{ContentType, ContentLength, Authorization, Bearer, UserAgent, Location};
|
|
|
|
|
let mut dd = DefaultDelegate;
|
|
|
|
|
let mut dlg: &mut Delegate = match self._delegate {
|
|
|
|
|
Some(d) => d,
|
|
|
|
|
@@ -2298,8 +2296,7 @@ impl<'a, C, A> SiteAddCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: oauth
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
let auth_header = Authorization(oauth2::Scheme { token_type: oauth2::TokenType::Bearer,
|
|
|
|
|
access_token: token.access_token });
|
|
|
|
|
let auth_header = Authorization(Bearer { token: token.access_token });
|
|
|
|
|
let mut req_result = {
|
|
|
|
|
let mut client = &mut *self.hub.client.borrow_mut();
|
|
|
|
|
let mut req = client.borrow_mut().request(hyper::method::Method::Put, &url)
|
|
|
|
|
@@ -2454,7 +2451,7 @@ impl<'a, C, A> SiteListCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: oaut
|
|
|
|
|
/// Perform the operation you have build so far.
|
|
|
|
|
pub fn doit(mut self) -> Result<(hyper::client::Response, SitesListResponse)> {
|
|
|
|
|
use std::io::{Read, Seek};
|
|
|
|
|
use hyper::header::{ContentType, ContentLength, Authorization, UserAgent, Location};
|
|
|
|
|
use hyper::header::{ContentType, ContentLength, Authorization, Bearer, UserAgent, Location};
|
|
|
|
|
let mut dd = DefaultDelegate;
|
|
|
|
|
let mut dlg: &mut Delegate = match self._delegate {
|
|
|
|
|
Some(d) => d,
|
|
|
|
|
@@ -2501,8 +2498,7 @@ impl<'a, C, A> SiteListCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: oaut
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
let auth_header = Authorization(oauth2::Scheme { token_type: oauth2::TokenType::Bearer,
|
|
|
|
|
access_token: token.access_token });
|
|
|
|
|
let auth_header = Authorization(Bearer { token: token.access_token });
|
|
|
|
|
let mut req_result = {
|
|
|
|
|
let mut client = &mut *self.hub.client.borrow_mut();
|
|
|
|
|
let mut req = client.borrow_mut().request(hyper::method::Method::Get, &url)
|
|
|
|
|
@@ -2658,7 +2654,7 @@ impl<'a, C, A> SiteDeleteCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: oa
|
|
|
|
|
/// Perform the operation you have build so far.
|
|
|
|
|
pub fn doit(mut self) -> Result<hyper::client::Response> {
|
|
|
|
|
use std::io::{Read, Seek};
|
|
|
|
|
use hyper::header::{ContentType, ContentLength, Authorization, UserAgent, Location};
|
|
|
|
|
use hyper::header::{ContentType, ContentLength, Authorization, Bearer, UserAgent, Location};
|
|
|
|
|
let mut dd = DefaultDelegate;
|
|
|
|
|
let mut dlg: &mut Delegate = match self._delegate {
|
|
|
|
|
Some(d) => d,
|
|
|
|
|
@@ -2726,8 +2722,7 @@ impl<'a, C, A> SiteDeleteCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: oa
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
let auth_header = Authorization(oauth2::Scheme { token_type: oauth2::TokenType::Bearer,
|
|
|
|
|
access_token: token.access_token });
|
|
|
|
|
let auth_header = Authorization(Bearer { token: token.access_token });
|
|
|
|
|
let mut req_result = {
|
|
|
|
|
let mut client = &mut *self.hub.client.borrow_mut();
|
|
|
|
|
let mut req = client.borrow_mut().request(hyper::method::Method::Delete, &url)
|
|
|
|
|
@@ -2892,7 +2887,7 @@ impl<'a, C, A> SearchanalyticQueryCall<'a, C, A> where C: BorrowMut<hyper::Clien
|
|
|
|
|
/// Perform the operation you have build so far.
|
|
|
|
|
pub fn doit(mut self) -> Result<(hyper::client::Response, SearchAnalyticsQueryResponse)> {
|
|
|
|
|
use std::io::{Read, Seek};
|
|
|
|
|
use hyper::header::{ContentType, ContentLength, Authorization, UserAgent, Location};
|
|
|
|
|
use hyper::header::{ContentType, ContentLength, Authorization, Bearer, UserAgent, Location};
|
|
|
|
|
let mut dd = DefaultDelegate;
|
|
|
|
|
let mut dlg: &mut Delegate = match self._delegate {
|
|
|
|
|
Some(d) => d,
|
|
|
|
|
@@ -2972,8 +2967,7 @@ impl<'a, C, A> SearchanalyticQueryCall<'a, C, A> where C: BorrowMut<hyper::Clien
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
let auth_header = Authorization(oauth2::Scheme { token_type: oauth2::TokenType::Bearer,
|
|
|
|
|
access_token: token.access_token });
|
|
|
|
|
let auth_header = Authorization(Bearer { token: token.access_token });
|
|
|
|
|
request_value_reader.seek(io::SeekFrom::Start(0)).unwrap();
|
|
|
|
|
let mut req_result = {
|
|
|
|
|
let mut client = &mut *self.hub.client.borrow_mut();
|
|
|
|
|
@@ -3158,7 +3152,7 @@ impl<'a, C, A> UrlcrawlerrorscountQueryCall<'a, C, A> where C: BorrowMut<hyper::
|
|
|
|
|
/// Perform the operation you have build so far.
|
|
|
|
|
pub fn doit(mut self) -> Result<(hyper::client::Response, UrlCrawlErrorsCountsQueryResponse)> {
|
|
|
|
|
use std::io::{Read, Seek};
|
|
|
|
|
use hyper::header::{ContentType, ContentLength, Authorization, UserAgent, Location};
|
|
|
|
|
use hyper::header::{ContentType, ContentLength, Authorization, Bearer, UserAgent, Location};
|
|
|
|
|
let mut dd = DefaultDelegate;
|
|
|
|
|
let mut dlg: &mut Delegate = match self._delegate {
|
|
|
|
|
Some(d) => d,
|
|
|
|
|
@@ -3236,8 +3230,7 @@ impl<'a, C, A> UrlcrawlerrorscountQueryCall<'a, C, A> where C: BorrowMut<hyper::
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
let auth_header = Authorization(oauth2::Scheme { token_type: oauth2::TokenType::Bearer,
|
|
|
|
|
access_token: token.access_token });
|
|
|
|
|
let auth_header = Authorization(Bearer { token: token.access_token });
|
|
|
|
|
let mut req_result = {
|
|
|
|
|
let mut client = &mut *self.hub.client.borrow_mut();
|
|
|
|
|
let mut req = client.borrow_mut().request(hyper::method::Method::Get, &url)
|
|
|
|
|
@@ -3427,7 +3420,7 @@ impl<'a, C, A> UrlcrawlerrorssampleGetCall<'a, C, A> where C: BorrowMut<hyper::C
|
|
|
|
|
/// Perform the operation you have build so far.
|
|
|
|
|
pub fn doit(mut self) -> Result<(hyper::client::Response, UrlCrawlErrorsSample)> {
|
|
|
|
|
use std::io::{Read, Seek};
|
|
|
|
|
use hyper::header::{ContentType, ContentLength, Authorization, UserAgent, Location};
|
|
|
|
|
use hyper::header::{ContentType, ContentLength, Authorization, Bearer, UserAgent, Location};
|
|
|
|
|
let mut dd = DefaultDelegate;
|
|
|
|
|
let mut dlg: &mut Delegate = match self._delegate {
|
|
|
|
|
Some(d) => d,
|
|
|
|
|
@@ -3499,8 +3492,7 @@ impl<'a, C, A> UrlcrawlerrorssampleGetCall<'a, C, A> where C: BorrowMut<hyper::C
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
let auth_header = Authorization(oauth2::Scheme { token_type: oauth2::TokenType::Bearer,
|
|
|
|
|
access_token: token.access_token });
|
|
|
|
|
let auth_header = Authorization(Bearer { token: token.access_token });
|
|
|
|
|
let mut req_result = {
|
|
|
|
|
let mut client = &mut *self.hub.client.borrow_mut();
|
|
|
|
|
let mut req = client.borrow_mut().request(hyper::method::Method::Get, &url)
|
|
|
|
|
@@ -3698,7 +3690,7 @@ impl<'a, C, A> UrlcrawlerrorssampleListCall<'a, C, A> where C: BorrowMut<hyper::
|
|
|
|
|
/// Perform the operation you have build so far.
|
|
|
|
|
pub fn doit(mut self) -> Result<(hyper::client::Response, UrlCrawlErrorsSamplesListResponse)> {
|
|
|
|
|
use std::io::{Read, Seek};
|
|
|
|
|
use hyper::header::{ContentType, ContentLength, Authorization, UserAgent, Location};
|
|
|
|
|
use hyper::header::{ContentType, ContentLength, Authorization, Bearer, UserAgent, Location};
|
|
|
|
|
let mut dd = DefaultDelegate;
|
|
|
|
|
let mut dlg: &mut Delegate = match self._delegate {
|
|
|
|
|
Some(d) => d,
|
|
|
|
|
@@ -3769,8 +3761,7 @@ impl<'a, C, A> UrlcrawlerrorssampleListCall<'a, C, A> where C: BorrowMut<hyper::
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
let auth_header = Authorization(oauth2::Scheme { token_type: oauth2::TokenType::Bearer,
|
|
|
|
|
access_token: token.access_token });
|
|
|
|
|
let auth_header = Authorization(Bearer { token: token.access_token });
|
|
|
|
|
let mut req_result = {
|
|
|
|
|
let mut client = &mut *self.hub.client.borrow_mut();
|
|
|
|
|
let mut req = client.borrow_mut().request(hyper::method::Method::Get, &url)
|
|
|
|
|
@@ -3959,7 +3950,7 @@ impl<'a, C, A> UrlcrawlerrorssampleMarkAsFixedCall<'a, C, A> where C: BorrowMut<
|
|
|
|
|
/// Perform the operation you have build so far.
|
|
|
|
|
pub fn doit(mut self) -> Result<hyper::client::Response> {
|
|
|
|
|
use std::io::{Read, Seek};
|
|
|
|
|
use hyper::header::{ContentType, ContentLength, Authorization, UserAgent, Location};
|
|
|
|
|
use hyper::header::{ContentType, ContentLength, Authorization, Bearer, UserAgent, Location};
|
|
|
|
|
let mut dd = DefaultDelegate;
|
|
|
|
|
let mut dlg: &mut Delegate = match self._delegate {
|
|
|
|
|
Some(d) => d,
|
|
|
|
|
@@ -4030,8 +4021,7 @@ impl<'a, C, A> UrlcrawlerrorssampleMarkAsFixedCall<'a, C, A> where C: BorrowMut<
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
let auth_header = Authorization(oauth2::Scheme { token_type: oauth2::TokenType::Bearer,
|
|
|
|
|
access_token: token.access_token });
|
|
|
|
|
let auth_header = Authorization(Bearer { token: token.access_token });
|
|
|
|
|
let mut req_result = {
|
|
|
|
|
let mut client = &mut *self.hub.client.borrow_mut();
|
|
|
|
|
let mut req = client.borrow_mut().request(hyper::method::Method::Delete, &url)
|
|
|
|
|
|