mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
Regen all APIs from new JSON
This commit is contained in:
committed by
Sebastian Thiel
parent
86a884c48b
commit
2ad9f3781d
@@ -2,7 +2,7 @@
|
||||
// This file was generated automatically from 'src/mako/api/lib.rs.mako'
|
||||
// DO NOT EDIT !
|
||||
|
||||
//! This documentation was generated from *safebrowsing* crate version *1.0.8+20181010*, where *20181010* is the exact revision of the *safebrowsing:v4* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.8*.
|
||||
//! This documentation was generated from *safebrowsing* crate version *1.0.8+20190402*, where *20190402* is the exact revision of the *safebrowsing:v4* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.8*.
|
||||
//!
|
||||
//! Everything else about the *safebrowsing* *v4* API can be found at the
|
||||
//! [official documentation site](https://developers.google.com/safe-browsing/).
|
||||
@@ -512,26 +512,26 @@ impl RequestValue for FindThreatMatchesRequest {}
|
||||
///
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct ThreatEntrySet {
|
||||
/// The encoded 4-byte prefixes of SHA256-formatted entries, using a
|
||||
/// Golomb-Rice encoding. The hashes are converted to uint32, sorted in
|
||||
/// ascending order, then delta encoded and stored as encoded_data.
|
||||
#[serde(rename="riceHashes")]
|
||||
pub rice_hashes: Option<RiceDeltaEncoding>,
|
||||
/// The compression type for the entries in this set.
|
||||
#[serde(rename="compressionType")]
|
||||
pub compression_type: Option<String>,
|
||||
/// The raw removal indices for a local list.
|
||||
#[serde(rename="rawIndices")]
|
||||
pub raw_indices: Option<RawIndices>,
|
||||
/// The raw SHA256-formatted entries.
|
||||
#[serde(rename="rawHashes")]
|
||||
pub raw_hashes: Option<RawHashes>,
|
||||
/// The encoded 4-byte prefixes of SHA256-formatted entries, using a
|
||||
/// Golomb-Rice encoding. The hashes are converted to uint32, sorted in
|
||||
/// ascending order, then delta encoded and stored as encoded_data.
|
||||
#[serde(rename="riceHashes")]
|
||||
pub rice_hashes: Option<RiceDeltaEncoding>,
|
||||
/// The encoded local, lexicographically-sorted list indices, using a
|
||||
/// Golomb-Rice encoding. Used for sending compressed removal indices. The
|
||||
/// removal indices (uint32) are sorted in ascending order, then delta encoded
|
||||
/// and stored as encoded_data.
|
||||
#[serde(rename="riceIndices")]
|
||||
pub rice_indices: Option<RiceDeltaEncoding>,
|
||||
/// The raw SHA256-formatted entries.
|
||||
#[serde(rename="rawHashes")]
|
||||
pub raw_hashes: Option<RawHashes>,
|
||||
}
|
||||
|
||||
impl Part for ThreatEntrySet {}
|
||||
@@ -671,24 +671,6 @@ pub struct ClientInfo {
|
||||
impl Part for ClientInfo {}
|
||||
|
||||
|
||||
/// There is no detailed description.
|
||||
///
|
||||
/// # Activities
|
||||
///
|
||||
/// This type is used in activities, which are methods you may call on this type or where this type is involved in.
|
||||
/// The list links the activity name, along with information about where it is used (one of *request* and *response*).
|
||||
///
|
||||
/// * [find threat matches](struct.ThreatMatcheFindCall.html) (response)
|
||||
///
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct FindThreatMatchesResponse {
|
||||
/// The threat list matches.
|
||||
pub matches: Option<Vec<ThreatMatch>>,
|
||||
}
|
||||
|
||||
impl ResponseResult for FindThreatMatchesResponse {}
|
||||
|
||||
|
||||
/// Describes an individual threat list. A list is defined by three parameters:
|
||||
/// the type of threat posed, the type of platform targeted by the threat, and
|
||||
/// the type of entries in the list.
|
||||
@@ -760,19 +742,22 @@ pub struct ThreatEntry {
|
||||
impl Part for ThreatEntry {}
|
||||
|
||||
|
||||
/// A single metadata entry.
|
||||
/// There is no detailed description.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
/// # Activities
|
||||
///
|
||||
/// This type is used in activities, which are methods you may call on this type or where this type is involved in.
|
||||
/// The list links the activity name, along with information about where it is used (one of *request* and *response*).
|
||||
///
|
||||
/// * [find threat matches](struct.ThreatMatcheFindCall.html) (response)
|
||||
///
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct MetadataEntry {
|
||||
/// The metadata entry key. For JSON requests, the key is base64-encoded.
|
||||
pub key: Option<String>,
|
||||
/// The metadata entry value. For JSON requests, the value is base64-encoded.
|
||||
pub value: Option<String>,
|
||||
pub struct FindThreatMatchesResponse {
|
||||
/// The threat list matches.
|
||||
pub matches: Option<Vec<ThreatMatch>>,
|
||||
}
|
||||
|
||||
impl Part for MetadataEntry {}
|
||||
impl ResponseResult for FindThreatMatchesResponse {}
|
||||
|
||||
|
||||
/// There is no detailed description.
|
||||
@@ -865,15 +850,15 @@ pub struct ThreatInfo {
|
||||
/// The threat types to be checked.
|
||||
#[serde(rename="threatTypes")]
|
||||
pub threat_types: Option<Vec<String>>,
|
||||
/// The entry types to be checked.
|
||||
#[serde(rename="threatEntryTypes")]
|
||||
pub threat_entry_types: Option<Vec<String>>,
|
||||
/// The threat entries to be checked.
|
||||
#[serde(rename="threatEntries")]
|
||||
pub threat_entries: Option<Vec<ThreatEntry>>,
|
||||
/// The platform types to be checked.
|
||||
#[serde(rename="platformTypes")]
|
||||
pub platform_types: Option<Vec<String>>,
|
||||
/// The entry types to be checked.
|
||||
#[serde(rename="threatEntryTypes")]
|
||||
pub threat_entry_types: Option<Vec<String>>,
|
||||
}
|
||||
|
||||
impl Part for ThreatInfo {}
|
||||
@@ -933,6 +918,21 @@ pub struct FindFullHashesRequest {
|
||||
impl RequestValue for FindFullHashesRequest {}
|
||||
|
||||
|
||||
/// A single metadata entry.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct MetadataEntry {
|
||||
/// The metadata entry key. For JSON requests, the key is base64-encoded.
|
||||
pub key: Option<String>,
|
||||
/// The metadata entry value. For JSON requests, the value is base64-encoded.
|
||||
pub value: Option<String>,
|
||||
}
|
||||
|
||||
impl Part for MetadataEntry {}
|
||||
|
||||
|
||||
/// There is no detailed description.
|
||||
///
|
||||
/// # Activities
|
||||
@@ -1518,17 +1518,14 @@ impl<'a, C, A> EncodedFullHasheGetCall<'a, C, A> where C: BorrowMut<hyper::Clien
|
||||
}
|
||||
}
|
||||
|
||||
if params.len() > 0 {
|
||||
url.push('?');
|
||||
url.push_str(&url::form_urlencoded::serialize(params));
|
||||
}
|
||||
let url = hyper::Url::parse_with_params(&url, params).unwrap();
|
||||
|
||||
|
||||
|
||||
loop {
|
||||
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)
|
||||
let mut req = client.borrow_mut().request(hyper::method::Method::Get, url.clone())
|
||||
.header(UserAgent(self.hub._user_agent.clone()));
|
||||
|
||||
dlg.pre_request();
|
||||
@@ -1620,7 +1617,7 @@ impl<'a, C, A> EncodedFullHasheGetCall<'a, C, A> where C: BorrowMut<hyper::Clien
|
||||
/// It should be used to set parameters which are not yet available through their own
|
||||
/// setters.
|
||||
///
|
||||
/// Please note that this method must not be used to set any of the known paramters
|
||||
/// Please note that this method must not be used to set any of the known parameters
|
||||
/// which have their own setter method. If done anyway, the request will fail.
|
||||
///
|
||||
/// # Additional Parameters
|
||||
@@ -1735,10 +1732,7 @@ impl<'a, C, A> FullHasheFindCall<'a, C, A> where C: BorrowMut<hyper::Client>, A:
|
||||
}
|
||||
|
||||
|
||||
if params.len() > 0 {
|
||||
url.push('?');
|
||||
url.push_str(&url::form_urlencoded::serialize(params));
|
||||
}
|
||||
let url = hyper::Url::parse_with_params(&url, params).unwrap();
|
||||
|
||||
let mut json_mime_type = mime::Mime(mime::TopLevel::Application, mime::SubLevel::Json, Default::default());
|
||||
let mut request_value_reader =
|
||||
@@ -1757,7 +1751,7 @@ impl<'a, C, A> FullHasheFindCall<'a, C, A> where C: BorrowMut<hyper::Client>, A:
|
||||
request_value_reader.seek(io::SeekFrom::Start(0)).unwrap();
|
||||
let mut req_result = {
|
||||
let mut client = &mut *self.hub.client.borrow_mut();
|
||||
let mut req = client.borrow_mut().request(hyper::method::Method::Post, &url)
|
||||
let mut req = client.borrow_mut().request(hyper::method::Method::Post, url.clone())
|
||||
.header(UserAgent(self.hub._user_agent.clone()))
|
||||
.header(ContentType(json_mime_type.clone()))
|
||||
.header(ContentLength(request_size as u64))
|
||||
@@ -1836,7 +1830,7 @@ impl<'a, C, A> FullHasheFindCall<'a, C, A> where C: BorrowMut<hyper::Client>, A:
|
||||
/// It should be used to set parameters which are not yet available through their own
|
||||
/// setters.
|
||||
///
|
||||
/// Please note that this method must not be used to set any of the known paramters
|
||||
/// Please note that this method must not be used to set any of the known parameters
|
||||
/// which have their own setter method. If done anyway, the request will fail.
|
||||
///
|
||||
/// # Additional Parameters
|
||||
@@ -1952,10 +1946,7 @@ impl<'a, C, A> ThreatListUpdateFetchCall<'a, C, A> where C: BorrowMut<hyper::Cli
|
||||
}
|
||||
|
||||
|
||||
if params.len() > 0 {
|
||||
url.push('?');
|
||||
url.push_str(&url::form_urlencoded::serialize(params));
|
||||
}
|
||||
let url = hyper::Url::parse_with_params(&url, params).unwrap();
|
||||
|
||||
let mut json_mime_type = mime::Mime(mime::TopLevel::Application, mime::SubLevel::Json, Default::default());
|
||||
let mut request_value_reader =
|
||||
@@ -1974,7 +1965,7 @@ impl<'a, C, A> ThreatListUpdateFetchCall<'a, C, A> where C: BorrowMut<hyper::Cli
|
||||
request_value_reader.seek(io::SeekFrom::Start(0)).unwrap();
|
||||
let mut req_result = {
|
||||
let mut client = &mut *self.hub.client.borrow_mut();
|
||||
let mut req = client.borrow_mut().request(hyper::method::Method::Post, &url)
|
||||
let mut req = client.borrow_mut().request(hyper::method::Method::Post, url.clone())
|
||||
.header(UserAgent(self.hub._user_agent.clone()))
|
||||
.header(ContentType(json_mime_type.clone()))
|
||||
.header(ContentLength(request_size as u64))
|
||||
@@ -2053,7 +2044,7 @@ impl<'a, C, A> ThreatListUpdateFetchCall<'a, C, A> where C: BorrowMut<hyper::Cli
|
||||
/// It should be used to set parameters which are not yet available through their own
|
||||
/// setters.
|
||||
///
|
||||
/// Please note that this method must not be used to set any of the known paramters
|
||||
/// Please note that this method must not be used to set any of the known parameters
|
||||
/// which have their own setter method. If done anyway, the request will fail.
|
||||
///
|
||||
/// # Additional Parameters
|
||||
@@ -2194,17 +2185,14 @@ impl<'a, C, A> EncodedUpdateGetCall<'a, C, A> where C: BorrowMut<hyper::Client>,
|
||||
}
|
||||
}
|
||||
|
||||
if params.len() > 0 {
|
||||
url.push('?');
|
||||
url.push_str(&url::form_urlencoded::serialize(params));
|
||||
}
|
||||
let url = hyper::Url::parse_with_params(&url, params).unwrap();
|
||||
|
||||
|
||||
|
||||
loop {
|
||||
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)
|
||||
let mut req = client.borrow_mut().request(hyper::method::Method::Get, url.clone())
|
||||
.header(UserAgent(self.hub._user_agent.clone()));
|
||||
|
||||
dlg.pre_request();
|
||||
@@ -2296,7 +2284,7 @@ impl<'a, C, A> EncodedUpdateGetCall<'a, C, A> where C: BorrowMut<hyper::Client>,
|
||||
/// It should be used to set parameters which are not yet available through their own
|
||||
/// setters.
|
||||
///
|
||||
/// Please note that this method must not be used to set any of the known paramters
|
||||
/// Please note that this method must not be used to set any of the known parameters
|
||||
/// which have their own setter method. If done anyway, the request will fail.
|
||||
///
|
||||
/// # Additional Parameters
|
||||
@@ -2404,17 +2392,14 @@ impl<'a, C, A> ThreatListListCall<'a, C, A> where C: BorrowMut<hyper::Client>, A
|
||||
}
|
||||
|
||||
|
||||
if params.len() > 0 {
|
||||
url.push('?');
|
||||
url.push_str(&url::form_urlencoded::serialize(params));
|
||||
}
|
||||
let url = hyper::Url::parse_with_params(&url, params).unwrap();
|
||||
|
||||
|
||||
|
||||
loop {
|
||||
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)
|
||||
let mut req = client.borrow_mut().request(hyper::method::Method::Get, url.clone())
|
||||
.header(UserAgent(self.hub._user_agent.clone()));
|
||||
|
||||
dlg.pre_request();
|
||||
@@ -2481,7 +2466,7 @@ impl<'a, C, A> ThreatListListCall<'a, C, A> where C: BorrowMut<hyper::Client>, A
|
||||
/// It should be used to set parameters which are not yet available through their own
|
||||
/// setters.
|
||||
///
|
||||
/// Please note that this method must not be used to set any of the known paramters
|
||||
/// Please note that this method must not be used to set any of the known parameters
|
||||
/// which have their own setter method. If done anyway, the request will fail.
|
||||
///
|
||||
/// # Additional Parameters
|
||||
@@ -2596,10 +2581,7 @@ impl<'a, C, A> ThreatMatcheFindCall<'a, C, A> where C: BorrowMut<hyper::Client>,
|
||||
}
|
||||
|
||||
|
||||
if params.len() > 0 {
|
||||
url.push('?');
|
||||
url.push_str(&url::form_urlencoded::serialize(params));
|
||||
}
|
||||
let url = hyper::Url::parse_with_params(&url, params).unwrap();
|
||||
|
||||
let mut json_mime_type = mime::Mime(mime::TopLevel::Application, mime::SubLevel::Json, Default::default());
|
||||
let mut request_value_reader =
|
||||
@@ -2618,7 +2600,7 @@ impl<'a, C, A> ThreatMatcheFindCall<'a, C, A> where C: BorrowMut<hyper::Client>,
|
||||
request_value_reader.seek(io::SeekFrom::Start(0)).unwrap();
|
||||
let mut req_result = {
|
||||
let mut client = &mut *self.hub.client.borrow_mut();
|
||||
let mut req = client.borrow_mut().request(hyper::method::Method::Post, &url)
|
||||
let mut req = client.borrow_mut().request(hyper::method::Method::Post, url.clone())
|
||||
.header(UserAgent(self.hub._user_agent.clone()))
|
||||
.header(ContentType(json_mime_type.clone()))
|
||||
.header(ContentLength(request_size as u64))
|
||||
@@ -2697,7 +2679,7 @@ impl<'a, C, A> ThreatMatcheFindCall<'a, C, A> where C: BorrowMut<hyper::Client>,
|
||||
/// It should be used to set parameters which are not yet available through their own
|
||||
/// setters.
|
||||
///
|
||||
/// Please note that this method must not be used to set any of the known paramters
|
||||
/// Please note that this method must not be used to set any of the known parameters
|
||||
/// which have their own setter method. If done anyway, the request will fail.
|
||||
///
|
||||
/// # Additional Parameters
|
||||
@@ -2813,10 +2795,7 @@ impl<'a, C, A> ThreatHitCreateCall<'a, C, A> where C: BorrowMut<hyper::Client>,
|
||||
}
|
||||
|
||||
|
||||
if params.len() > 0 {
|
||||
url.push('?');
|
||||
url.push_str(&url::form_urlencoded::serialize(params));
|
||||
}
|
||||
let url = hyper::Url::parse_with_params(&url, params).unwrap();
|
||||
|
||||
let mut json_mime_type = mime::Mime(mime::TopLevel::Application, mime::SubLevel::Json, Default::default());
|
||||
let mut request_value_reader =
|
||||
@@ -2835,7 +2814,7 @@ impl<'a, C, A> ThreatHitCreateCall<'a, C, A> where C: BorrowMut<hyper::Client>,
|
||||
request_value_reader.seek(io::SeekFrom::Start(0)).unwrap();
|
||||
let mut req_result = {
|
||||
let mut client = &mut *self.hub.client.borrow_mut();
|
||||
let mut req = client.borrow_mut().request(hyper::method::Method::Post, &url)
|
||||
let mut req = client.borrow_mut().request(hyper::method::Method::Post, url.clone())
|
||||
.header(UserAgent(self.hub._user_agent.clone()))
|
||||
.header(ContentType(json_mime_type.clone()))
|
||||
.header(ContentLength(request_size as u64))
|
||||
@@ -2914,7 +2893,7 @@ impl<'a, C, A> ThreatHitCreateCall<'a, C, A> where C: BorrowMut<hyper::Client>,
|
||||
/// It should be used to set parameters which are not yet available through their own
|
||||
/// setters.
|
||||
///
|
||||
/// Please note that this method must not be used to set any of the known paramters
|
||||
/// Please note that this method must not be used to set any of the known parameters
|
||||
/// which have their own setter method. If done anyway, the request will fail.
|
||||
///
|
||||
/// # Additional Parameters
|
||||
|
||||
Reference in New Issue
Block a user