Skip to content

Commit c832f0e

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 0230985 of spec repo
1 parent af8c1d7 commit c832f0e

2 files changed

Lines changed: 65 additions & 1 deletion

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

lib/datadog_api_client/v2/models/issues_search_request_data_attributes.rb

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ module DatadogAPIClient::V2
2121
class IssuesSearchRequestDataAttributes
2222
include BaseGenericModel
2323

24+
# Filter issues by assignee IDs. Multiple values are combined with OR logic.
25+
attr_reader :assignee_ids
26+
2427
# Start date (inclusive) of the query in milliseconds since the Unix epoch.
2528
attr_reader :from
2629

@@ -33,6 +36,9 @@ class IssuesSearchRequestDataAttributes
3336
# Search query following the event search syntax.
3437
attr_reader :query
3538

39+
# Filter issues by team IDs. Multiple values are combined with OR logic.
40+
attr_reader :team_ids
41+
3642
# End date (exclusive) of the query in milliseconds since the Unix epoch.
3743
attr_reader :to
3844

@@ -45,10 +51,12 @@ class IssuesSearchRequestDataAttributes
4551
# @!visibility private
4652
def self.attribute_map
4753
{
54+
:'assignee_ids' => :'assignee_ids',
4855
:'from' => :'from',
4956
:'order_by' => :'order_by',
5057
:'persona' => :'persona',
5158
:'query' => :'query',
59+
:'team_ids' => :'team_ids',
5260
:'to' => :'to',
5361
:'track' => :'track'
5462
}
@@ -58,10 +66,12 @@ def self.attribute_map
5866
# @!visibility private
5967
def self.openapi_types
6068
{
69+
:'assignee_ids' => :'Array<UUID>',
6170
:'from' => :'Integer',
6271
:'order_by' => :'IssuesSearchRequestDataAttributesOrderBy',
6372
:'persona' => :'IssuesSearchRequestDataAttributesPersona',
6473
:'query' => :'String',
74+
:'team_ids' => :'Array<UUID>',
6575
:'to' => :'Integer',
6676
:'track' => :'IssuesSearchRequestDataAttributesTrack'
6777
}
@@ -85,6 +95,12 @@ def initialize(attributes = {})
8595
end
8696
}
8797

98+
if attributes.key?(:'assignee_ids')
99+
if (value = attributes[:'assignee_ids']).is_a?(Array)
100+
self.assignee_ids = value
101+
end
102+
end
103+
88104
if attributes.key?(:'from')
89105
self.from = attributes[:'from']
90106
end
@@ -101,6 +117,12 @@ def initialize(attributes = {})
101117
self.query = attributes[:'query']
102118
end
103119

120+
if attributes.key?(:'team_ids')
121+
if (value = attributes[:'team_ids']).is_a?(Array)
122+
self.team_ids = value
123+
end
124+
end
125+
104126
if attributes.key?(:'to')
105127
self.to = attributes[:'to']
106128
end
@@ -114,12 +136,24 @@ def initialize(attributes = {})
114136
# @return true if the model is valid
115137
# @!visibility private
116138
def valid?
139+
return false if !@assignee_ids.nil? && @assignee_ids.length > 50
117140
return false if @from.nil?
118141
return false if @query.nil?
142+
return false if !@team_ids.nil? && @team_ids.length > 50
119143
return false if @to.nil?
120144
true
121145
end
122146

147+
# Custom attribute writer method with validation
148+
# @param assignee_ids [Object] Object to be assigned
149+
# @!visibility private
150+
def assignee_ids=(assignee_ids)
151+
if !assignee_ids.nil? && assignee_ids.length > 50
152+
fail ArgumentError, 'invalid value for "assignee_ids", number of items must be less than or equal to 50.'
153+
end
154+
@assignee_ids = assignee_ids
155+
end
156+
123157
# Custom attribute writer method with validation
124158
# @param from [Object] Object to be assigned
125159
# @!visibility private
@@ -140,6 +174,16 @@ def query=(query)
140174
@query = query
141175
end
142176

177+
# Custom attribute writer method with validation
178+
# @param team_ids [Object] Object to be assigned
179+
# @!visibility private
180+
def team_ids=(team_ids)
181+
if !team_ids.nil? && team_ids.length > 50
182+
fail ArgumentError, 'invalid value for "team_ids", number of items must be less than or equal to 50.'
183+
end
184+
@team_ids = team_ids
185+
end
186+
143187
# Custom attribute writer method with validation
144188
# @param to [Object] Object to be assigned
145189
# @!visibility private
@@ -176,10 +220,12 @@ def to_hash
176220
def ==(o)
177221
return true if self.equal?(o)
178222
self.class == o.class &&
223+
assignee_ids == o.assignee_ids &&
179224
from == o.from &&
180225
order_by == o.order_by &&
181226
persona == o.persona &&
182227
query == o.query &&
228+
team_ids == o.team_ids &&
183229
to == o.to &&
184230
track == o.track &&
185231
additional_properties == o.additional_properties
@@ -189,7 +235,7 @@ def ==(o)
189235
# @return [Integer] Hash code
190236
# @!visibility private
191237
def hash
192-
[from, order_by, persona, query, to, track, additional_properties].hash
238+
[assignee_ids, from, order_by, persona, query, team_ids, to, track, additional_properties].hash
193239
end
194240
end
195241
end

0 commit comments

Comments
 (0)