Skip to content

Commit 60ea368

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 0230985 of spec repo
1 parent 333aa2a commit 60ea368

2 files changed

Lines changed: 97 additions & 7 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35379,6 +35379,15 @@ components:
3537935379
IssuesSearchRequestDataAttributes:
3538035380
description: Object describing a search issue request.
3538135381
properties:
35382+
assignee_ids:
35383+
description: Filter issues by assignee IDs. Multiple values are combined with OR logic.
35384+
example:
35385+
- "00000000-0000-0000-0000-000000000001"
35386+
items:
35387+
format: uuid
35388+
type: string
35389+
maxItems: 50
35390+
type: array
3538235391
from:
3538335392
description: Start date (inclusive) of the query in milliseconds since the Unix epoch.
3538435393
example: 1671612804000
@@ -35392,6 +35401,15 @@ components:
3539235401
description: Search query following the event search syntax.
3539335402
example: "service:orders-* AND @language:go"
3539435403
type: string
35404+
team_ids:
35405+
description: Filter issues by team IDs. Multiple values are combined with OR logic.
35406+
example:
35407+
- "00000000-0000-0000-0000-000000000002"
35408+
items:
35409+
format: uuid
35410+
type: string
35411+
maxItems: 50
35412+
type: array
3539535413
to:
3539635414
description: End date (exclusive) of the query in milliseconds since the Unix epoch.
3539735415
example: 1671620004000

api/datadogV2/model_issues_search_request_data_attributes.go

Lines changed: 79 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,15 @@ package datadogV2
77
import (
88
"fmt"
99

10+
"github.com/google/uuid"
11+
1012
"github.com/DataDog/datadog-api-client-go/v2/api/datadog"
1113
)
1214

1315
// IssuesSearchRequestDataAttributes Object describing a search issue request.
1416
type IssuesSearchRequestDataAttributes struct {
17+
// Filter issues by assignee IDs. Multiple values are combined with OR logic.
18+
AssigneeIds []uuid.UUID `json:"assignee_ids,omitempty"`
1519
// Start date (inclusive) of the query in milliseconds since the Unix epoch.
1620
From int64 `json:"from"`
1721
// The attribute to sort the search results by.
@@ -20,6 +24,8 @@ type IssuesSearchRequestDataAttributes struct {
2024
Persona *IssuesSearchRequestDataAttributesPersona `json:"persona,omitempty"`
2125
// Search query following the event search syntax.
2226
Query string `json:"query"`
27+
// Filter issues by team IDs. Multiple values are combined with OR logic.
28+
TeamIds []uuid.UUID `json:"team_ids,omitempty"`
2329
// End date (exclusive) of the query in milliseconds since the Unix epoch.
2430
To int64 `json:"to"`
2531
// Track of the events to query. Either track(s) or persona(s) must be specified.
@@ -49,6 +55,34 @@ func NewIssuesSearchRequestDataAttributesWithDefaults() *IssuesSearchRequestData
4955
return &this
5056
}
5157

58+
// GetAssigneeIds returns the AssigneeIds field value if set, zero value otherwise.
59+
func (o *IssuesSearchRequestDataAttributes) GetAssigneeIds() []uuid.UUID {
60+
if o == nil || o.AssigneeIds == nil {
61+
var ret []uuid.UUID
62+
return ret
63+
}
64+
return o.AssigneeIds
65+
}
66+
67+
// GetAssigneeIdsOk returns a tuple with the AssigneeIds field value if set, nil otherwise
68+
// and a boolean to check if the value has been set.
69+
func (o *IssuesSearchRequestDataAttributes) GetAssigneeIdsOk() (*[]uuid.UUID, bool) {
70+
if o == nil || o.AssigneeIds == nil {
71+
return nil, false
72+
}
73+
return &o.AssigneeIds, true
74+
}
75+
76+
// HasAssigneeIds returns a boolean if a field has been set.
77+
func (o *IssuesSearchRequestDataAttributes) HasAssigneeIds() bool {
78+
return o != nil && o.AssigneeIds != nil
79+
}
80+
81+
// SetAssigneeIds gets a reference to the given []uuid.UUID and assigns it to the AssigneeIds field.
82+
func (o *IssuesSearchRequestDataAttributes) SetAssigneeIds(v []uuid.UUID) {
83+
o.AssigneeIds = v
84+
}
85+
5286
// GetFrom returns the From field value.
5387
func (o *IssuesSearchRequestDataAttributes) GetFrom() int64 {
5488
if o == nil {
@@ -151,6 +185,34 @@ func (o *IssuesSearchRequestDataAttributes) SetQuery(v string) {
151185
o.Query = v
152186
}
153187

188+
// GetTeamIds returns the TeamIds field value if set, zero value otherwise.
189+
func (o *IssuesSearchRequestDataAttributes) GetTeamIds() []uuid.UUID {
190+
if o == nil || o.TeamIds == nil {
191+
var ret []uuid.UUID
192+
return ret
193+
}
194+
return o.TeamIds
195+
}
196+
197+
// GetTeamIdsOk returns a tuple with the TeamIds field value if set, nil otherwise
198+
// and a boolean to check if the value has been set.
199+
func (o *IssuesSearchRequestDataAttributes) GetTeamIdsOk() (*[]uuid.UUID, bool) {
200+
if o == nil || o.TeamIds == nil {
201+
return nil, false
202+
}
203+
return &o.TeamIds, true
204+
}
205+
206+
// HasTeamIds returns a boolean if a field has been set.
207+
func (o *IssuesSearchRequestDataAttributes) HasTeamIds() bool {
208+
return o != nil && o.TeamIds != nil
209+
}
210+
211+
// SetTeamIds gets a reference to the given []uuid.UUID and assigns it to the TeamIds field.
212+
func (o *IssuesSearchRequestDataAttributes) SetTeamIds(v []uuid.UUID) {
213+
o.TeamIds = v
214+
}
215+
154216
// GetTo returns the To field value.
155217
func (o *IssuesSearchRequestDataAttributes) GetTo() int64 {
156218
if o == nil {
@@ -208,6 +270,9 @@ func (o IssuesSearchRequestDataAttributes) MarshalJSON() ([]byte, error) {
208270
if o.UnparsedObject != nil {
209271
return datadog.Marshal(o.UnparsedObject)
210272
}
273+
if o.AssigneeIds != nil {
274+
toSerialize["assignee_ids"] = o.AssigneeIds
275+
}
211276
toSerialize["from"] = o.From
212277
if o.OrderBy != nil {
213278
toSerialize["order_by"] = o.OrderBy
@@ -216,6 +281,9 @@ func (o IssuesSearchRequestDataAttributes) MarshalJSON() ([]byte, error) {
216281
toSerialize["persona"] = o.Persona
217282
}
218283
toSerialize["query"] = o.Query
284+
if o.TeamIds != nil {
285+
toSerialize["team_ids"] = o.TeamIds
286+
}
219287
toSerialize["to"] = o.To
220288
if o.Track != nil {
221289
toSerialize["track"] = o.Track
@@ -230,12 +298,14 @@ func (o IssuesSearchRequestDataAttributes) MarshalJSON() ([]byte, error) {
230298
// UnmarshalJSON deserializes the given payload.
231299
func (o *IssuesSearchRequestDataAttributes) UnmarshalJSON(bytes []byte) (err error) {
232300
all := struct {
233-
From *int64 `json:"from"`
234-
OrderBy *IssuesSearchRequestDataAttributesOrderBy `json:"order_by,omitempty"`
235-
Persona *IssuesSearchRequestDataAttributesPersona `json:"persona,omitempty"`
236-
Query *string `json:"query"`
237-
To *int64 `json:"to"`
238-
Track *IssuesSearchRequestDataAttributesTrack `json:"track,omitempty"`
301+
AssigneeIds []uuid.UUID `json:"assignee_ids,omitempty"`
302+
From *int64 `json:"from"`
303+
OrderBy *IssuesSearchRequestDataAttributesOrderBy `json:"order_by,omitempty"`
304+
Persona *IssuesSearchRequestDataAttributesPersona `json:"persona,omitempty"`
305+
Query *string `json:"query"`
306+
TeamIds []uuid.UUID `json:"team_ids,omitempty"`
307+
To *int64 `json:"to"`
308+
Track *IssuesSearchRequestDataAttributesTrack `json:"track,omitempty"`
239309
}{}
240310
if err = datadog.Unmarshal(bytes, &all); err != nil {
241311
return datadog.Unmarshal(bytes, &o.UnparsedObject)
@@ -251,12 +321,13 @@ func (o *IssuesSearchRequestDataAttributes) UnmarshalJSON(bytes []byte) (err err
251321
}
252322
additionalProperties := make(map[string]interface{})
253323
if err = datadog.Unmarshal(bytes, &additionalProperties); err == nil {
254-
datadog.DeleteKeys(additionalProperties, &[]string{"from", "order_by", "persona", "query", "to", "track"})
324+
datadog.DeleteKeys(additionalProperties, &[]string{"assignee_ids", "from", "order_by", "persona", "query", "team_ids", "to", "track"})
255325
} else {
256326
return err
257327
}
258328

259329
hasInvalidField := false
330+
o.AssigneeIds = all.AssigneeIds
260331
o.From = *all.From
261332
if all.OrderBy != nil && !all.OrderBy.IsValid() {
262333
hasInvalidField = true
@@ -269,6 +340,7 @@ func (o *IssuesSearchRequestDataAttributes) UnmarshalJSON(bytes []byte) (err err
269340
o.Persona = all.Persona
270341
}
271342
o.Query = *all.Query
343+
o.TeamIds = all.TeamIds
272344
o.To = *all.To
273345
if all.Track != nil && !all.Track.IsValid() {
274346
hasInvalidField = true

0 commit comments

Comments
 (0)