33# Copyright 2019-Present Datadog, Inc.
44from __future__ import annotations
55
6- from typing import Union , TYPE_CHECKING
6+ from typing import List , Union , TYPE_CHECKING
77
88from datadog_api_client .model_utils import (
99 ModelNormal ,
1010 cached_property ,
1111 unset ,
1212 UnsetType ,
13+ UUID ,
1314)
1415
1516
2627
2728
2829class IssuesSearchRequestDataAttributes (ModelNormal ):
30+ validations = {
31+ "assignee_ids" : {
32+ "max_items" : 50 ,
33+ },
34+ "team_ids" : {
35+ "max_items" : 50 ,
36+ },
37+ }
38+
2939 @cached_property
3040 def openapi_types (_ ):
3141 from datadog_api_client .v2 .model .issues_search_request_data_attributes_order_by import (
@@ -39,19 +49,23 @@ def openapi_types(_):
3949 )
4050
4151 return {
52+ "assignee_ids" : ([UUID ],),
4253 "_from" : (int ,),
4354 "order_by" : (IssuesSearchRequestDataAttributesOrderBy ,),
4455 "persona" : (IssuesSearchRequestDataAttributesPersona ,),
4556 "query" : (str ,),
57+ "team_ids" : ([UUID ],),
4658 "to" : (int ,),
4759 "track" : (IssuesSearchRequestDataAttributesTrack ,),
4860 }
4961
5062 attribute_map = {
63+ "assignee_ids" : "assignee_ids" ,
5164 "_from" : "from" ,
5265 "order_by" : "order_by" ,
5366 "persona" : "persona" ,
5467 "query" : "query" ,
68+ "team_ids" : "team_ids" ,
5569 "to" : "to" ,
5670 "track" : "track" ,
5771 }
@@ -61,14 +75,19 @@ def __init__(
6175 _from : int ,
6276 query : str ,
6377 to : int ,
78+ assignee_ids : Union [List [UUID ], UnsetType ] = unset ,
6479 order_by : Union [IssuesSearchRequestDataAttributesOrderBy , UnsetType ] = unset ,
6580 persona : Union [IssuesSearchRequestDataAttributesPersona , UnsetType ] = unset ,
81+ team_ids : Union [List [UUID ], UnsetType ] = unset ,
6682 track : Union [IssuesSearchRequestDataAttributesTrack , UnsetType ] = unset ,
6783 ** kwargs ,
6884 ):
6985 """
7086 Object describing a search issue request.
7187
88+ :param assignee_ids: Filter issues by assignee IDs. Multiple values are combined with OR logic.
89+ :type assignee_ids: [UUID], optional
90+
7291 :param _from: Start date (inclusive) of the query in milliseconds since the Unix epoch.
7392 :type _from: int
7493
@@ -81,16 +100,23 @@ def __init__(
81100 :param query: Search query following the event search syntax.
82101 :type query: str
83102
103+ :param team_ids: Filter issues by team IDs. Multiple values are combined with OR logic.
104+ :type team_ids: [UUID], optional
105+
84106 :param to: End date (exclusive) of the query in milliseconds since the Unix epoch.
85107 :type to: int
86108
87109 :param track: Track of the events to query. Either track(s) or persona(s) must be specified.
88110 :type track: IssuesSearchRequestDataAttributesTrack, optional
89111 """
112+ if assignee_ids is not unset :
113+ kwargs ["assignee_ids" ] = assignee_ids
90114 if order_by is not unset :
91115 kwargs ["order_by" ] = order_by
92116 if persona is not unset :
93117 kwargs ["persona" ] = persona
118+ if team_ids is not unset :
119+ kwargs ["team_ids" ] = team_ids
94120 if track is not unset :
95121 kwargs ["track" ] = track
96122 super ().__init__ (kwargs )
0 commit comments