Skip to content

Commit e0aede1

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 5d6481a of spec repo
1 parent 3007720 commit e0aede1

159 files changed

Lines changed: 2989 additions & 224 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.generated-info

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"spec_repo_commit": "d02c8a3",
3-
"generated": "2025-08-08 12:08:35.449"
2+
"spec_repo_commit": "5d6481a",
3+
"generated": "2025-08-12 11:14:36.625"
44
}

.generator/schemas/v2/openapi.yaml

Lines changed: 176 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7280,6 +7280,35 @@ components:
72807280
type:
72817281
$ref: '#/components/schemas/CaseType'
72827282
type: object
7283+
CaseComment:
7284+
description: Case comment
7285+
properties:
7286+
attributes:
7287+
$ref: '#/components/schemas/CaseCommentAttributes'
7288+
type:
7289+
$ref: '#/components/schemas/CaseResourceType'
7290+
required:
7291+
- attributes
7292+
- type
7293+
type: object
7294+
CaseCommentAttributes:
7295+
description: Case comment attributes
7296+
properties:
7297+
comment:
7298+
description: The `CaseCommentAttributes` `message`.
7299+
example: This is my comment !
7300+
type: string
7301+
required:
7302+
- comment
7303+
type: object
7304+
CaseCommentRequest:
7305+
description: Case comment request
7306+
properties:
7307+
data:
7308+
$ref: '#/components/schemas/CaseComment'
7309+
required:
7310+
- data
7311+
type: object
72837312
CaseCreate:
72847313
description: Case creation data
72857314
properties:
@@ -42538,6 +42567,120 @@ components:
4253842567
- time_zone
4253942568
- restrictions
4254042569
type: object
42570+
TimelineCell:
42571+
description: timeline cell
42572+
properties:
42573+
author:
42574+
$ref: '#/components/schemas/TimelineCellAuthor'
42575+
cell_content:
42576+
$ref: '#/components/schemas/TimelineCellContent'
42577+
created_at:
42578+
description: Timestamp of when the cell was created
42579+
format: date-time
42580+
readOnly: true
42581+
type: string
42582+
deleted_at:
42583+
description: Timestamp of when the cell was deleted
42584+
format: date-time
42585+
readOnly: true
42586+
type: string
42587+
modified_at:
42588+
description: Timestamp of when the cell was last modified
42589+
format: date-time
42590+
readOnly: true
42591+
type: string
42592+
type:
42593+
$ref: '#/components/schemas/TimelineCellType'
42594+
type: object
42595+
TimelineCellAuthor:
42596+
description: author of the timeline cell
42597+
oneOf:
42598+
- $ref: '#/components/schemas/TimelineCellAuthorUser'
42599+
TimelineCellAuthorUser:
42600+
description: timeline cell user author
42601+
properties:
42602+
content:
42603+
$ref: '#/components/schemas/TimelineCellAuthorUserContent'
42604+
type:
42605+
$ref: '#/components/schemas/TimelineCellAuthorUserType'
42606+
type: object
42607+
TimelineCellAuthorUserContent:
42608+
description: user author content.
42609+
properties:
42610+
email:
42611+
description: user email
42612+
type: string
42613+
handle:
42614+
description: user handle
42615+
type: string
42616+
id:
42617+
description: user UUID
42618+
type: string
42619+
name:
42620+
description: user name
42621+
type: string
42622+
type: object
42623+
TimelineCellAuthorUserType:
42624+
description: user author type.
42625+
enum:
42626+
- USER
42627+
example: USER
42628+
type: string
42629+
x-enum-varnames:
42630+
- USER
42631+
TimelineCellContent:
42632+
description: timeline cell content
42633+
oneOf:
42634+
- $ref: '#/components/schemas/TimelineCellContentComment'
42635+
TimelineCellContentComment:
42636+
description: comment content
42637+
properties:
42638+
message:
42639+
description: comment message
42640+
type: string
42641+
type: object
42642+
TimelineCellResource:
42643+
description: Timeline cell JSON:API resource
42644+
properties:
42645+
attributes:
42646+
$ref: '#/components/schemas/TimelineCell'
42647+
id:
42648+
description: Timeline cell's identifier
42649+
example: aeadc05e-98a8-11ec-ac2c-da7ad0900001
42650+
type: string
42651+
type:
42652+
$ref: '#/components/schemas/TimelineCellResourceType'
42653+
required:
42654+
- id
42655+
- type
42656+
- attributes
42657+
type: object
42658+
TimelineCellResourceType:
42659+
default: timeline_cell
42660+
description: Timeline cell JSON:API resource type
42661+
enum:
42662+
- timeline_cell
42663+
example: timeline_cell
42664+
type: string
42665+
x-enum-varnames:
42666+
- TIMELINE_CELL
42667+
TimelineCellType:
42668+
description: Timeline cell content type
42669+
enum:
42670+
- COMMENT
42671+
example: COMMENT
42672+
type: string
42673+
x-enum-varnames:
42674+
- COMMENT
42675+
TimelineResponse:
42676+
description: Timeline response
42677+
properties:
42678+
data:
42679+
description: The `TimelineResponse` `data`.
42680+
items:
42681+
$ref: '#/components/schemas/TimelineCellResource'
42682+
type: array
42683+
type: object
4254142684
TimeseriesFormulaQueryRequest:
4254242685
description: A request wrapper around a single timeseries query to be executed.
4254342686
properties:
@@ -47570,6 +47713,39 @@ paths:
4757047713
summary: Update case attributes
4757147714
tags:
4757247715
- Case Management
47716+
/api/v2/cases/{case_id}/comment:
47717+
post:
47718+
description: Comment case
47719+
operationId: CommentCase
47720+
parameters:
47721+
- $ref: '#/components/parameters/CaseIDPathParameter'
47722+
requestBody:
47723+
content:
47724+
application/json:
47725+
schema:
47726+
$ref: '#/components/schemas/CaseCommentRequest'
47727+
description: Case comment payload
47728+
required: true
47729+
responses:
47730+
'200':
47731+
content:
47732+
application/json:
47733+
schema:
47734+
$ref: '#/components/schemas/TimelineResponse'
47735+
description: OK
47736+
'400':
47737+
$ref: '#/components/responses/BadRequestResponse'
47738+
'401':
47739+
$ref: '#/components/responses/UnauthorizedResponse'
47740+
'403':
47741+
$ref: '#/components/responses/ForbiddenResponse'
47742+
'404':
47743+
$ref: '#/components/responses/NotFoundResponse'
47744+
'429':
47745+
$ref: '#/components/responses/TooManyRequestsResponse'
47746+
summary: Comment case
47747+
tags:
47748+
- Case Management
4757347749
/api/v2/cases/{case_id}/priority:
4757447750
post:
4757547751
description: Update case priority
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// Comment case returns "OK" response
2+
3+
import com.datadog.api.client.ApiClient;
4+
import com.datadog.api.client.ApiException;
5+
import com.datadog.api.client.v2.api.CaseManagementApi;
6+
import com.datadog.api.client.v2.model.CaseComment;
7+
import com.datadog.api.client.v2.model.CaseCommentAttributes;
8+
import com.datadog.api.client.v2.model.CaseCommentRequest;
9+
import com.datadog.api.client.v2.model.CaseResourceType;
10+
import com.datadog.api.client.v2.model.TimelineResponse;
11+
12+
public class Example {
13+
public static void main(String[] args) {
14+
ApiClient defaultClient = ApiClient.getDefaultApiClient();
15+
CaseManagementApi apiInstance = new CaseManagementApi(defaultClient);
16+
17+
// there is a valid "case" in the system
18+
String CASE_ID = System.getenv("CASE_ID");
19+
20+
CaseCommentRequest body =
21+
new CaseCommentRequest()
22+
.data(
23+
new CaseComment()
24+
.attributes(new CaseCommentAttributes().comment("Hello World !"))
25+
.type(CaseResourceType.CASE));
26+
27+
try {
28+
TimelineResponse result = apiInstance.commentCase(CASE_ID, body);
29+
System.out.println(result);
30+
} catch (ApiException e) {
31+
System.err.println("Exception when calling CaseManagementApi#commentCase");
32+
System.err.println("Status code: " + e.getCode());
33+
System.err.println("Reason: " + e.getResponseBody());
34+
System.err.println("Response headers: " + e.getResponseHeaders());
35+
e.printStackTrace();
36+
}
37+
}
38+
}

0 commit comments

Comments
 (0)