Skip to content

Commit 3aeb351

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit c6dc966 of spec repo
1 parent 2f923b3 commit 3aeb351

3 files changed

Lines changed: 142 additions & 2 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42392,16 +42392,28 @@ components:
4239242392
description: Upstream entity identifier supplied by the caller.
4239342393
example: "trace-abc-123"
4239442394
type: string
42395+
created_at:
42396+
description: Timestamp when the interaction was added to the queue.
42397+
example: "2024-01-15T10:30:00Z"
42398+
format: date-time
42399+
type: string
4239542400
id:
4239642401
description: Unique identifier of the interaction.
4239742402
example: "interaction-456"
4239842403
type: string
42404+
modified_at:
42405+
description: Timestamp when the interaction was last updated.
42406+
example: "2024-01-15T10:30:00Z"
42407+
format: date-time
42408+
type: string
4239942409
type:
4240042410
$ref: "#/components/schemas/LLMObsTraceInteractionType"
4240142411
required:
4240242412
- id
4240342413
- type
4240442414
- content_id
42415+
- created_at
42416+
- modified_at
4240542417
- annotations
4240642418
type: object
4240742419
LLMObsTraceInteractionItem:
@@ -42428,17 +42440,29 @@ components:
4242842440
description: Upstream entity identifier supplied by the caller.
4242942441
example: "trace-abc-123"
4243042442
type: string
42443+
created_at:
42444+
description: Timestamp when the interaction was added to the queue.
42445+
example: "2024-01-15T10:30:00Z"
42446+
format: date-time
42447+
type: string
4243142448
id:
4243242449
description: Unique identifier of the interaction.
4243342450
example: "00000000-0000-0000-0000-000000000000"
4243442451
type: string
42452+
modified_at:
42453+
description: Timestamp when the interaction was last updated.
42454+
example: "2024-01-15T10:30:00Z"
42455+
format: date-time
42456+
type: string
4243542457
type:
4243642458
$ref: "#/components/schemas/LLMObsTraceInteractionType"
4243742459
required:
4243842460
- id
4243942461
- type
4244042462
- content_id
4244142463
- already_existed
42464+
- created_at
42465+
- modified_at
4244242466
type: object
4244342467
LLMObsTraceInteractionType:
4244442468
description: Type of an upstream-entity interaction.

src/main/java/com/datadog/api/client/v2/model/LLMObsTraceAnnotatedInteractionItem.java

Lines changed: 59 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import com.fasterxml.jackson.annotation.JsonInclude;
1414
import com.fasterxml.jackson.annotation.JsonProperty;
1515
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
16+
import java.time.OffsetDateTime;
1617
import java.util.ArrayList;
1718
import java.util.HashMap;
1819
import java.util.List;
@@ -23,7 +24,9 @@
2324
@JsonPropertyOrder({
2425
LLMObsTraceAnnotatedInteractionItem.JSON_PROPERTY_ANNOTATIONS,
2526
LLMObsTraceAnnotatedInteractionItem.JSON_PROPERTY_CONTENT_ID,
27+
LLMObsTraceAnnotatedInteractionItem.JSON_PROPERTY_CREATED_AT,
2628
LLMObsTraceAnnotatedInteractionItem.JSON_PROPERTY_ID,
29+
LLMObsTraceAnnotatedInteractionItem.JSON_PROPERTY_MODIFIED_AT,
2730
LLMObsTraceAnnotatedInteractionItem.JSON_PROPERTY_TYPE
2831
})
2932
@jakarta.annotation.Generated(
@@ -36,9 +39,15 @@ public class LLMObsTraceAnnotatedInteractionItem {
3639
public static final String JSON_PROPERTY_CONTENT_ID = "content_id";
3740
private String contentId;
3841

42+
public static final String JSON_PROPERTY_CREATED_AT = "created_at";
43+
private OffsetDateTime createdAt;
44+
3945
public static final String JSON_PROPERTY_ID = "id";
4046
private String id;
4147

48+
public static final String JSON_PROPERTY_MODIFIED_AT = "modified_at";
49+
private OffsetDateTime modifiedAt;
50+
4251
public static final String JSON_PROPERTY_TYPE = "type";
4352
private LLMObsTraceInteractionType type;
4453

@@ -49,11 +58,15 @@ public LLMObsTraceAnnotatedInteractionItem(
4958
@JsonProperty(required = true, value = JSON_PROPERTY_ANNOTATIONS)
5059
List<LLMObsAnnotationItem> annotations,
5160
@JsonProperty(required = true, value = JSON_PROPERTY_CONTENT_ID) String contentId,
61+
@JsonProperty(required = true, value = JSON_PROPERTY_CREATED_AT) OffsetDateTime createdAt,
5262
@JsonProperty(required = true, value = JSON_PROPERTY_ID) String id,
63+
@JsonProperty(required = true, value = JSON_PROPERTY_MODIFIED_AT) OffsetDateTime modifiedAt,
5364
@JsonProperty(required = true, value = JSON_PROPERTY_TYPE) LLMObsTraceInteractionType type) {
5465
this.annotations = annotations;
5566
this.contentId = contentId;
67+
this.createdAt = createdAt;
5668
this.id = id;
69+
this.modifiedAt = modifiedAt;
5770
this.type = type;
5871
this.unparsed |= !type.isValid();
5972
}
@@ -108,6 +121,26 @@ public void setContentId(String contentId) {
108121
this.contentId = contentId;
109122
}
110123

124+
public LLMObsTraceAnnotatedInteractionItem createdAt(OffsetDateTime createdAt) {
125+
this.createdAt = createdAt;
126+
return this;
127+
}
128+
129+
/**
130+
* Timestamp when the interaction was added to the queue.
131+
*
132+
* @return createdAt
133+
*/
134+
@JsonProperty(JSON_PROPERTY_CREATED_AT)
135+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
136+
public OffsetDateTime getCreatedAt() {
137+
return createdAt;
138+
}
139+
140+
public void setCreatedAt(OffsetDateTime createdAt) {
141+
this.createdAt = createdAt;
142+
}
143+
111144
public LLMObsTraceAnnotatedInteractionItem id(String id) {
112145
this.id = id;
113146
return this;
@@ -128,6 +161,26 @@ public void setId(String id) {
128161
this.id = id;
129162
}
130163

164+
public LLMObsTraceAnnotatedInteractionItem modifiedAt(OffsetDateTime modifiedAt) {
165+
this.modifiedAt = modifiedAt;
166+
return this;
167+
}
168+
169+
/**
170+
* Timestamp when the interaction was last updated.
171+
*
172+
* @return modifiedAt
173+
*/
174+
@JsonProperty(JSON_PROPERTY_MODIFIED_AT)
175+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
176+
public OffsetDateTime getModifiedAt() {
177+
return modifiedAt;
178+
}
179+
180+
public void setModifiedAt(OffsetDateTime modifiedAt) {
181+
this.modifiedAt = modifiedAt;
182+
}
183+
131184
public LLMObsTraceAnnotatedInteractionItem type(LLMObsTraceInteractionType type) {
132185
this.type = type;
133186
this.unparsed |= !type.isValid();
@@ -211,15 +264,18 @@ public boolean equals(Object o) {
211264
(LLMObsTraceAnnotatedInteractionItem) o;
212265
return Objects.equals(this.annotations, llmObsTraceAnnotatedInteractionItem.annotations)
213266
&& Objects.equals(this.contentId, llmObsTraceAnnotatedInteractionItem.contentId)
267+
&& Objects.equals(this.createdAt, llmObsTraceAnnotatedInteractionItem.createdAt)
214268
&& Objects.equals(this.id, llmObsTraceAnnotatedInteractionItem.id)
269+
&& Objects.equals(this.modifiedAt, llmObsTraceAnnotatedInteractionItem.modifiedAt)
215270
&& Objects.equals(this.type, llmObsTraceAnnotatedInteractionItem.type)
216271
&& Objects.equals(
217272
this.additionalProperties, llmObsTraceAnnotatedInteractionItem.additionalProperties);
218273
}
219274

220275
@Override
221276
public int hashCode() {
222-
return Objects.hash(annotations, contentId, id, type, additionalProperties);
277+
return Objects.hash(
278+
annotations, contentId, createdAt, id, modifiedAt, type, additionalProperties);
223279
}
224280

225281
@Override
@@ -228,7 +284,9 @@ public String toString() {
228284
sb.append("class LLMObsTraceAnnotatedInteractionItem {\n");
229285
sb.append(" annotations: ").append(toIndentedString(annotations)).append("\n");
230286
sb.append(" contentId: ").append(toIndentedString(contentId)).append("\n");
287+
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
231288
sb.append(" id: ").append(toIndentedString(id)).append("\n");
289+
sb.append(" modifiedAt: ").append(toIndentedString(modifiedAt)).append("\n");
232290
sb.append(" type: ").append(toIndentedString(type)).append("\n");
233291
sb.append(" additionalProperties: ")
234292
.append(toIndentedString(additionalProperties))

src/main/java/com/datadog/api/client/v2/model/LLMObsTraceInteractionResponseItem.java

Lines changed: 59 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import com.fasterxml.jackson.annotation.JsonInclude;
1414
import com.fasterxml.jackson.annotation.JsonProperty;
1515
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
16+
import java.time.OffsetDateTime;
1617
import java.util.HashMap;
1718
import java.util.Map;
1819
import java.util.Objects;
@@ -21,7 +22,9 @@
2122
@JsonPropertyOrder({
2223
LLMObsTraceInteractionResponseItem.JSON_PROPERTY_ALREADY_EXISTED,
2324
LLMObsTraceInteractionResponseItem.JSON_PROPERTY_CONTENT_ID,
25+
LLMObsTraceInteractionResponseItem.JSON_PROPERTY_CREATED_AT,
2426
LLMObsTraceInteractionResponseItem.JSON_PROPERTY_ID,
27+
LLMObsTraceInteractionResponseItem.JSON_PROPERTY_MODIFIED_AT,
2528
LLMObsTraceInteractionResponseItem.JSON_PROPERTY_TYPE
2629
})
2730
@jakarta.annotation.Generated(
@@ -34,9 +37,15 @@ public class LLMObsTraceInteractionResponseItem {
3437
public static final String JSON_PROPERTY_CONTENT_ID = "content_id";
3538
private String contentId;
3639

40+
public static final String JSON_PROPERTY_CREATED_AT = "created_at";
41+
private OffsetDateTime createdAt;
42+
3743
public static final String JSON_PROPERTY_ID = "id";
3844
private String id;
3945

46+
public static final String JSON_PROPERTY_MODIFIED_AT = "modified_at";
47+
private OffsetDateTime modifiedAt;
48+
4049
public static final String JSON_PROPERTY_TYPE = "type";
4150
private LLMObsTraceInteractionType type;
4251

@@ -46,11 +55,15 @@ public LLMObsTraceInteractionResponseItem() {}
4655
public LLMObsTraceInteractionResponseItem(
4756
@JsonProperty(required = true, value = JSON_PROPERTY_ALREADY_EXISTED) Boolean alreadyExisted,
4857
@JsonProperty(required = true, value = JSON_PROPERTY_CONTENT_ID) String contentId,
58+
@JsonProperty(required = true, value = JSON_PROPERTY_CREATED_AT) OffsetDateTime createdAt,
4959
@JsonProperty(required = true, value = JSON_PROPERTY_ID) String id,
60+
@JsonProperty(required = true, value = JSON_PROPERTY_MODIFIED_AT) OffsetDateTime modifiedAt,
5061
@JsonProperty(required = true, value = JSON_PROPERTY_TYPE) LLMObsTraceInteractionType type) {
5162
this.alreadyExisted = alreadyExisted;
5263
this.contentId = contentId;
64+
this.createdAt = createdAt;
5365
this.id = id;
66+
this.modifiedAt = modifiedAt;
5467
this.type = type;
5568
this.unparsed |= !type.isValid();
5669
}
@@ -95,6 +108,26 @@ public void setContentId(String contentId) {
95108
this.contentId = contentId;
96109
}
97110

111+
public LLMObsTraceInteractionResponseItem createdAt(OffsetDateTime createdAt) {
112+
this.createdAt = createdAt;
113+
return this;
114+
}
115+
116+
/**
117+
* Timestamp when the interaction was added to the queue.
118+
*
119+
* @return createdAt
120+
*/
121+
@JsonProperty(JSON_PROPERTY_CREATED_AT)
122+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
123+
public OffsetDateTime getCreatedAt() {
124+
return createdAt;
125+
}
126+
127+
public void setCreatedAt(OffsetDateTime createdAt) {
128+
this.createdAt = createdAt;
129+
}
130+
98131
public LLMObsTraceInteractionResponseItem id(String id) {
99132
this.id = id;
100133
return this;
@@ -115,6 +148,26 @@ public void setId(String id) {
115148
this.id = id;
116149
}
117150

151+
public LLMObsTraceInteractionResponseItem modifiedAt(OffsetDateTime modifiedAt) {
152+
this.modifiedAt = modifiedAt;
153+
return this;
154+
}
155+
156+
/**
157+
* Timestamp when the interaction was last updated.
158+
*
159+
* @return modifiedAt
160+
*/
161+
@JsonProperty(JSON_PROPERTY_MODIFIED_AT)
162+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
163+
public OffsetDateTime getModifiedAt() {
164+
return modifiedAt;
165+
}
166+
167+
public void setModifiedAt(OffsetDateTime modifiedAt) {
168+
this.modifiedAt = modifiedAt;
169+
}
170+
118171
public LLMObsTraceInteractionResponseItem type(LLMObsTraceInteractionType type) {
119172
this.type = type;
120173
this.unparsed |= !type.isValid();
@@ -198,15 +251,18 @@ public boolean equals(Object o) {
198251
(LLMObsTraceInteractionResponseItem) o;
199252
return Objects.equals(this.alreadyExisted, llmObsTraceInteractionResponseItem.alreadyExisted)
200253
&& Objects.equals(this.contentId, llmObsTraceInteractionResponseItem.contentId)
254+
&& Objects.equals(this.createdAt, llmObsTraceInteractionResponseItem.createdAt)
201255
&& Objects.equals(this.id, llmObsTraceInteractionResponseItem.id)
256+
&& Objects.equals(this.modifiedAt, llmObsTraceInteractionResponseItem.modifiedAt)
202257
&& Objects.equals(this.type, llmObsTraceInteractionResponseItem.type)
203258
&& Objects.equals(
204259
this.additionalProperties, llmObsTraceInteractionResponseItem.additionalProperties);
205260
}
206261

207262
@Override
208263
public int hashCode() {
209-
return Objects.hash(alreadyExisted, contentId, id, type, additionalProperties);
264+
return Objects.hash(
265+
alreadyExisted, contentId, createdAt, id, modifiedAt, type, additionalProperties);
210266
}
211267

212268
@Override
@@ -215,7 +271,9 @@ public String toString() {
215271
sb.append("class LLMObsTraceInteractionResponseItem {\n");
216272
sb.append(" alreadyExisted: ").append(toIndentedString(alreadyExisted)).append("\n");
217273
sb.append(" contentId: ").append(toIndentedString(contentId)).append("\n");
274+
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
218275
sb.append(" id: ").append(toIndentedString(id)).append("\n");
276+
sb.append(" modifiedAt: ").append(toIndentedString(modifiedAt)).append("\n");
219277
sb.append(" type: ").append(toIndentedString(type)).append("\n");
220278
sb.append(" additionalProperties: ")
221279
.append(toIndentedString(additionalProperties))

0 commit comments

Comments
 (0)