@@ -24,6 +24,8 @@ type IssuesSearchRequestDataAttributes struct {
2424 Persona * IssuesSearchRequestDataAttributesPersona `json:"persona,omitempty"`
2525 // Search query following the event search syntax.
2626 Query string `json:"query"`
27+ // Filter issues by state. Multiple values are combined with OR logic.
28+ States []IssueState `json:"states,omitempty"`
2729 // Filter issues by team IDs. Multiple values are combined with OR logic.
2830 TeamIds []uuid.UUID `json:"team_ids,omitempty"`
2931 // End date (exclusive) of the query in milliseconds since the Unix epoch.
@@ -185,6 +187,34 @@ func (o *IssuesSearchRequestDataAttributes) SetQuery(v string) {
185187 o .Query = v
186188}
187189
190+ // GetStates returns the States field value if set, zero value otherwise.
191+ func (o * IssuesSearchRequestDataAttributes ) GetStates () []IssueState {
192+ if o == nil || o .States == nil {
193+ var ret []IssueState
194+ return ret
195+ }
196+ return o .States
197+ }
198+
199+ // GetStatesOk returns a tuple with the States field value if set, nil otherwise
200+ // and a boolean to check if the value has been set.
201+ func (o * IssuesSearchRequestDataAttributes ) GetStatesOk () (* []IssueState , bool ) {
202+ if o == nil || o .States == nil {
203+ return nil , false
204+ }
205+ return & o .States , true
206+ }
207+
208+ // HasStates returns a boolean if a field has been set.
209+ func (o * IssuesSearchRequestDataAttributes ) HasStates () bool {
210+ return o != nil && o .States != nil
211+ }
212+
213+ // SetStates gets a reference to the given []IssueState and assigns it to the States field.
214+ func (o * IssuesSearchRequestDataAttributes ) SetStates (v []IssueState ) {
215+ o .States = v
216+ }
217+
188218// GetTeamIds returns the TeamIds field value if set, zero value otherwise.
189219func (o * IssuesSearchRequestDataAttributes ) GetTeamIds () []uuid.UUID {
190220 if o == nil || o .TeamIds == nil {
@@ -281,6 +311,9 @@ func (o IssuesSearchRequestDataAttributes) MarshalJSON() ([]byte, error) {
281311 toSerialize ["persona" ] = o .Persona
282312 }
283313 toSerialize ["query" ] = o .Query
314+ if o .States != nil {
315+ toSerialize ["states" ] = o .States
316+ }
284317 if o .TeamIds != nil {
285318 toSerialize ["team_ids" ] = o .TeamIds
286319 }
@@ -303,6 +336,7 @@ func (o *IssuesSearchRequestDataAttributes) UnmarshalJSON(bytes []byte) (err err
303336 OrderBy * IssuesSearchRequestDataAttributesOrderBy `json:"order_by,omitempty"`
304337 Persona * IssuesSearchRequestDataAttributesPersona `json:"persona,omitempty"`
305338 Query * string `json:"query"`
339+ States []IssueState `json:"states,omitempty"`
306340 TeamIds []uuid.UUID `json:"team_ids,omitempty"`
307341 To * int64 `json:"to"`
308342 Track * IssuesSearchRequestDataAttributesTrack `json:"track,omitempty"`
@@ -321,7 +355,7 @@ func (o *IssuesSearchRequestDataAttributes) UnmarshalJSON(bytes []byte) (err err
321355 }
322356 additionalProperties := make (map [string ]interface {})
323357 if err = datadog .Unmarshal (bytes , & additionalProperties ); err == nil {
324- datadog .DeleteKeys (additionalProperties , & []string {"assignee_ids" , "from" , "order_by" , "persona" , "query" , "team_ids" , "to" , "track" })
358+ datadog .DeleteKeys (additionalProperties , & []string {"assignee_ids" , "from" , "order_by" , "persona" , "query" , "states" , " team_ids" , "to" , "track" })
325359 } else {
326360 return err
327361 }
@@ -340,6 +374,7 @@ func (o *IssuesSearchRequestDataAttributes) UnmarshalJSON(bytes []byte) (err err
340374 o .Persona = all .Persona
341375 }
342376 o .Query = * all .Query
377+ o .States = all .States
343378 o .TeamIds = all .TeamIds
344379 o .To = * all .To
345380 if all .Track != nil && ! all .Track .IsValid () {
0 commit comments