@@ -12,8 +12,6 @@ import (
1212type 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.
10070func (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) {
181148func (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