Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66346,9 +66346,6 @@ components:
filter:
description: Filter expression applied to the recommendations.
type: string
scope:
description: Recommendations scope. Defaults to `ccm`; use `experiment` for experimental recommendations or `*` for both.
type: string
sort:
description: Ordered list of sort clauses applied to the result set.
items:
Expand Down
17 changes: 0 additions & 17 deletions src/datadogV2/model/model_recommendations_filter_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ pub struct RecommendationsFilterRequest {
/// Filter expression applied to the recommendations.
#[serde(rename = "filter")]
pub filter: Option<String>,
/// Recommendations scope. Defaults to `ccm`; use `experiment` for experimental recommendations or `*` for both.
#[serde(rename = "scope")]
pub scope: Option<String>,
/// Ordered list of sort clauses applied to the result set.
#[serde(rename = "sort")]
pub sort: Option<Vec<crate::datadogV2::model::RecommendationsFilterRequestSortItems>>,
Expand All @@ -34,7 +31,6 @@ impl RecommendationsFilterRequest {
pub fn new() -> RecommendationsFilterRequest {
RecommendationsFilterRequest {
filter: None,
scope: None,
sort: None,
view: None,
additional_properties: std::collections::BTreeMap::new(),
Expand All @@ -47,11 +43,6 @@ impl RecommendationsFilterRequest {
self
}

pub fn scope(mut self, value: String) -> Self {
self.scope = Some(value);
self
}

pub fn sort(
mut self,
value: Vec<crate::datadogV2::model::RecommendationsFilterRequestSortItems>,
Expand Down Expand Up @@ -98,7 +89,6 @@ impl<'de> Deserialize<'de> for RecommendationsFilterRequest {
M: MapAccess<'a>,
{
let mut filter: Option<String> = None;
let mut scope: Option<String> = None;
let mut sort: Option<
Vec<crate::datadogV2::model::RecommendationsFilterRequestSortItems>,
> = None;
Expand All @@ -117,12 +107,6 @@ impl<'de> Deserialize<'de> for RecommendationsFilterRequest {
}
filter = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
}
"scope" => {
if v.is_null() {
continue;
}
scope = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
}
"sort" => {
if v.is_null() {
continue;
Expand All @@ -145,7 +129,6 @@ impl<'de> Deserialize<'de> for RecommendationsFilterRequest {

let content = RecommendationsFilterRequest {
filter,
scope,
sort,
view,
additional_properties,
Expand Down
Loading