Skip to content

Commit 01929f1

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit bb4e49d of spec repo (#3948)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent d2b6ad0 commit 01929f1

6 files changed

Lines changed: 605 additions & 4 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44193,6 +44193,8 @@ components:
4419344193
description: Key of the case.
4419444194
example: "ET-123"
4419544195
type: string
44196+
linear_issue:
44197+
$ref: "#/components/schemas/IssueCaseLinearIssue"
4419644198
modified_at:
4419744199
description: Timestamp of when the case was last modified.
4419844200
example: "2025-01-01T00:00:00Z"
@@ -44230,6 +44232,10 @@ components:
4423044232
IssueCaseJiraIssue:
4423144233
description: Jira issue of the case.
4423244234
properties:
44235+
error_message:
44236+
description: Error message set when the Jira issue creation fails.
44237+
example: ""
44238+
type: string
4423344239
result:
4423444240
$ref: "#/components/schemas/IssueCaseJiraIssueResult"
4423544241
status:
@@ -44240,6 +44246,10 @@ components:
4424044246
IssueCaseJiraIssueResult:
4424144247
description: Contains the identifiers and URL for a successfully created Jira issue.
4424244248
properties:
44249+
account_id:
44250+
description: Jira account identifier.
44251+
example: "abcd1234-5678-90ab-cdef-1234567890ab"
44252+
type: string
4424344253
issue_id:
4424444254
description: Jira issue identifier.
4424544255
example: "1904866"
@@ -44252,11 +44262,53 @@ components:
4425244262
description: Jira issue URL.
4425344263
example: "https://your-jira-instance.atlassian.net/browse/ET-123"
4425444264
type: string
44265+
project_id:
44266+
description: Jira project identifier.
44267+
example: "10001"
44268+
type: string
4425544269
project_key:
4425644270
description: Jira project key.
4425744271
example: "ET"
4425844272
type: string
4425944273
type: object
44274+
IssueCaseLinearIssue:
44275+
description: Linear issue of the case.
44276+
properties:
44277+
error_message:
44278+
description: Error message set when the Linear issue creation fails.
44279+
example: ""
44280+
type: string
44281+
result:
44282+
$ref: "#/components/schemas/IssueCaseLinearIssueResult"
44283+
status:
44284+
description: Creation status of the Linear issue.
44285+
example: "COMPLETED"
44286+
type: string
44287+
type: object
44288+
IssueCaseLinearIssueResult:
44289+
description: Contains the identifiers and URL for a successfully created Linear issue.
44290+
properties:
44291+
account_id:
44292+
description: Linear account identifier.
44293+
example: "abcd1234-5678-90ab-cdef-1234567890ab"
44294+
type: string
44295+
issue_id:
44296+
description: Linear issue identifier.
44297+
example: "a1b2c3d4-5678-90ab-cdef-1234567890ab"
44298+
type: string
44299+
issue_key:
44300+
description: Linear issue key.
44301+
example: "ENG-123"
44302+
type: string
44303+
issue_url:
44304+
description: Linear issue URL.
44305+
example: "https://linear.app/your-workspace/issue/ENG-123"
44306+
type: string
44307+
team_id:
44308+
description: Linear team identifier.
44309+
example: "f1e2d3c4-5678-90ab-cdef-1234567890ab"
44310+
type: string
44311+
type: object
4426044312
IssueCaseReference:
4426144313
description: The case the issue is attached to.
4426244314
properties:

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

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
IssueCaseAttributes.JSON_PROPERTY_INSIGHTS,
3131
IssueCaseAttributes.JSON_PROPERTY_JIRA_ISSUE,
3232
IssueCaseAttributes.JSON_PROPERTY_KEY,
33+
IssueCaseAttributes.JSON_PROPERTY_LINEAR_ISSUE,
3334
IssueCaseAttributes.JSON_PROPERTY_MODIFIED_AT,
3435
IssueCaseAttributes.JSON_PROPERTY_PRIORITY,
3536
IssueCaseAttributes.JSON_PROPERTY_STATUS,
@@ -67,6 +68,9 @@ public class IssueCaseAttributes {
6768
public static final String JSON_PROPERTY_KEY = "key";
6869
private String key;
6970

71+
public static final String JSON_PROPERTY_LINEAR_ISSUE = "linear_issue";
72+
private IssueCaseLinearIssue linearIssue;
73+
7074
public static final String JSON_PROPERTY_MODIFIED_AT = "modified_at";
7175
private OffsetDateTime modifiedAt;
7276

@@ -284,6 +288,28 @@ public void setKey(String key) {
284288
this.key = key;
285289
}
286290

291+
public IssueCaseAttributes linearIssue(IssueCaseLinearIssue linearIssue) {
292+
this.linearIssue = linearIssue;
293+
this.unparsed |= linearIssue.unparsed;
294+
return this;
295+
}
296+
297+
/**
298+
* Linear issue of the case.
299+
*
300+
* @return linearIssue
301+
*/
302+
@jakarta.annotation.Nullable
303+
@JsonProperty(JSON_PROPERTY_LINEAR_ISSUE)
304+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
305+
public IssueCaseLinearIssue getLinearIssue() {
306+
return linearIssue;
307+
}
308+
309+
public void setLinearIssue(IssueCaseLinearIssue linearIssue) {
310+
this.linearIssue = linearIssue;
311+
}
312+
287313
public IssueCaseAttributes modifiedAt(OffsetDateTime modifiedAt) {
288314
this.modifiedAt = modifiedAt;
289315
return this;
@@ -466,6 +492,7 @@ public boolean equals(Object o) {
466492
&& Objects.equals(this.insights, issueCaseAttributes.insights)
467493
&& Objects.equals(this.jiraIssue, issueCaseAttributes.jiraIssue)
468494
&& Objects.equals(this.key, issueCaseAttributes.key)
495+
&& Objects.equals(this.linearIssue, issueCaseAttributes.linearIssue)
469496
&& Objects.equals(this.modifiedAt, issueCaseAttributes.modifiedAt)
470497
&& Objects.equals(this.priority, issueCaseAttributes.priority)
471498
&& Objects.equals(this.status, issueCaseAttributes.status)
@@ -486,6 +513,7 @@ public int hashCode() {
486513
insights,
487514
jiraIssue,
488515
key,
516+
linearIssue,
489517
modifiedAt,
490518
priority,
491519
status,
@@ -507,6 +535,7 @@ public String toString() {
507535
sb.append(" insights: ").append(toIndentedString(insights)).append("\n");
508536
sb.append(" jiraIssue: ").append(toIndentedString(jiraIssue)).append("\n");
509537
sb.append(" key: ").append(toIndentedString(key)).append("\n");
538+
sb.append(" linearIssue: ").append(toIndentedString(linearIssue)).append("\n");
510539
sb.append(" modifiedAt: ").append(toIndentedString(modifiedAt)).append("\n");
511540
sb.append(" priority: ").append(toIndentedString(priority)).append("\n");
512541
sb.append(" status: ").append(toIndentedString(status)).append("\n");

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

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,44 @@
1818

1919
/** Jira issue of the case. */
2020
@JsonPropertyOrder({
21+
IssueCaseJiraIssue.JSON_PROPERTY_ERROR_MESSAGE,
2122
IssueCaseJiraIssue.JSON_PROPERTY_RESULT,
2223
IssueCaseJiraIssue.JSON_PROPERTY_STATUS
2324
})
2425
@jakarta.annotation.Generated(
2526
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
2627
public class IssueCaseJiraIssue {
2728
@JsonIgnore public boolean unparsed = false;
29+
public static final String JSON_PROPERTY_ERROR_MESSAGE = "error_message";
30+
private String errorMessage;
31+
2832
public static final String JSON_PROPERTY_RESULT = "result";
2933
private IssueCaseJiraIssueResult result;
3034

3135
public static final String JSON_PROPERTY_STATUS = "status";
3236
private String status;
3337

38+
public IssueCaseJiraIssue errorMessage(String errorMessage) {
39+
this.errorMessage = errorMessage;
40+
return this;
41+
}
42+
43+
/**
44+
* Error message set when the Jira issue creation fails.
45+
*
46+
* @return errorMessage
47+
*/
48+
@jakarta.annotation.Nullable
49+
@JsonProperty(JSON_PROPERTY_ERROR_MESSAGE)
50+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
51+
public String getErrorMessage() {
52+
return errorMessage;
53+
}
54+
55+
public void setErrorMessage(String errorMessage) {
56+
this.errorMessage = errorMessage;
57+
}
58+
3459
public IssueCaseJiraIssue result(IssueCaseJiraIssueResult result) {
3560
this.result = result;
3661
this.unparsed |= result.unparsed;
@@ -130,20 +155,22 @@ public boolean equals(Object o) {
130155
return false;
131156
}
132157
IssueCaseJiraIssue issueCaseJiraIssue = (IssueCaseJiraIssue) o;
133-
return Objects.equals(this.result, issueCaseJiraIssue.result)
158+
return Objects.equals(this.errorMessage, issueCaseJiraIssue.errorMessage)
159+
&& Objects.equals(this.result, issueCaseJiraIssue.result)
134160
&& Objects.equals(this.status, issueCaseJiraIssue.status)
135161
&& Objects.equals(this.additionalProperties, issueCaseJiraIssue.additionalProperties);
136162
}
137163

138164
@Override
139165
public int hashCode() {
140-
return Objects.hash(result, status, additionalProperties);
166+
return Objects.hash(errorMessage, result, status, additionalProperties);
141167
}
142168

143169
@Override
144170
public String toString() {
145171
StringBuilder sb = new StringBuilder();
146172
sb.append("class IssueCaseJiraIssue {\n");
173+
sb.append(" errorMessage: ").append(toIndentedString(errorMessage)).append("\n");
147174
sb.append(" result: ").append(toIndentedString(result)).append("\n");
148175
sb.append(" status: ").append(toIndentedString(status)).append("\n");
149176
sb.append(" additionalProperties: ")

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

Lines changed: 57 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,20 @@
1818

1919
/** Contains the identifiers and URL for a successfully created Jira issue. */
2020
@JsonPropertyOrder({
21+
IssueCaseJiraIssueResult.JSON_PROPERTY_ACCOUNT_ID,
2122
IssueCaseJiraIssueResult.JSON_PROPERTY_ISSUE_ID,
2223
IssueCaseJiraIssueResult.JSON_PROPERTY_ISSUE_KEY,
2324
IssueCaseJiraIssueResult.JSON_PROPERTY_ISSUE_URL,
25+
IssueCaseJiraIssueResult.JSON_PROPERTY_PROJECT_ID,
2426
IssueCaseJiraIssueResult.JSON_PROPERTY_PROJECT_KEY
2527
})
2628
@jakarta.annotation.Generated(
2729
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
2830
public class IssueCaseJiraIssueResult {
2931
@JsonIgnore public boolean unparsed = false;
32+
public static final String JSON_PROPERTY_ACCOUNT_ID = "account_id";
33+
private String accountId;
34+
3035
public static final String JSON_PROPERTY_ISSUE_ID = "issue_id";
3136
private String issueId;
3237

@@ -36,9 +41,33 @@ public class IssueCaseJiraIssueResult {
3641
public static final String JSON_PROPERTY_ISSUE_URL = "issue_url";
3742
private String issueUrl;
3843

44+
public static final String JSON_PROPERTY_PROJECT_ID = "project_id";
45+
private String projectId;
46+
3947
public static final String JSON_PROPERTY_PROJECT_KEY = "project_key";
4048
private String projectKey;
4149

50+
public IssueCaseJiraIssueResult accountId(String accountId) {
51+
this.accountId = accountId;
52+
return this;
53+
}
54+
55+
/**
56+
* Jira account identifier.
57+
*
58+
* @return accountId
59+
*/
60+
@jakarta.annotation.Nullable
61+
@JsonProperty(JSON_PROPERTY_ACCOUNT_ID)
62+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
63+
public String getAccountId() {
64+
return accountId;
65+
}
66+
67+
public void setAccountId(String accountId) {
68+
this.accountId = accountId;
69+
}
70+
4271
public IssueCaseJiraIssueResult issueId(String issueId) {
4372
this.issueId = issueId;
4473
return this;
@@ -102,6 +131,27 @@ public void setIssueUrl(String issueUrl) {
102131
this.issueUrl = issueUrl;
103132
}
104133

134+
public IssueCaseJiraIssueResult projectId(String projectId) {
135+
this.projectId = projectId;
136+
return this;
137+
}
138+
139+
/**
140+
* Jira project identifier.
141+
*
142+
* @return projectId
143+
*/
144+
@jakarta.annotation.Nullable
145+
@JsonProperty(JSON_PROPERTY_PROJECT_ID)
146+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
147+
public String getProjectId() {
148+
return projectId;
149+
}
150+
151+
public void setProjectId(String projectId) {
152+
this.projectId = projectId;
153+
}
154+
105155
public IssueCaseJiraIssueResult projectKey(String projectKey) {
106156
this.projectKey = projectKey;
107157
return this;
@@ -179,25 +229,30 @@ public boolean equals(Object o) {
179229
return false;
180230
}
181231
IssueCaseJiraIssueResult issueCaseJiraIssueResult = (IssueCaseJiraIssueResult) o;
182-
return Objects.equals(this.issueId, issueCaseJiraIssueResult.issueId)
232+
return Objects.equals(this.accountId, issueCaseJiraIssueResult.accountId)
233+
&& Objects.equals(this.issueId, issueCaseJiraIssueResult.issueId)
183234
&& Objects.equals(this.issueKey, issueCaseJiraIssueResult.issueKey)
184235
&& Objects.equals(this.issueUrl, issueCaseJiraIssueResult.issueUrl)
236+
&& Objects.equals(this.projectId, issueCaseJiraIssueResult.projectId)
185237
&& Objects.equals(this.projectKey, issueCaseJiraIssueResult.projectKey)
186238
&& Objects.equals(this.additionalProperties, issueCaseJiraIssueResult.additionalProperties);
187239
}
188240

189241
@Override
190242
public int hashCode() {
191-
return Objects.hash(issueId, issueKey, issueUrl, projectKey, additionalProperties);
243+
return Objects.hash(
244+
accountId, issueId, issueKey, issueUrl, projectId, projectKey, additionalProperties);
192245
}
193246

194247
@Override
195248
public String toString() {
196249
StringBuilder sb = new StringBuilder();
197250
sb.append("class IssueCaseJiraIssueResult {\n");
251+
sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n");
198252
sb.append(" issueId: ").append(toIndentedString(issueId)).append("\n");
199253
sb.append(" issueKey: ").append(toIndentedString(issueKey)).append("\n");
200254
sb.append(" issueUrl: ").append(toIndentedString(issueUrl)).append("\n");
255+
sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n");
201256
sb.append(" projectKey: ").append(toIndentedString(projectKey)).append("\n");
202257
sb.append(" additionalProperties: ")
203258
.append(toIndentedString(additionalProperties))

0 commit comments

Comments
 (0)