@@ -36,6 +36,9 @@ class IssuesSearchRequestDataAttributes
3636 # Search query following the event search syntax.
3737 attr_reader :query
3838
39+ # Filter issues by state. Multiple values are combined with OR logic.
40+ attr_reader :states
41+
3942 # Filter issues by team IDs. Multiple values are combined with OR logic.
4043 attr_reader :team_ids
4144
@@ -56,6 +59,7 @@ def self.attribute_map
5659 :'order_by' => :'order_by' ,
5760 :'persona' => :'persona' ,
5861 :'query' => :'query' ,
62+ :'states' => :'states' ,
5963 :'team_ids' => :'team_ids' ,
6064 :'to' => :'to' ,
6165 :'track' => :'track'
@@ -71,6 +75,7 @@ def self.openapi_types
7175 :'order_by' => :'IssuesSearchRequestDataAttributesOrderBy' ,
7276 :'persona' => :'IssuesSearchRequestDataAttributesPersona' ,
7377 :'query' => :'String' ,
78+ :'states' => :'Array<IssueState>' ,
7479 :'team_ids' => :'Array<UUID>' ,
7580 :'to' => :'Integer' ,
7681 :'track' => :'IssuesSearchRequestDataAttributesTrack'
@@ -117,6 +122,12 @@ def initialize(attributes = {})
117122 self . query = attributes [ :'query' ]
118123 end
119124
125+ if attributes . key? ( :'states' )
126+ if ( value = attributes [ :'states' ] ) . is_a? ( Array )
127+ self . states = value
128+ end
129+ end
130+
120131 if attributes . key? ( :'team_ids' )
121132 if ( value = attributes [ :'team_ids' ] ) . is_a? ( Array )
122133 self . team_ids = value
@@ -139,6 +150,7 @@ def valid?
139150 return false if !@assignee_ids . nil? && @assignee_ids . length > 50
140151 return false if @from . nil?
141152 return false if @query . nil?
153+ return false if !@states . nil? && @states . length > 20
142154 return false if !@team_ids . nil? && @team_ids . length > 50
143155 return false if @to . nil?
144156 true
@@ -174,6 +186,16 @@ def query=(query)
174186 @query = query
175187 end
176188
189+ # Custom attribute writer method with validation
190+ # @param states [Object] Object to be assigned
191+ # @!visibility private
192+ def states = ( states )
193+ if !states . nil? && states . length > 20
194+ fail ArgumentError , 'invalid value for "states", number of items must be less than or equal to 20.'
195+ end
196+ @states = states
197+ end
198+
177199 # Custom attribute writer method with validation
178200 # @param team_ids [Object] Object to be assigned
179201 # @!visibility private
@@ -225,6 +247,7 @@ def ==(o)
225247 order_by == o . order_by &&
226248 persona == o . persona &&
227249 query == o . query &&
250+ states == o . states &&
228251 team_ids == o . team_ids &&
229252 to == o . to &&
230253 track == o . track &&
@@ -235,7 +258,7 @@ def ==(o)
235258 # @return [Integer] Hash code
236259 # @!visibility private
237260 def hash
238- [ assignee_ids , from , order_by , persona , query , team_ids , to , track , additional_properties ] . hash
261+ [ assignee_ids , from , order_by , persona , query , states , team_ids , to , track , additional_properties ] . hash
239262 end
240263 end
241264end
0 commit comments