Skip to content

Commit a8c90c7

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 1dfb39b of spec repo
1 parent 2e642b3 commit a8c90c7

3 files changed

Lines changed: 110 additions & 2 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37856,16 +37856,28 @@ components:
3785637856
description: Identifier of the content for this interaction.
3785737857
example: "trace-abc-123"
3785837858
type: string
37859+
created_at:
37860+
description: Timestamp when the interaction was added to the queue.
37861+
example: "2024-01-15T10:30:00Z"
37862+
format: date-time
37863+
type: string
3785937864
id:
3786037865
description: Unique identifier of the interaction.
3786137866
example: "interaction-456"
3786237867
type: string
37868+
modified_at:
37869+
description: Timestamp when the interaction was last updated.
37870+
example: "2024-01-15T10:30:00Z"
37871+
format: date-time
37872+
type: string
3786337873
type:
3786437874
$ref: "#/components/schemas/LLMObsInteractionType"
3786537875
required:
3786637876
- id
3786737877
- type
3786837878
- content_id
37879+
- created_at
37880+
- modified_at
3786937881
- annotations
3787037882
type: object
3787137883
LLMObsAnnotatedInteractionsDataAttributesResponse:
@@ -38072,17 +38084,29 @@ components:
3807238084
description: Identifier of the content for this interaction.
3807338085
example: "trace-abc-123"
3807438086
type: string
38087+
created_at:
38088+
description: Timestamp when the interaction was added to the queue.
38089+
example: "2024-01-15T10:30:00Z"
38090+
format: date-time
38091+
type: string
3807538092
id:
3807638093
description: Unique identifier of the interaction.
3807738094
example: "00000000-0000-0000-0000-000000000000"
3807838095
type: string
38096+
modified_at:
38097+
description: Timestamp when the interaction was last updated.
38098+
example: "2024-01-15T10:30:00Z"
38099+
format: date-time
38100+
type: string
3807938101
type:
3808038102
$ref: "#/components/schemas/LLMObsInteractionType"
3808138103
required:
3808238104
- id
3808338105
- type
3808438106
- content_id
3808538107
- already_existed
38108+
- created_at
38109+
- modified_at
3808638110
type: object
3808738111
LLMObsAnnotationQueueInteractionsDataAttributesRequest:
3808838112
description: Attributes for adding interactions to an annotation queue.

lib/datadog_api_client/v2/models/llm_obs_annotated_interaction_item.rb

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,15 @@ class LLMObsAnnotatedInteractionItem
2727
# Identifier of the content for this interaction.
2828
attr_reader :content_id
2929

30+
# Timestamp when the interaction was added to the queue.
31+
attr_reader :created_at
32+
3033
# Unique identifier of the interaction.
3134
attr_reader :id
3235

36+
# Timestamp when the interaction was last updated.
37+
attr_reader :modified_at
38+
3339
# Type of interaction in an annotation queue.
3440
attr_reader :type
3541

@@ -41,7 +47,9 @@ def self.attribute_map
4147
{
4248
:'annotations' => :'annotations',
4349
:'content_id' => :'content_id',
50+
:'created_at' => :'created_at',
4451
:'id' => :'id',
52+
:'modified_at' => :'modified_at',
4553
:'type' => :'type'
4654
}
4755
end
@@ -52,7 +60,9 @@ def self.openapi_types
5260
{
5361
:'annotations' => :'Array<LLMObsAnnotationItem>',
5462
:'content_id' => :'String',
63+
:'created_at' => :'Time',
5564
:'id' => :'String',
65+
:'modified_at' => :'Time',
5666
:'type' => :'LLMObsInteractionType'
5767
}
5868
end
@@ -85,10 +95,18 @@ def initialize(attributes = {})
8595
self.content_id = attributes[:'content_id']
8696
end
8797

98+
if attributes.key?(:'created_at')
99+
self.created_at = attributes[:'created_at']
100+
end
101+
88102
if attributes.key?(:'id')
89103
self.id = attributes[:'id']
90104
end
91105

106+
if attributes.key?(:'modified_at')
107+
self.modified_at = attributes[:'modified_at']
108+
end
109+
92110
if attributes.key?(:'type')
93111
self.type = attributes[:'type']
94112
end
@@ -100,7 +118,9 @@ def initialize(attributes = {})
100118
def valid?
101119
return false if @annotations.nil?
102120
return false if @content_id.nil?
121+
return false if @created_at.nil?
103122
return false if @id.nil?
123+
return false if @modified_at.nil?
104124
return false if @type.nil?
105125
true
106126
end
@@ -125,6 +145,16 @@ def content_id=(content_id)
125145
@content_id = content_id
126146
end
127147

148+
# Custom attribute writer method with validation
149+
# @param created_at [Object] Object to be assigned
150+
# @!visibility private
151+
def created_at=(created_at)
152+
if created_at.nil?
153+
fail ArgumentError, 'invalid value for "created_at", created_at cannot be nil.'
154+
end
155+
@created_at = created_at
156+
end
157+
128158
# Custom attribute writer method with validation
129159
# @param id [Object] Object to be assigned
130160
# @!visibility private
@@ -135,6 +165,16 @@ def id=(id)
135165
@id = id
136166
end
137167

168+
# Custom attribute writer method with validation
169+
# @param modified_at [Object] Object to be assigned
170+
# @!visibility private
171+
def modified_at=(modified_at)
172+
if modified_at.nil?
173+
fail ArgumentError, 'invalid value for "modified_at", modified_at cannot be nil.'
174+
end
175+
@modified_at = modified_at
176+
end
177+
138178
# Custom attribute writer method with validation
139179
# @param type [Object] Object to be assigned
140180
# @!visibility private
@@ -173,7 +213,9 @@ def ==(o)
173213
self.class == o.class &&
174214
annotations == o.annotations &&
175215
content_id == o.content_id &&
216+
created_at == o.created_at &&
176217
id == o.id &&
218+
modified_at == o.modified_at &&
177219
type == o.type &&
178220
additional_properties == o.additional_properties
179221
end
@@ -182,7 +224,7 @@ def ==(o)
182224
# @return [Integer] Hash code
183225
# @!visibility private
184226
def hash
185-
[annotations, content_id, id, type, additional_properties].hash
227+
[annotations, content_id, created_at, id, modified_at, type, additional_properties].hash
186228
end
187229
end
188230
end

lib/datadog_api_client/v2/models/llm_obs_annotation_queue_interaction_response_item.rb

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,15 @@ class LLMObsAnnotationQueueInteractionResponseItem
2727
# Identifier of the content for this interaction.
2828
attr_reader :content_id
2929

30+
# Timestamp when the interaction was added to the queue.
31+
attr_reader :created_at
32+
3033
# Unique identifier of the interaction.
3134
attr_reader :id
3235

36+
# Timestamp when the interaction was last updated.
37+
attr_reader :modified_at
38+
3339
# Type of interaction in an annotation queue.
3440
attr_reader :type
3541

@@ -41,7 +47,9 @@ def self.attribute_map
4147
{
4248
:'already_existed' => :'already_existed',
4349
:'content_id' => :'content_id',
50+
:'created_at' => :'created_at',
4451
:'id' => :'id',
52+
:'modified_at' => :'modified_at',
4553
:'type' => :'type'
4654
}
4755
end
@@ -52,7 +60,9 @@ def self.openapi_types
5260
{
5361
:'already_existed' => :'Boolean',
5462
:'content_id' => :'String',
63+
:'created_at' => :'Time',
5564
:'id' => :'String',
65+
:'modified_at' => :'Time',
5666
:'type' => :'LLMObsInteractionType'
5767
}
5868
end
@@ -83,10 +93,18 @@ def initialize(attributes = {})
8393
self.content_id = attributes[:'content_id']
8494
end
8595

96+
if attributes.key?(:'created_at')
97+
self.created_at = attributes[:'created_at']
98+
end
99+
86100
if attributes.key?(:'id')
87101
self.id = attributes[:'id']
88102
end
89103

104+
if attributes.key?(:'modified_at')
105+
self.modified_at = attributes[:'modified_at']
106+
end
107+
90108
if attributes.key?(:'type')
91109
self.type = attributes[:'type']
92110
end
@@ -98,7 +116,9 @@ def initialize(attributes = {})
98116
def valid?
99117
return false if @already_existed.nil?
100118
return false if @content_id.nil?
119+
return false if @created_at.nil?
101120
return false if @id.nil?
121+
return false if @modified_at.nil?
102122
return false if @type.nil?
103123
true
104124
end
@@ -123,6 +143,16 @@ def content_id=(content_id)
123143
@content_id = content_id
124144
end
125145

146+
# Custom attribute writer method with validation
147+
# @param created_at [Object] Object to be assigned
148+
# @!visibility private
149+
def created_at=(created_at)
150+
if created_at.nil?
151+
fail ArgumentError, 'invalid value for "created_at", created_at cannot be nil.'
152+
end
153+
@created_at = created_at
154+
end
155+
126156
# Custom attribute writer method with validation
127157
# @param id [Object] Object to be assigned
128158
# @!visibility private
@@ -133,6 +163,16 @@ def id=(id)
133163
@id = id
134164
end
135165

166+
# Custom attribute writer method with validation
167+
# @param modified_at [Object] Object to be assigned
168+
# @!visibility private
169+
def modified_at=(modified_at)
170+
if modified_at.nil?
171+
fail ArgumentError, 'invalid value for "modified_at", modified_at cannot be nil.'
172+
end
173+
@modified_at = modified_at
174+
end
175+
136176
# Custom attribute writer method with validation
137177
# @param type [Object] Object to be assigned
138178
# @!visibility private
@@ -171,7 +211,9 @@ def ==(o)
171211
self.class == o.class &&
172212
already_existed == o.already_existed &&
173213
content_id == o.content_id &&
214+
created_at == o.created_at &&
174215
id == o.id &&
216+
modified_at == o.modified_at &&
175217
type == o.type &&
176218
additional_properties == o.additional_properties
177219
end
@@ -180,7 +222,7 @@ def ==(o)
180222
# @return [Integer] Hash code
181223
# @!visibility private
182224
def hash
183-
[already_existed, content_id, id, type, additional_properties].hash
225+
[already_existed, content_id, created_at, id, modified_at, type, additional_properties].hash
184226
end
185227
end
186228
end

0 commit comments

Comments
 (0)