Skip to content

Commit 63b9a44

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Remove scope parameter from Cloud Cost Search Recommendations API (#1649)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent aeb5ab1 commit 63b9a44

2 files changed

Lines changed: 0 additions & 20 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66681,9 +66681,6 @@ components:
6668166681
filter:
6668266682
description: Filter expression applied to the recommendations.
6668366683
type: string
66684-
scope:
66685-
description: Recommendations scope. Defaults to `ccm`; use `experiment` for experimental recommendations or `*` for both.
66686-
type: string
6668766684
sort:
6668866685
description: Ordered list of sort clauses applied to the result set.
6668966686
items:

src/datadogV2/model/model_recommendations_filter_request.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ pub struct RecommendationsFilterRequest {
1414
/// Filter expression applied to the recommendations.
1515
#[serde(rename = "filter")]
1616
pub filter: Option<String>,
17-
/// Recommendations scope. Defaults to `ccm`; use `experiment` for experimental recommendations or `*` for both.
18-
#[serde(rename = "scope")]
19-
pub scope: Option<String>,
2017
/// Ordered list of sort clauses applied to the result set.
2118
#[serde(rename = "sort")]
2219
pub sort: Option<Vec<crate::datadogV2::model::RecommendationsFilterRequestSortItems>>,
@@ -34,7 +31,6 @@ impl RecommendationsFilterRequest {
3431
pub fn new() -> RecommendationsFilterRequest {
3532
RecommendationsFilterRequest {
3633
filter: None,
37-
scope: None,
3834
sort: None,
3935
view: None,
4036
additional_properties: std::collections::BTreeMap::new(),
@@ -47,11 +43,6 @@ impl RecommendationsFilterRequest {
4743
self
4844
}
4945

50-
pub fn scope(mut self, value: String) -> Self {
51-
self.scope = Some(value);
52-
self
53-
}
54-
5546
pub fn sort(
5647
mut self,
5748
value: Vec<crate::datadogV2::model::RecommendationsFilterRequestSortItems>,
@@ -98,7 +89,6 @@ impl<'de> Deserialize<'de> for RecommendationsFilterRequest {
9889
M: MapAccess<'a>,
9990
{
10091
let mut filter: Option<String> = None;
101-
let mut scope: Option<String> = None;
10292
let mut sort: Option<
10393
Vec<crate::datadogV2::model::RecommendationsFilterRequestSortItems>,
10494
> = None;
@@ -117,12 +107,6 @@ impl<'de> Deserialize<'de> for RecommendationsFilterRequest {
117107
}
118108
filter = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
119109
}
120-
"scope" => {
121-
if v.is_null() {
122-
continue;
123-
}
124-
scope = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
125-
}
126110
"sort" => {
127111
if v.is_null() {
128112
continue;
@@ -145,7 +129,6 @@ impl<'de> Deserialize<'de> for RecommendationsFilterRequest {
145129

146130
let content = RecommendationsFilterRequest {
147131
filter,
148-
scope,
149132
sort,
150133
view,
151134
additional_properties,

0 commit comments

Comments
 (0)