Bump version to 1.0.9; update JSON schemas; add new APIs

This commit is contained in:
Sebastian Thiel
2019-07-05 11:32:35 +08:00
parent 99e97ceece
commit e42ebc0c2b
2442 changed files with 190984 additions and 71186 deletions

View File

@@ -748,6 +748,17 @@ pub fn remove_json_null_values(value: &mut json::value::Value) {
map.remove(key);
}
}
json::value::Value::Array(ref mut arr) => {
let mut i = 0;
while i < arr.len() {
if arr[i].is_null() {
arr.remove(i);
} else {
remove_json_null_values(&mut arr[i]);
i += 1;
}
}
}
_ => {}
}
}

View File

@@ -2,7 +2,7 @@
// This file was generated automatically from 'src/mako/api/lib.rs.mako'
// DO NOT EDIT !
//! This documentation was generated from *DoubleClick Bid Manager* crate version *1.0.8+20190125*, where *20190125* is the exact revision of the *doubleclickbidmanager:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.8*.
//! This documentation was generated from *DoubleClick Bid Manager* crate version *1.0.9+20190618*, where *20190618* is the exact revision of the *doubleclickbidmanager:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.9*.
//!
//! Everything else about the *DoubleClick Bid Manager* *v1* API can be found at the
//! [official documentation site](https://developers.google.com/bid-manager/).
@@ -218,9 +218,7 @@ use std::mem;
use std::thread::sleep;
use std::time::Duration;
pub use cmn::{MultiPartReader, ToParts, MethodInfo, Result, Error, CallBuilder, Hub, ReadSeek, Part,
ResponseResult, RequestValue, NestedType, Delegate, DefaultDelegate, MethodsBuilder,
Resource, ErrorResponse, remove_json_null_values};
pub use cmn::*;
// ##############
@@ -326,7 +324,7 @@ impl<'a, C, A> DoubleClickBidManager<C, A>
DoubleClickBidManager {
client: RefCell::new(client),
auth: RefCell::new(authenticator),
_user_agent: "google-api-rust-client/1.0.8".to_string(),
_user_agent: "google-api-rust-client/1.0.9".to_string(),
_base_url: "https://www.googleapis.com/doubleclickbidmanager/v1/".to_string(),
_root_url: "https://www.googleapis.com/".to_string(),
}
@@ -346,7 +344,7 @@ impl<'a, C, A> DoubleClickBidManager<C, A>
}
/// Set the user-agent header field to use in all requests to the server.
/// It defaults to `google-api-rust-client/1.0.8`.
/// It defaults to `google-api-rust-client/1.0.9`.
///
/// Returns the previously set user-agent.
pub fn user_agent(&mut self, agent_name: String) -> String {
@@ -431,7 +429,7 @@ pub struct Parameters {
/// Data is grouped by the filters listed in this field.
#[serde(rename="groupBys")]
pub group_bys: Option<Vec<String>>,
/// Whether to include data from Invite Media.
/// Deprecated. This field is no longer in use.
#[serde(rename="includeInviteData")]
pub include_invite_data: Option<bool>,
}
@@ -684,20 +682,20 @@ impl ResponseResult for ListReportsResponse {}
///
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct DownloadRequest {
/// File types that will be returned.
/// File types that will be returned. If INVENTORY_SOURCE is requested, no other file types may be requested.
///
/// Acceptable values are:
/// - "AD"
/// - "AD_GROUP"
/// - "CAMPAIGN"
/// - "INSERTION_ORDER"
/// - "LINE_ITEM"
/// - "INVENTORY_SOURCE"
/// - "INVENTORY_SOURCE"
/// - "LINE_ITEM"
#[serde(rename="fileTypes")]
pub file_types: Option<Vec<String>>,
/// SDF Version (column names, types, order) in which the entities will be returned. Default to 3.1.
pub version: Option<String>,
/// Filter type used to filter entities to fetch.
/// Filter type used to filter entities to fetch. PARTNER_ID and INVENTORY_SOURCE_ID may only be used when downloading inventory sources.
#[serde(rename="filterType")]
pub filter_type: Option<String>,
/// The IDs of the specified filter type. This is used to filter entities to fetch. At least one ID must be specified.