make regen-apis

This commit is contained in:
OMGeeky
2023-10-23 12:55:17 +02:00
parent a4b0f56b8c
commit 4a258a57a6
1025 changed files with 29943 additions and 28980 deletions

View File

@@ -128,18 +128,18 @@ let result = hub.accounts().reports_generate("account")
.start_date_year(-33)
.start_date_month(-11)
.start_date_day(-55)
.reporting_time_zone("voluptua.")
.add_order_by("At")
.add_metrics("sanctus")
.limit(-80)
.language_code("amet.")
.add_filters("takimata")
.end_date_year(-52)
.end_date_month(-20)
.end_date_day(-55)
.add_dimensions("gubergren")
.date_range("Lorem")
.currency_code("gubergren")
.reporting_time_zone(&Default::default())
.add_order_by("voluptua.")
.add_metrics(&Default::default())
.limit(-27)
.language_code("sanctus")
.add_filters("sed")
.end_date_year(-2)
.end_date_month(-59)
.end_date_day(-52)
.add_dimensions(&Default::default())
.date_range(&Default::default())
.currency_code("duo")
.doit().await;
match result {

View File

@@ -77,7 +77,7 @@ where
}
let mut params = Params::with_capacity(4 + self._additional_params.len());
params.push("parent", self._parent);
params.push("parent", &self._parent);
params.extend(self._additional_params.iter());
@@ -362,7 +362,7 @@ where
}
let mut params = Params::with_capacity(3 + self._additional_params.len());
params.push("name", self._name);
params.push("name", &self._name);
params.extend(self._additional_params.iter());
@@ -624,7 +624,7 @@ where
}
let mut params = Params::with_capacity(3 + self._additional_params.len());
params.push("name", self._name);
params.push("name", &self._name);
params.extend(self._additional_params.iter());
@@ -842,8 +842,8 @@ where
/// // execute the final call using `doit()`.
/// // Values shown here are possibly random and not representative !
/// let result = hub.accounts().adclients_adunits_list("parent")
/// .page_token("dolore")
/// .page_size(-22)
/// .page_token("sed")
/// .page_size(-61)
/// .doit().await;
/// # }
/// ```
@@ -890,7 +890,7 @@ where
}
let mut params = Params::with_capacity(5 + self._additional_params.len());
params.push("parent", self._parent);
params.push("parent", &self._parent);
if let Some(value) = self._page_token.as_ref() {
params.push("pageToken", value);
}
@@ -1128,8 +1128,8 @@ where
/// // execute the final call using `doit()`.
/// // Values shown here are possibly random and not representative !
/// let result = hub.accounts().adclients_adunits_list_linked_custom_channels("parent")
/// .page_token("amet.")
/// .page_size(-96)
/// .page_token("kasd")
/// .page_size(-24)
/// .doit().await;
/// # }
/// ```
@@ -1176,7 +1176,7 @@ where
}
let mut params = Params::with_capacity(5 + self._additional_params.len());
params.push("parent", self._parent);
params.push("parent", &self._parent);
if let Some(value) = self._page_token.as_ref() {
params.push("pageToken", value);
}
@@ -1467,7 +1467,7 @@ where
}
let mut params = Params::with_capacity(5 + self._additional_params.len());
params.push("name", self._name);
params.push("name", &self._name);
if let Some(value) = self._update_mask.as_ref() {
params.push("updateMask", value.to_string());
}
@@ -1769,7 +1769,7 @@ where
}
let mut params = Params::with_capacity(4 + self._additional_params.len());
params.push("parent", self._parent);
params.push("parent", &self._parent);
params.extend(self._additional_params.iter());
@@ -2054,7 +2054,7 @@ where
}
let mut params = Params::with_capacity(3 + self._additional_params.len());
params.push("name", self._name);
params.push("name", &self._name);
params.extend(self._additional_params.iter());
@@ -2316,7 +2316,7 @@ where
}
let mut params = Params::with_capacity(3 + self._additional_params.len());
params.push("name", self._name);
params.push("name", &self._name);
params.extend(self._additional_params.iter());
@@ -2534,8 +2534,8 @@ where
/// // execute the final call using `doit()`.
/// // Values shown here are possibly random and not representative !
/// let result = hub.accounts().adclients_customchannels_list("parent")
/// .page_token("Stet")
/// .page_size(-99)
/// .page_token("sed")
/// .page_size(-20)
/// .doit().await;
/// # }
/// ```
@@ -2582,7 +2582,7 @@ where
}
let mut params = Params::with_capacity(5 + self._additional_params.len());
params.push("parent", self._parent);
params.push("parent", &self._parent);
if let Some(value) = self._page_token.as_ref() {
params.push("pageToken", value);
}
@@ -2820,8 +2820,8 @@ where
/// // execute the final call using `doit()`.
/// // Values shown here are possibly random and not representative !
/// let result = hub.accounts().adclients_customchannels_list_linked_ad_units("parent")
/// .page_token("vero")
/// .page_size(-76)
/// .page_token("et")
/// .page_size(-28)
/// .doit().await;
/// # }
/// ```
@@ -2868,7 +2868,7 @@ where
}
let mut params = Params::with_capacity(5 + self._additional_params.len());
params.push("parent", self._parent);
params.push("parent", &self._parent);
if let Some(value) = self._page_token.as_ref() {
params.push("pageToken", value);
}
@@ -3159,7 +3159,7 @@ where
}
let mut params = Params::with_capacity(5 + self._additional_params.len());
params.push("name", self._name);
params.push("name", &self._name);
if let Some(value) = self._update_mask.as_ref() {
params.push("updateMask", value.to_string());
}
@@ -3454,7 +3454,7 @@ where
}
let mut params = Params::with_capacity(3 + self._additional_params.len());
params.push("name", self._name);
params.push("name", &self._name);
params.extend(self._additional_params.iter());
@@ -3672,8 +3672,8 @@ where
/// // execute the final call using `doit()`.
/// // Values shown here are possibly random and not representative !
/// let result = hub.accounts().adclients_urlchannels_list("parent")
/// .page_token("elitr")
/// .page_size(-6)
/// .page_token("dolor")
/// .page_size(-18)
/// .doit().await;
/// # }
/// ```
@@ -3720,7 +3720,7 @@ where
}
let mut params = Params::with_capacity(5 + self._additional_params.len());
params.push("parent", self._parent);
params.push("parent", &self._parent);
if let Some(value) = self._page_token.as_ref() {
params.push("pageToken", value);
}
@@ -4002,7 +4002,7 @@ where
}
let mut params = Params::with_capacity(3 + self._additional_params.len());
params.push("name", self._name);
params.push("name", &self._name);
params.extend(self._additional_params.iter());
@@ -4264,7 +4264,7 @@ where
}
let mut params = Params::with_capacity(3 + self._additional_params.len());
params.push("name", self._name);
params.push("name", &self._name);
params.extend(self._additional_params.iter());
@@ -4482,8 +4482,8 @@ where
/// // execute the final call using `doit()`.
/// // Values shown here are possibly random and not representative !
/// let result = hub.accounts().adclients_list("parent")
/// .page_token("accusam")
/// .page_size(-59)
/// .page_token("dolor")
/// .page_size(-20)
/// .doit().await;
/// # }
/// ```
@@ -4530,7 +4530,7 @@ where
}
let mut params = Params::with_capacity(5 + self._additional_params.len());
params.push("parent", self._parent);
params.push("parent", &self._parent);
if let Some(value) = self._page_token.as_ref() {
params.push("pageToken", value);
}
@@ -4768,7 +4768,7 @@ where
/// // execute the final call using `doit()`.
/// // Values shown here are possibly random and not representative !
/// let result = hub.accounts().alerts_list("parent")
/// .language_code("voluptua.")
/// .language_code("vero")
/// .doit().await;
/// # }
/// ```
@@ -4814,7 +4814,7 @@ where
}
let mut params = Params::with_capacity(4 + self._additional_params.len());
params.push("parent", self._parent);
params.push("parent", &self._parent);
if let Some(value) = self._language_code.as_ref() {
params.push("languageCode", value);
}
@@ -5086,7 +5086,7 @@ where
}
let mut params = Params::with_capacity(3 + self._additional_params.len());
params.push("parent", self._parent);
params.push("parent", &self._parent);
params.extend(self._additional_params.iter());
@@ -5304,16 +5304,16 @@ where
/// // execute the final call using `doit()`.
/// // Values shown here are possibly random and not representative !
/// let result = hub.accounts().reports_saved_generate("name")
/// .start_date_year(-96)
/// .start_date_month(-2)
/// .start_date_day(-30)
/// .reporting_time_zone("takimata")
/// .language_code("dolores")
/// .end_date_year(-62)
/// .end_date_month(-74)
/// .start_date_year(-76)
/// .start_date_month(-44)
/// .start_date_day(-6)
/// .reporting_time_zone(&Default::default())
/// .language_code("diam")
/// .end_date_year(-61)
/// .end_date_month(-100)
/// .end_date_day(-23)
/// .date_range("voluptua.")
/// .currency_code("dolore")
/// .date_range(&Default::default())
/// .currency_code("takimata")
/// .doit().await;
/// # }
/// ```
@@ -5325,12 +5325,12 @@ pub struct AccountReportSavedGenerateCall<'a, S>
pub(super) _start_date_year: Option<i32>,
pub(super) _start_date_month: Option<i32>,
pub(super) _start_date_day: Option<i32>,
pub(super) _reporting_time_zone: Option<String>,
pub(super) _reporting_time_zone: Option<AccountReportingTimeZoneEnum>,
pub(super) _language_code: Option<String>,
pub(super) _end_date_year: Option<i32>,
pub(super) _end_date_month: Option<i32>,
pub(super) _end_date_day: Option<i32>,
pub(super) _date_range: Option<String>,
pub(super) _date_range: Option<AccountDateRangeEnum>,
pub(super) _currency_code: Option<String>,
pub(super) _delegate: Option<&'a mut dyn client::Delegate>,
pub(super) _additional_params: HashMap<String, String>,
@@ -5368,7 +5368,7 @@ where
}
let mut params = Params::with_capacity(13 + self._additional_params.len());
params.push("name", self._name);
params.push("name", &self._name);
if let Some(value) = self._start_date_year.as_ref() {
params.push("startDate.year", value.to_string());
}
@@ -5537,8 +5537,8 @@ where
/// Timezone in which to generate the report. If unspecified, this defaults to the account timezone. For more information, see [changing the time zone of your reports](https://support.google.com/adsense/answer/9830725).
///
/// Sets the *reporting time zone* query property to the given value.
pub fn reporting_time_zone(mut self, new_value: &str) -> AccountReportSavedGenerateCall<'a, S> {
self._reporting_time_zone = Some(new_value.to_string());
pub fn reporting_time_zone(mut self, new_value: &AccountReportingTimeZoneEnum) -> AccountReportSavedGenerateCall<'a, S> {
self._reporting_time_zone = Some(new_value.clone());
self
}
/// The language to use for translating report output. If unspecified, this defaults to English ("en"). If the given language is not supported, report output will be returned in English. The language is specified as an [IETF BCP-47 language code](https://en.wikipedia.org/wiki/IETF_language_tag).
@@ -5572,8 +5572,8 @@ where
/// Date range of the report, if unset the range will be considered CUSTOM.
///
/// Sets the *date range* query property to the given value.
pub fn date_range(mut self, new_value: &str) -> AccountReportSavedGenerateCall<'a, S> {
self._date_range = Some(new_value.to_string());
pub fn date_range(mut self, new_value: &AccountDateRangeEnum) -> AccountReportSavedGenerateCall<'a, S> {
self._date_range = Some(new_value.clone());
self
}
/// The [ISO-4217 currency code](https://en.wikipedia.org/wiki/ISO_4217) to use when reporting on monetary metrics. Defaults to the account's currency if not set.
@@ -5686,16 +5686,16 @@ where
/// // execute the final call using `doit()`.
/// // Values shown here are possibly random and not representative !
/// let result = hub.accounts().reports_saved_generate_csv("name")
/// .start_date_year(-34)
/// .start_date_month(-78)
/// .start_date_day(-2)
/// .reporting_time_zone("ea")
/// .language_code("sadipscing")
/// .end_date_year(-6)
/// .end_date_month(-38)
/// .end_date_day(-11)
/// .date_range("est")
/// .currency_code("At")
/// .start_date_year(-28)
/// .start_date_month(-72)
/// .start_date_day(-31)
/// .reporting_time_zone(&Default::default())
/// .language_code("consetetur")
/// .end_date_year(-2)
/// .end_date_month(-30)
/// .end_date_day(-9)
/// .date_range(&Default::default())
/// .currency_code("dolores")
/// .doit().await;
/// # }
/// ```
@@ -5707,12 +5707,12 @@ pub struct AccountReportSavedGenerateCsvCall<'a, S>
pub(super) _start_date_year: Option<i32>,
pub(super) _start_date_month: Option<i32>,
pub(super) _start_date_day: Option<i32>,
pub(super) _reporting_time_zone: Option<String>,
pub(super) _reporting_time_zone: Option<AccountReportingTimeZoneEnum>,
pub(super) _language_code: Option<String>,
pub(super) _end_date_year: Option<i32>,
pub(super) _end_date_month: Option<i32>,
pub(super) _end_date_day: Option<i32>,
pub(super) _date_range: Option<String>,
pub(super) _date_range: Option<AccountDateRangeEnum>,
pub(super) _currency_code: Option<String>,
pub(super) _delegate: Option<&'a mut dyn client::Delegate>,
pub(super) _additional_params: HashMap<String, String>,
@@ -5750,7 +5750,7 @@ where
}
let mut params = Params::with_capacity(13 + self._additional_params.len());
params.push("name", self._name);
params.push("name", &self._name);
if let Some(value) = self._start_date_year.as_ref() {
params.push("startDate.year", value.to_string());
}
@@ -5919,8 +5919,8 @@ where
/// Timezone in which to generate the report. If unspecified, this defaults to the account timezone. For more information, see [changing the time zone of your reports](https://support.google.com/adsense/answer/9830725).
///
/// Sets the *reporting time zone* query property to the given value.
pub fn reporting_time_zone(mut self, new_value: &str) -> AccountReportSavedGenerateCsvCall<'a, S> {
self._reporting_time_zone = Some(new_value.to_string());
pub fn reporting_time_zone(mut self, new_value: &AccountReportingTimeZoneEnum) -> AccountReportSavedGenerateCsvCall<'a, S> {
self._reporting_time_zone = Some(new_value.clone());
self
}
/// The language to use for translating report output. If unspecified, this defaults to English ("en"). If the given language is not supported, report output will be returned in English. The language is specified as an [IETF BCP-47 language code](https://en.wikipedia.org/wiki/IETF_language_tag).
@@ -5954,8 +5954,8 @@ where
/// Date range of the report, if unset the range will be considered CUSTOM.
///
/// Sets the *date range* query property to the given value.
pub fn date_range(mut self, new_value: &str) -> AccountReportSavedGenerateCsvCall<'a, S> {
self._date_range = Some(new_value.to_string());
pub fn date_range(mut self, new_value: &AccountDateRangeEnum) -> AccountReportSavedGenerateCsvCall<'a, S> {
self._date_range = Some(new_value.clone());
self
}
/// The [ISO-4217 currency code](https://en.wikipedia.org/wiki/ISO_4217) to use when reporting on monetary metrics. Defaults to the account's currency if not set.
@@ -6068,8 +6068,8 @@ where
/// // execute the final call using `doit()`.
/// // Values shown here are possibly random and not representative !
/// let result = hub.accounts().reports_saved_list("parent")
/// .page_token("sit")
/// .page_size(-35)
/// .page_token("et")
/// .page_size(-23)
/// .doit().await;
/// # }
/// ```
@@ -6116,7 +6116,7 @@ where
}
let mut params = Params::with_capacity(5 + self._additional_params.len());
params.push("parent", self._parent);
params.push("parent", &self._parent);
if let Some(value) = self._page_token.as_ref() {
params.push("pageToken", value);
}
@@ -6354,21 +6354,21 @@ where
/// // execute the final call using `doit()`.
/// // Values shown here are possibly random and not representative !
/// let result = hub.accounts().reports_generate("account")
/// .start_date_year(-32)
/// .start_date_month(-5)
/// .start_date_day(-18)
/// .reporting_time_zone("sanctus")
/// .add_order_by("Lorem")
/// .add_metrics("est")
/// .limit(-30)
/// .language_code("diam")
/// .add_filters("dolores")
/// .end_date_year(-69)
/// .end_date_month(-68)
/// .end_date_day(-93)
/// .add_dimensions("no")
/// .date_range("et")
/// .currency_code("elitr")
/// .start_date_year(-34)
/// .start_date_month(-34)
/// .start_date_day(-34)
/// .reporting_time_zone(&Default::default())
/// .add_order_by("voluptua.")
/// .add_metrics(&Default::default())
/// .limit(-2)
/// .language_code("ea")
/// .add_filters("sadipscing")
/// .end_date_year(-6)
/// .end_date_month(-38)
/// .end_date_day(-11)
/// .add_dimensions(&Default::default())
/// .date_range(&Default::default())
/// .currency_code("est")
/// .doit().await;
/// # }
/// ```
@@ -6380,17 +6380,17 @@ pub struct AccountReportGenerateCall<'a, S>
pub(super) _start_date_year: Option<i32>,
pub(super) _start_date_month: Option<i32>,
pub(super) _start_date_day: Option<i32>,
pub(super) _reporting_time_zone: Option<String>,
pub(super) _reporting_time_zone: Option<AccountReportingTimeZoneEnum>,
pub(super) _order_by: Vec<String>,
pub(super) _metrics: Vec<String>,
pub(super) _metrics: Option<AccountMetricsEnum>,
pub(super) _limit: Option<i32>,
pub(super) _language_code: Option<String>,
pub(super) _filters: Vec<String>,
pub(super) _end_date_year: Option<i32>,
pub(super) _end_date_month: Option<i32>,
pub(super) _end_date_day: Option<i32>,
pub(super) _dimensions: Vec<String>,
pub(super) _date_range: Option<String>,
pub(super) _dimensions: Option<AccountDimensionsEnum>,
pub(super) _date_range: Option<AccountDateRangeEnum>,
pub(super) _currency_code: Option<String>,
pub(super) _delegate: Option<&'a mut dyn client::Delegate>,
pub(super) _additional_params: HashMap<String, String>,
@@ -6428,7 +6428,7 @@ where
}
let mut params = Params::with_capacity(18 + self._additional_params.len());
params.push("account", self._account);
params.push("account", &self._account);
if let Some(value) = self._start_date_year.as_ref() {
params.push("startDate.year", value.to_string());
}
@@ -6620,8 +6620,8 @@ where
/// Timezone in which to generate the report. If unspecified, this defaults to the account timezone. For more information, see [changing the time zone of your reports](https://support.google.com/adsense/answer/9830725).
///
/// Sets the *reporting time zone* query property to the given value.
pub fn reporting_time_zone(mut self, new_value: &str) -> AccountReportGenerateCall<'a, S> {
self._reporting_time_zone = Some(new_value.to_string());
pub fn reporting_time_zone(mut self, new_value: &AccountReportingTimeZoneEnum) -> AccountReportGenerateCall<'a, S> {
self._reporting_time_zone = Some(new_value.clone());
self
}
/// The name of a dimension or metric to sort the resulting report on, can be prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending.
@@ -6636,8 +6636,8 @@ where
///
/// Append the given value to the *metrics* query property.
/// Each appended value will retain its original ordering and be '/'-separated in the URL's parameters.
pub fn add_metrics(mut self, new_value: &str) -> AccountReportGenerateCall<'a, S> {
self._metrics.push(new_value.to_string());
pub fn add_metrics(mut self, new_value: &AccountMetricsEnum) -> AccountReportGenerateCall<'a, S> {
self._metrics.push(new_value.clone());
self
}
/// The maximum number of rows of report data to return. Reports producing more rows than the requested limit will be truncated. If unset, this defaults to 100,000 rows for `Reports.GenerateReport` and 1,000,000 rows for `Reports.GenerateCsvReport`, which are also the maximum values permitted here. Report truncation can be identified (for `Reports.GenerateReport` only) by comparing the number of rows returned to the value returned in `total_matched_rows`.
@@ -6687,15 +6687,15 @@ where
///
/// Append the given value to the *dimensions* query property.
/// Each appended value will retain its original ordering and be '/'-separated in the URL's parameters.
pub fn add_dimensions(mut self, new_value: &str) -> AccountReportGenerateCall<'a, S> {
self._dimensions.push(new_value.to_string());
pub fn add_dimensions(mut self, new_value: &AccountDimensionsEnum) -> AccountReportGenerateCall<'a, S> {
self._dimensions.push(new_value.clone());
self
}
/// Date range of the report, if unset the range will be considered CUSTOM.
///
/// Sets the *date range* query property to the given value.
pub fn date_range(mut self, new_value: &str) -> AccountReportGenerateCall<'a, S> {
self._date_range = Some(new_value.to_string());
pub fn date_range(mut self, new_value: &AccountDateRangeEnum) -> AccountReportGenerateCall<'a, S> {
self._date_range = Some(new_value.clone());
self
}
/// The [ISO-4217 currency code](https://en.wikipedia.org/wiki/ISO_4217) to use when reporting on monetary metrics. Defaults to the account's currency if not set.
@@ -6808,21 +6808,21 @@ where
/// // execute the final call using `doit()`.
/// // Values shown here are possibly random and not representative !
/// let result = hub.accounts().reports_generate_csv("account")
/// .start_date_year(-61)
/// .start_date_month(-91)
/// .start_date_day(-77)
/// .reporting_time_zone("sadipscing")
/// .add_order_by("aliquyam")
/// .add_metrics("dolores")
/// .limit(-95)
/// .language_code("erat")
/// .add_filters("aliquyam")
/// .end_date_year(-47)
/// .end_date_month(-57)
/// .end_date_day(-24)
/// .add_dimensions("sea")
/// .date_range("consetetur")
/// .currency_code("consetetur")
/// .start_date_year(-43)
/// .start_date_month(-98)
/// .start_date_day(-35)
/// .reporting_time_zone(&Default::default())
/// .add_order_by("tempor")
/// .add_metrics(&Default::default())
/// .limit(-32)
/// .language_code("ipsum")
/// .add_filters("et")
/// .end_date_year(-8)
/// .end_date_month(-56)
/// .end_date_day(-7)
/// .add_dimensions(&Default::default())
/// .date_range(&Default::default())
/// .currency_code("sed")
/// .doit().await;
/// # }
/// ```
@@ -6834,17 +6834,17 @@ pub struct AccountReportGenerateCsvCall<'a, S>
pub(super) _start_date_year: Option<i32>,
pub(super) _start_date_month: Option<i32>,
pub(super) _start_date_day: Option<i32>,
pub(super) _reporting_time_zone: Option<String>,
pub(super) _reporting_time_zone: Option<AccountReportingTimeZoneEnum>,
pub(super) _order_by: Vec<String>,
pub(super) _metrics: Vec<String>,
pub(super) _metrics: Option<AccountMetricsEnum>,
pub(super) _limit: Option<i32>,
pub(super) _language_code: Option<String>,
pub(super) _filters: Vec<String>,
pub(super) _end_date_year: Option<i32>,
pub(super) _end_date_month: Option<i32>,
pub(super) _end_date_day: Option<i32>,
pub(super) _dimensions: Vec<String>,
pub(super) _date_range: Option<String>,
pub(super) _dimensions: Option<AccountDimensionsEnum>,
pub(super) _date_range: Option<AccountDateRangeEnum>,
pub(super) _currency_code: Option<String>,
pub(super) _delegate: Option<&'a mut dyn client::Delegate>,
pub(super) _additional_params: HashMap<String, String>,
@@ -6882,7 +6882,7 @@ where
}
let mut params = Params::with_capacity(18 + self._additional_params.len());
params.push("account", self._account);
params.push("account", &self._account);
if let Some(value) = self._start_date_year.as_ref() {
params.push("startDate.year", value.to_string());
}
@@ -7074,8 +7074,8 @@ where
/// Timezone in which to generate the report. If unspecified, this defaults to the account timezone. For more information, see [changing the time zone of your reports](https://support.google.com/adsense/answer/9830725).
///
/// Sets the *reporting time zone* query property to the given value.
pub fn reporting_time_zone(mut self, new_value: &str) -> AccountReportGenerateCsvCall<'a, S> {
self._reporting_time_zone = Some(new_value.to_string());
pub fn reporting_time_zone(mut self, new_value: &AccountReportingTimeZoneEnum) -> AccountReportGenerateCsvCall<'a, S> {
self._reporting_time_zone = Some(new_value.clone());
self
}
/// The name of a dimension or metric to sort the resulting report on, can be prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending.
@@ -7090,8 +7090,8 @@ where
///
/// Append the given value to the *metrics* query property.
/// Each appended value will retain its original ordering and be '/'-separated in the URL's parameters.
pub fn add_metrics(mut self, new_value: &str) -> AccountReportGenerateCsvCall<'a, S> {
self._metrics.push(new_value.to_string());
pub fn add_metrics(mut self, new_value: &AccountMetricsEnum) -> AccountReportGenerateCsvCall<'a, S> {
self._metrics.push(new_value.clone());
self
}
/// The maximum number of rows of report data to return. Reports producing more rows than the requested limit will be truncated. If unset, this defaults to 100,000 rows for `Reports.GenerateReport` and 1,000,000 rows for `Reports.GenerateCsvReport`, which are also the maximum values permitted here. Report truncation can be identified (for `Reports.GenerateReport` only) by comparing the number of rows returned to the value returned in `total_matched_rows`.
@@ -7141,15 +7141,15 @@ where
///
/// Append the given value to the *dimensions* query property.
/// Each appended value will retain its original ordering and be '/'-separated in the URL's parameters.
pub fn add_dimensions(mut self, new_value: &str) -> AccountReportGenerateCsvCall<'a, S> {
self._dimensions.push(new_value.to_string());
pub fn add_dimensions(mut self, new_value: &AccountDimensionsEnum) -> AccountReportGenerateCsvCall<'a, S> {
self._dimensions.push(new_value.clone());
self
}
/// Date range of the report, if unset the range will be considered CUSTOM.
///
/// Sets the *date range* query property to the given value.
pub fn date_range(mut self, new_value: &str) -> AccountReportGenerateCsvCall<'a, S> {
self._date_range = Some(new_value.to_string());
pub fn date_range(mut self, new_value: &AccountDateRangeEnum) -> AccountReportGenerateCsvCall<'a, S> {
self._date_range = Some(new_value.clone());
self
}
/// The [ISO-4217 currency code](https://en.wikipedia.org/wiki/ISO_4217) to use when reporting on monetary metrics. Defaults to the account's currency if not set.
@@ -7306,7 +7306,7 @@ where
}
let mut params = Params::with_capacity(3 + self._additional_params.len());
params.push("name", self._name);
params.push("name", &self._name);
params.extend(self._additional_params.iter());
@@ -7568,7 +7568,7 @@ where
}
let mut params = Params::with_capacity(3 + self._additional_params.len());
params.push("name", self._name);
params.push("name", &self._name);
params.extend(self._additional_params.iter());
@@ -7786,8 +7786,8 @@ where
/// // execute the final call using `doit()`.
/// // Values shown here are possibly random and not representative !
/// let result = hub.accounts().sites_list("parent")
/// .page_token("elitr")
/// .page_size(-20)
/// .page_token("et")
/// .page_size(-93)
/// .doit().await;
/// # }
/// ```
@@ -7834,7 +7834,7 @@ where
}
let mut params = Params::with_capacity(5 + self._additional_params.len());
params.push("parent", self._parent);
params.push("parent", &self._parent);
if let Some(value) = self._page_token.as_ref() {
params.push("pageToken", value);
}
@@ -8116,7 +8116,7 @@ where
}
let mut params = Params::with_capacity(3 + self._additional_params.len());
params.push("name", self._name);
params.push("name", &self._name);
params.extend(self._additional_params.iter());
@@ -8378,7 +8378,7 @@ where
}
let mut params = Params::with_capacity(3 + self._additional_params.len());
params.push("name", self._name);
params.push("name", &self._name);
params.extend(self._additional_params.iter());
@@ -8596,8 +8596,8 @@ where
/// // execute the final call using `doit()`.
/// // Values shown here are possibly random and not representative !
/// let result = hub.accounts().list()
/// .page_token("sit")
/// .page_size(-93)
/// .page_token("elitr")
/// .page_size(-80)
/// .doit().await;
/// # }
/// ```
@@ -8863,8 +8863,8 @@ where
/// // execute the final call using `doit()`.
/// // Values shown here are possibly random and not representative !
/// let result = hub.accounts().list_child_accounts("parent")
/// .page_token("Lorem")
/// .page_size(-17)
/// .page_token("nonumy")
/// .page_size(-77)
/// .doit().await;
/// # }
/// ```
@@ -8911,7 +8911,7 @@ where
}
let mut params = Params::with_capacity(5 + self._additional_params.len());
params.push("parent", self._parent);
params.push("parent", &self._parent);
if let Some(value) = self._page_token.as_ref() {
params.push("pageToken", value);
}

View File

@@ -32,21 +32,21 @@ use super::*;
/// // execute the final call using `doit()`.
/// // Values shown here are possibly random and not representative !
/// let result = hub.accounts().reports_generate("account")
/// .start_date_year(-17)
/// .start_date_month(-99)
/// .start_date_day(-56)
/// .reporting_time_zone("eos")
/// .add_order_by("labore")
/// .add_metrics("sed")
/// .limit(-70)
/// .language_code("sed")
/// .add_filters("no")
/// .end_date_year(-15)
/// .end_date_month(-13)
/// .end_date_day(-24)
/// .add_dimensions("sed")
/// .date_range("et")
/// .currency_code("et")
/// .start_date_year(-37)
/// .start_date_month(-12)
/// .start_date_day(-16)
/// .reporting_time_zone(&Default::default())
/// .add_order_by("est")
/// .add_metrics(&Default::default())
/// .limit(-50)
/// .language_code("ipsum")
/// .add_filters("est")
/// .end_date_year(-62)
/// .end_date_month(-17)
/// .end_date_day(-99)
/// .add_dimensions(&Default::default())
/// .date_range(&Default::default())
/// .currency_code("Lorem")
/// .doit().await;
///
/// match result {

View File

@@ -30,3 +30,6 @@ pub use method_builders::*;
mod call_builders;
pub use call_builders::*;
mod enums;
pub use enums::*;

View File

@@ -60,7 +60,7 @@ pub struct Account {
pub premium: Option<bool>,
/// Output only. State of the account.
pub state: Option<String>,
pub state: Option<AccountStateEnum>,
/// The account time zone, as used by reporting. For more information, see [changing the time zone of your reports](https://support.google.com/adsense/answer/9830725).
#[serde(rename="timeZone")]
@@ -118,7 +118,7 @@ pub struct AdClient {
pub reporting_dimension_id: Option<String>,
/// Output only. State of the ad client.
pub state: Option<String>,
pub state: Option<AdClientStateEnum>,
}
impl client::ResponseResult for AdClient {}
@@ -182,7 +182,7 @@ pub struct AdUnit {
pub reporting_dimension_id: Option<String>,
/// State of the ad unit.
pub state: Option<String>,
pub state: Option<AdUnitStateEnum>,
}
impl client::RequestValue for AdUnit {}
@@ -224,7 +224,7 @@ pub struct Alert {
pub name: Option<String>,
/// Output only. Severity of this alert.
pub severity: Option<String>,
pub severity: Option<AlertSeverityEnum>,
/// Output only. Type of alert. This identifies the broad type of this alert, and provides a stable machine-readable identifier that will not be translated. For example, "payment-hold".
#[serde(rename="type")]
@@ -262,7 +262,7 @@ pub struct ContentAdsSettings {
/// Required. Type of the ad unit.
#[serde(rename="type")]
pub type_: Option<String>,
pub type_: Option<ContentAdsSettingTypeEnum>,
}
impl client::Part for ContentAdsSettings {}
@@ -354,7 +354,7 @@ pub struct Header {
/// Required. Type of the header.
#[serde(rename="type")]
pub type_: Option<String>,
pub type_: Option<HeaderTypeEnum>,
}
impl client::Part for Header {}
@@ -793,7 +793,7 @@ pub struct Site {
pub reporting_dimension_id: Option<String>,
/// Output only. State of a site.
pub state: Option<String>,
pub state: Option<SiteStateEnum>,
}
impl client::ResponseResult for Site {}

View File

@@ -126,21 +126,21 @@
//! // execute the final call using `doit()`.
//! // Values shown here are possibly random and not representative !
//! let result = hub.accounts().reports_generate("account")
//! .start_date_year(-4)
//! .start_date_month(-17)
//! .start_date_day(-55)
//! .reporting_time_zone("invidunt")
//! .add_order_by("amet")
//! .add_metrics("duo")
//! .limit(-50)
//! .language_code("sed")
//! .add_filters("ut")
//! .end_date_year(-12)
//! .end_date_month(-16)
//! .end_date_day(-57)
//! .add_dimensions("ipsum")
//! .date_range("ipsum")
//! .currency_code("est")
//! .start_date_year(-62)
//! .start_date_month(-51)
//! .start_date_day(-12)
//! .reporting_time_zone(&Default::default())
//! .add_order_by("eos")
//! .add_metrics(&Default::default())
//! .limit(-4)
//! .language_code("ea")
//! .add_filters("ipsum")
//! .end_date_year(-88)
//! .end_date_month(-47)
//! .end_date_day(-20)
//! .add_dimensions(&Default::default())
//! .date_range(&Default::default())
//! .currency_code("ipsum")
//! .doit().await;
//!
//! match result {