Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43985,6 +43985,8 @@ components:
description: Key of the case.
example: "ET-123"
type: string
linear_issue:
$ref: "#/components/schemas/IssueCaseLinearIssue"
modified_at:
description: Timestamp of when the case was last modified.
example: "2025-01-01T00:00:00Z"
Expand Down Expand Up @@ -44022,6 +44024,10 @@ components:
IssueCaseJiraIssue:
description: Jira issue of the case.
properties:
error_message:
description: Error message set when the Jira issue creation fails.
example: ""
type: string
result:
$ref: "#/components/schemas/IssueCaseJiraIssueResult"
status:
Expand All @@ -44032,6 +44038,10 @@ components:
IssueCaseJiraIssueResult:
description: Contains the identifiers and URL for a successfully created Jira issue.
properties:
account_id:
description: Jira account identifier.
example: "abcd1234-5678-90ab-cdef-1234567890ab"
type: string
issue_id:
description: Jira issue identifier.
example: "1904866"
Expand All @@ -44044,11 +44054,53 @@ components:
description: Jira issue URL.
example: "https://your-jira-instance.atlassian.net/browse/ET-123"
type: string
project_id:
description: Jira project identifier.
example: "10001"
type: string
project_key:
description: Jira project key.
example: "ET"
type: string
type: object
IssueCaseLinearIssue:
description: Linear issue of the case.
properties:
error_message:
description: Error message set when the Linear issue creation fails.
example: ""
type: string
result:
$ref: "#/components/schemas/IssueCaseLinearIssueResult"
status:
description: Creation status of the Linear issue.
example: "COMPLETED"
type: string
type: object
IssueCaseLinearIssueResult:
description: Contains the identifiers and URL for a successfully created Linear issue.
properties:
account_id:
description: Linear account identifier.
example: "abcd1234-5678-90ab-cdef-1234567890ab"
type: string
issue_id:
description: Linear issue identifier.
example: "a1b2c3d4-5678-90ab-cdef-1234567890ab"
type: string
issue_key:
description: Linear issue key.
example: "ENG-123"
type: string
issue_url:
description: Linear issue URL.
example: "https://linear.app/your-workspace/issue/ENG-123"
type: string
team_id:
description: Linear team identifier.
example: "f1e2d3c4-5678-90ab-cdef-1234567890ab"
type: string
type: object
IssueCaseReference:
description: The case the issue is attached to.
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
IssueCaseAttributes.JSON_PROPERTY_INSIGHTS,
IssueCaseAttributes.JSON_PROPERTY_JIRA_ISSUE,
IssueCaseAttributes.JSON_PROPERTY_KEY,
IssueCaseAttributes.JSON_PROPERTY_LINEAR_ISSUE,
IssueCaseAttributes.JSON_PROPERTY_MODIFIED_AT,
IssueCaseAttributes.JSON_PROPERTY_PRIORITY,
IssueCaseAttributes.JSON_PROPERTY_STATUS,
Expand Down Expand Up @@ -67,6 +68,9 @@ public class IssueCaseAttributes {
public static final String JSON_PROPERTY_KEY = "key";
private String key;

public static final String JSON_PROPERTY_LINEAR_ISSUE = "linear_issue";
private IssueCaseLinearIssue linearIssue;

public static final String JSON_PROPERTY_MODIFIED_AT = "modified_at";
private OffsetDateTime modifiedAt;

Expand Down Expand Up @@ -284,6 +288,28 @@ public void setKey(String key) {
this.key = key;
}

public IssueCaseAttributes linearIssue(IssueCaseLinearIssue linearIssue) {
this.linearIssue = linearIssue;
this.unparsed |= linearIssue.unparsed;
return this;
}

/**
* Linear issue of the case.
*
* @return linearIssue
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_LINEAR_ISSUE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public IssueCaseLinearIssue getLinearIssue() {
return linearIssue;
}

public void setLinearIssue(IssueCaseLinearIssue linearIssue) {
this.linearIssue = linearIssue;
}

public IssueCaseAttributes modifiedAt(OffsetDateTime modifiedAt) {
this.modifiedAt = modifiedAt;
return this;
Expand Down Expand Up @@ -466,6 +492,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.insights, issueCaseAttributes.insights)
&& Objects.equals(this.jiraIssue, issueCaseAttributes.jiraIssue)
&& Objects.equals(this.key, issueCaseAttributes.key)
&& Objects.equals(this.linearIssue, issueCaseAttributes.linearIssue)
&& Objects.equals(this.modifiedAt, issueCaseAttributes.modifiedAt)
&& Objects.equals(this.priority, issueCaseAttributes.priority)
&& Objects.equals(this.status, issueCaseAttributes.status)
Expand All @@ -486,6 +513,7 @@ public int hashCode() {
insights,
jiraIssue,
key,
linearIssue,
modifiedAt,
priority,
status,
Expand All @@ -507,6 +535,7 @@ public String toString() {
sb.append(" insights: ").append(toIndentedString(insights)).append("\n");
sb.append(" jiraIssue: ").append(toIndentedString(jiraIssue)).append("\n");
sb.append(" key: ").append(toIndentedString(key)).append("\n");
sb.append(" linearIssue: ").append(toIndentedString(linearIssue)).append("\n");
sb.append(" modifiedAt: ").append(toIndentedString(modifiedAt)).append("\n");
sb.append(" priority: ").append(toIndentedString(priority)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,44 @@

/** Jira issue of the case. */
@JsonPropertyOrder({
IssueCaseJiraIssue.JSON_PROPERTY_ERROR_MESSAGE,
IssueCaseJiraIssue.JSON_PROPERTY_RESULT,
IssueCaseJiraIssue.JSON_PROPERTY_STATUS
})
@jakarta.annotation.Generated(
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class IssueCaseJiraIssue {
@JsonIgnore public boolean unparsed = false;
public static final String JSON_PROPERTY_ERROR_MESSAGE = "error_message";
private String errorMessage;

public static final String JSON_PROPERTY_RESULT = "result";
private IssueCaseJiraIssueResult result;

public static final String JSON_PROPERTY_STATUS = "status";
private String status;

public IssueCaseJiraIssue errorMessage(String errorMessage) {
this.errorMessage = errorMessage;
return this;
}

/**
* Error message set when the Jira issue creation fails.
*
* @return errorMessage
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ERROR_MESSAGE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getErrorMessage() {
return errorMessage;
}

public void setErrorMessage(String errorMessage) {
this.errorMessage = errorMessage;
}

public IssueCaseJiraIssue result(IssueCaseJiraIssueResult result) {
this.result = result;
this.unparsed |= result.unparsed;
Expand Down Expand Up @@ -130,20 +155,22 @@ public boolean equals(Object o) {
return false;
}
IssueCaseJiraIssue issueCaseJiraIssue = (IssueCaseJiraIssue) o;
return Objects.equals(this.result, issueCaseJiraIssue.result)
return Objects.equals(this.errorMessage, issueCaseJiraIssue.errorMessage)
&& Objects.equals(this.result, issueCaseJiraIssue.result)
&& Objects.equals(this.status, issueCaseJiraIssue.status)
&& Objects.equals(this.additionalProperties, issueCaseJiraIssue.additionalProperties);
}

@Override
public int hashCode() {
return Objects.hash(result, status, additionalProperties);
return Objects.hash(errorMessage, result, status, additionalProperties);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class IssueCaseJiraIssue {\n");
sb.append(" errorMessage: ").append(toIndentedString(errorMessage)).append("\n");
sb.append(" result: ").append(toIndentedString(result)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" additionalProperties: ")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,20 @@

/** Contains the identifiers and URL for a successfully created Jira issue. */
@JsonPropertyOrder({
IssueCaseJiraIssueResult.JSON_PROPERTY_ACCOUNT_ID,
IssueCaseJiraIssueResult.JSON_PROPERTY_ISSUE_ID,
IssueCaseJiraIssueResult.JSON_PROPERTY_ISSUE_KEY,
IssueCaseJiraIssueResult.JSON_PROPERTY_ISSUE_URL,
IssueCaseJiraIssueResult.JSON_PROPERTY_PROJECT_ID,
IssueCaseJiraIssueResult.JSON_PROPERTY_PROJECT_KEY
})
@jakarta.annotation.Generated(
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class IssueCaseJiraIssueResult {
@JsonIgnore public boolean unparsed = false;
public static final String JSON_PROPERTY_ACCOUNT_ID = "account_id";
private String accountId;

public static final String JSON_PROPERTY_ISSUE_ID = "issue_id";
private String issueId;

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

public static final String JSON_PROPERTY_PROJECT_ID = "project_id";
private String projectId;

public static final String JSON_PROPERTY_PROJECT_KEY = "project_key";
private String projectKey;

public IssueCaseJiraIssueResult accountId(String accountId) {
this.accountId = accountId;
return this;
}

/**
* Jira account identifier.
*
* @return accountId
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ACCOUNT_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getAccountId() {
return accountId;
}

public void setAccountId(String accountId) {
this.accountId = accountId;
}

public IssueCaseJiraIssueResult issueId(String issueId) {
this.issueId = issueId;
return this;
Expand Down Expand Up @@ -102,6 +131,27 @@ public void setIssueUrl(String issueUrl) {
this.issueUrl = issueUrl;
}

public IssueCaseJiraIssueResult projectId(String projectId) {
this.projectId = projectId;
return this;
}

/**
* Jira project identifier.
*
* @return projectId
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_PROJECT_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getProjectId() {
return projectId;
}

public void setProjectId(String projectId) {
this.projectId = projectId;
}

public IssueCaseJiraIssueResult projectKey(String projectKey) {
this.projectKey = projectKey;
return this;
Expand Down Expand Up @@ -179,25 +229,30 @@ public boolean equals(Object o) {
return false;
}
IssueCaseJiraIssueResult issueCaseJiraIssueResult = (IssueCaseJiraIssueResult) o;
return Objects.equals(this.issueId, issueCaseJiraIssueResult.issueId)
return Objects.equals(this.accountId, issueCaseJiraIssueResult.accountId)
&& Objects.equals(this.issueId, issueCaseJiraIssueResult.issueId)
&& Objects.equals(this.issueKey, issueCaseJiraIssueResult.issueKey)
&& Objects.equals(this.issueUrl, issueCaseJiraIssueResult.issueUrl)
&& Objects.equals(this.projectId, issueCaseJiraIssueResult.projectId)
&& Objects.equals(this.projectKey, issueCaseJiraIssueResult.projectKey)
&& Objects.equals(this.additionalProperties, issueCaseJiraIssueResult.additionalProperties);
}

@Override
public int hashCode() {
return Objects.hash(issueId, issueKey, issueUrl, projectKey, additionalProperties);
return Objects.hash(
accountId, issueId, issueKey, issueUrl, projectId, projectKey, additionalProperties);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class IssueCaseJiraIssueResult {\n");
sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n");
sb.append(" issueId: ").append(toIndentedString(issueId)).append("\n");
sb.append(" issueKey: ").append(toIndentedString(issueKey)).append("\n");
sb.append(" issueUrl: ").append(toIndentedString(issueUrl)).append("\n");
sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n");
sb.append(" projectKey: ").append(toIndentedString(projectKey)).append("\n");
sb.append(" additionalProperties: ")
.append(toIndentedString(additionalProperties))
Expand Down
Loading
Loading