Skip to content

Commit daadd49

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 66ea316 of spec repo (#4141)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent b9c37c1 commit daadd49

2 files changed

Lines changed: 1 addition & 39 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:

api/datadogV2/model_recommendations_filter_request.go

Lines changed: 1 addition & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ import (
1212
type RecommendationsFilterRequest struct {
1313
// Filter expression applied to the recommendations.
1414
Filter *string `json:"filter,omitempty"`
15-
// Recommendations scope. Defaults to `ccm`; use `experiment` for experimental recommendations or `*` for both.
16-
Scope *string `json:"scope,omitempty"`
1715
// Ordered list of sort clauses applied to the result set.
1816
Sort []RecommendationsFilterRequestSortItems `json:"sort,omitempty"`
1917
// Active view name (for example, `active`, `dismissed`, `open`, `in-progress`, or `completed`).
@@ -68,34 +66,6 @@ func (o *RecommendationsFilterRequest) SetFilter(v string) {
6866
o.Filter = &v
6967
}
7068

71-
// GetScope returns the Scope field value if set, zero value otherwise.
72-
func (o *RecommendationsFilterRequest) GetScope() string {
73-
if o == nil || o.Scope == nil {
74-
var ret string
75-
return ret
76-
}
77-
return *o.Scope
78-
}
79-
80-
// GetScopeOk returns a tuple with the Scope field value if set, nil otherwise
81-
// and a boolean to check if the value has been set.
82-
func (o *RecommendationsFilterRequest) GetScopeOk() (*string, bool) {
83-
if o == nil || o.Scope == nil {
84-
return nil, false
85-
}
86-
return o.Scope, true
87-
}
88-
89-
// HasScope returns a boolean if a field has been set.
90-
func (o *RecommendationsFilterRequest) HasScope() bool {
91-
return o != nil && o.Scope != nil
92-
}
93-
94-
// SetScope gets a reference to the given string and assigns it to the Scope field.
95-
func (o *RecommendationsFilterRequest) SetScope(v string) {
96-
o.Scope = &v
97-
}
98-
9969
// GetSort returns the Sort field value if set, zero value otherwise.
10070
func (o *RecommendationsFilterRequest) GetSort() []RecommendationsFilterRequestSortItems {
10171
if o == nil || o.Sort == nil {
@@ -161,9 +131,6 @@ func (o RecommendationsFilterRequest) MarshalJSON() ([]byte, error) {
161131
if o.Filter != nil {
162132
toSerialize["filter"] = o.Filter
163133
}
164-
if o.Scope != nil {
165-
toSerialize["scope"] = o.Scope
166-
}
167134
if o.Sort != nil {
168135
toSerialize["sort"] = o.Sort
169136
}
@@ -181,7 +148,6 @@ func (o RecommendationsFilterRequest) MarshalJSON() ([]byte, error) {
181148
func (o *RecommendationsFilterRequest) UnmarshalJSON(bytes []byte) (err error) {
182149
all := struct {
183150
Filter *string `json:"filter,omitempty"`
184-
Scope *string `json:"scope,omitempty"`
185151
Sort []RecommendationsFilterRequestSortItems `json:"sort,omitempty"`
186152
View *string `json:"view,omitempty"`
187153
}{}
@@ -190,12 +156,11 @@ func (o *RecommendationsFilterRequest) UnmarshalJSON(bytes []byte) (err error) {
190156
}
191157
additionalProperties := make(map[string]interface{})
192158
if err = datadog.Unmarshal(bytes, &additionalProperties); err == nil {
193-
datadog.DeleteKeys(additionalProperties, &[]string{"filter", "scope", "sort", "view"})
159+
datadog.DeleteKeys(additionalProperties, &[]string{"filter", "sort", "view"})
194160
} else {
195161
return err
196162
}
197163
o.Filter = all.Filter
198-
o.Scope = all.Scope
199164
o.Sort = all.Sort
200165
o.View = all.View
201166

0 commit comments

Comments
 (0)