Skip to content
Open
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
13 changes: 10 additions & 3 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9168,6 +9168,11 @@ components:
CaseCreateAttributes:
description: Case creation attributes
properties:
custom_attributes:
additionalProperties:
$ref: '#/components/schemas/CustomAttributeValue'
description: Case custom attributes
type: object
description:
description: Description
type: string
Expand Down Expand Up @@ -14712,30 +14717,32 @@ components:
type: number
type: array
CustomAttributeMultiStringValue:
description: Value of multi TEXT/URL custom attribute
description: Value of multi TEXT/URL/SELECT custom attribute
items:
description: TEXT/URL Value
description: TEXT/URL/SELECT Value
type: string
type: array
CustomAttributeNumberValue:
description: Value of NUMBER custom attribute
format: double
type: number
CustomAttributeStringValue:
description: Value of TEXT/URL custom attribute
description: Value of TEXT/URL/SELECT custom attribute
type: string
CustomAttributeType:
description: Custom attributes type
enum:
- URL
- TEXT
- NUMBER
- SELECT
example: NUMBER
type: string
x-enum-varnames:
- URL
- TEXT
- NUMBER
- SELECT
CustomAttributeValue:
description: Custom attribute values
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

/** Case creation attributes */
@JsonPropertyOrder({
CaseCreateAttributes.JSON_PROPERTY_CUSTOM_ATTRIBUTES,
CaseCreateAttributes.JSON_PROPERTY_DESCRIPTION,
CaseCreateAttributes.JSON_PROPERTY_PRIORITY,
CaseCreateAttributes.JSON_PROPERTY_TITLE,
Expand All @@ -28,6 +29,9 @@
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class CaseCreateAttributes {
@JsonIgnore public boolean unparsed = false;
public static final String JSON_PROPERTY_CUSTOM_ATTRIBUTES = "custom_attributes";
private Map<String, CustomAttributeValue> customAttributes = null;

public static final String JSON_PROPERTY_DESCRIPTION = "description";
private String description;

Expand All @@ -50,6 +54,36 @@ public CaseCreateAttributes(
this.typeId = typeId;
}

public CaseCreateAttributes customAttributes(Map<String, CustomAttributeValue> customAttributes) {
this.customAttributes = customAttributes;
return this;
}

public CaseCreateAttributes putCustomAttributesItem(
String key, CustomAttributeValue customAttributesItem) {
if (this.customAttributes == null) {
this.customAttributes = new HashMap<>();
}
this.customAttributes.put(key, customAttributesItem);
return this;
}

/**
* Case custom attributes
*
* @return customAttributes
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_CUSTOM_ATTRIBUTES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, CustomAttributeValue> getCustomAttributes() {
return customAttributes;
}

public void setCustomAttributes(Map<String, CustomAttributeValue> customAttributes) {
this.customAttributes = customAttributes;
}

public CaseCreateAttributes description(String description) {
this.description = description;
return this;
Expand Down Expand Up @@ -192,7 +226,8 @@ public boolean equals(Object o) {
return false;
}
CaseCreateAttributes caseCreateAttributes = (CaseCreateAttributes) o;
return Objects.equals(this.description, caseCreateAttributes.description)
return Objects.equals(this.customAttributes, caseCreateAttributes.customAttributes)
&& Objects.equals(this.description, caseCreateAttributes.description)
&& Objects.equals(this.priority, caseCreateAttributes.priority)
&& Objects.equals(this.title, caseCreateAttributes.title)
&& Objects.equals(this.typeId, caseCreateAttributes.typeId)
Expand All @@ -201,13 +236,15 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return Objects.hash(description, priority, title, typeId, additionalProperties);
return Objects.hash(
customAttributes, description, priority, title, typeId, additionalProperties);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CaseCreateAttributes {\n");
sb.append(" customAttributes: ").append(toIndentedString(customAttributes)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" priority: ").append(toIndentedString(priority)).append("\n");
sb.append(" title: ").append(toIndentedString(title)).append("\n");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@
public class CustomAttributeType extends ModelEnum<String> {

private static final Set<String> allowedValues =
new HashSet<String>(Arrays.asList("URL", "TEXT", "NUMBER"));
new HashSet<String>(Arrays.asList("URL", "TEXT", "NUMBER", "SELECT"));

public static final CustomAttributeType URL = new CustomAttributeType("URL");
public static final CustomAttributeType TEXT = new CustomAttributeType("TEXT");
public static final CustomAttributeType NUMBER = new CustomAttributeType("NUMBER");
public static final CustomAttributeType SELECT = new CustomAttributeType("SELECT");

CustomAttributeType(String value) {
super(value, allowedValues);
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2025-10-01T12:46:29.817Z
2025-12-30T13:49:44.747Z
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"secure": true
},
"httpResponse": {
"body": "{\"data\":{\"id\":\"3601878d-b851-43b6-900f-0deb35e536d7\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-10-01T12:46:30.261735Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"3601878d-b851-43b6-900f-0deb35e536d7\",\"key\":\"DDFC-82968\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"83056\",\"status\":\"OPEN\",\"status_name\":\"Open\",\"title\":\"My new case\",\"type\":\"STANDARD\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"active\":true,\"email\":\"[email protected]\",\"handle\":\"[email protected]\",\"name\":\"frog\"}}]}",
"body": "{\"data\":{\"id\":\"e3f011bc-8ae6-4ec2-b80d-3069e73bc6a1\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-12-30T13:49:45.033566Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"e3f011bc-8ae6-4ec2-b80d-3069e73bc6a1\",\"key\":\"DDFC-98805\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"99261\",\"status\":\"OPEN\",\"status_group\":\"SG_OPEN\",\"status_name\":\"Open\",\"title\":\"My new case\",\"type\":\"STANDARD\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"type\":\"user\",\"attributes\":{\"active\":true,\"email\":\"[email protected]\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\"}}]}",
"headers": {
"Content-Type": [
"application/vnd.api+json"
Expand All @@ -37,7 +37,7 @@
},
"headers": {},
"method": "POST",
"path": "/api/v2/cases/3601878d-b851-43b6-900f-0deb35e536d7/archive",
"path": "/api/v2/cases/e3f011bc-8ae6-4ec2-b80d-3069e73bc6a1/archive",
"keepAlive": false,
"secure": true
},
Expand All @@ -57,6 +57,6 @@
"timeToLive": {
"unlimited": true
},
"id": "e1a10cf1-3e3c-c706-790a-1973ce7c87c7"
"id": "ab7d7635-9dd8-75bc-f0cf-3417055b82d9"
}
]
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2025-10-01T12:46:31.029Z
2025-12-30T13:49:45.212Z
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"secure": true
},
"httpResponse": {
"body": "{\"data\":{\"id\":\"b5cf9b44-cb77-4487-a436-0e3ef4e88d49\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-10-01T12:46:31.456149Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"b5cf9b44-cb77-4487-a436-0e3ef4e88d49\",\"key\":\"DDFC-82969\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"83057\",\"status\":\"OPEN\",\"status_name\":\"Open\",\"title\":\"My new case\",\"type\":\"STANDARD\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"active\":true,\"email\":\"[email protected]\",\"handle\":\"[email protected]\",\"name\":\"frog\"}}]}",
"body": "{\"data\":{\"id\":\"926e6b8a-4af6-43b2-8a29-33813af68594\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-12-30T13:49:45.269528Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"926e6b8a-4af6-43b2-8a29-33813af68594\",\"key\":\"DDFC-98806\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"99262\",\"status\":\"OPEN\",\"status_group\":\"SG_OPEN\",\"status_name\":\"Open\",\"title\":\"My new case\",\"type\":\"STANDARD\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"type\":\"user\",\"attributes\":{\"active\":true,\"email\":\"[email protected]\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\"}}]}",
"headers": {
"Content-Type": [
"application/vnd.api+json"
Expand All @@ -37,12 +37,12 @@
},
"headers": {},
"method": "POST",
"path": "/api/v2/cases/b5cf9b44-cb77-4487-a436-0e3ef4e88d49/archive",
"path": "/api/v2/cases/926e6b8a-4af6-43b2-8a29-33813af68594/archive",
"keepAlive": false,
"secure": true
},
"httpResponse": {
"body": "{\"data\":{\"id\":\"b5cf9b44-cb77-4487-a436-0e3ef4e88d49\",\"type\":\"case\",\"attributes\":{\"archived_at\":\"2025-10-01T12:46:31.920596976Z\",\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-10-01T12:46:31.456149Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"b5cf9b44-cb77-4487-a436-0e3ef4e88d49\",\"key\":\"DDFC-82969\",\"merge_status\":\"NOT_MERGED\",\"modified_at\":\"2025-10-01T12:46:31.920597Z\",\"priority\":\"P4\",\"public_id\":\"83057\",\"status\":\"OPEN\",\"status_name\":\"Open\",\"title\":\"My new case\",\"type\":\"STANDARD\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"modified_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"active\":true,\"email\":\"[email protected]\",\"handle\":\"[email protected]\",\"name\":\"frog\"}}]}",
"body": "{\"data\":{\"id\":\"926e6b8a-4af6-43b2-8a29-33813af68594\",\"type\":\"case\",\"attributes\":{\"archived_at\":\"2025-12-30T13:49:45.40368576Z\",\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-12-30T13:49:45.269528Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"926e6b8a-4af6-43b2-8a29-33813af68594\",\"key\":\"DDFC-98806\",\"merge_status\":\"NOT_MERGED\",\"modified_at\":\"2025-12-30T13:49:45.403686Z\",\"priority\":\"P4\",\"public_id\":\"99262\",\"status\":\"OPEN\",\"status_group\":\"SG_OPEN\",\"status_name\":\"Open\",\"title\":\"My new case\",\"type\":\"STANDARD\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"type\":\"user\"}},\"modified_by\":{\"data\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"type\":\"user\",\"attributes\":{\"active\":true,\"email\":\"[email protected]\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\"}}]}",
"headers": {
"Content-Type": [
"application/vnd.api+json"
Expand All @@ -57,6 +57,6 @@
"timeToLive": {
"unlimited": true
},
"id": "57529eb3-3888-9ea0-582e-398aac78c8cc"
"id": "d9673a60-73f9-7390-7584-792968835a2b"
}
]
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2025-10-01T12:46:31.968Z
2025-12-30T13:49:45.450Z
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"secure": true
},
"httpResponse": {
"body": "{\"data\":{\"id\":\"1beeecc8-5c4f-4194-a785-e5c60234e263\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-10-01T12:46:32.453117Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"1beeecc8-5c4f-4194-a785-e5c60234e263\",\"key\":\"DDFC-82970\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"83058\",\"status\":\"OPEN\",\"status_name\":\"Open\",\"title\":\"My new case\",\"type\":\"STANDARD\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"active\":true,\"email\":\"[email protected]\",\"handle\":\"[email protected]\",\"name\":\"frog\"}}]}",
"body": "{\"data\":{\"id\":\"b3cef7a0-9637-43fb-88cf-d9ac56310a7b\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-12-30T13:49:45.508531Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"b3cef7a0-9637-43fb-88cf-d9ac56310a7b\",\"key\":\"DDFC-98807\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"99263\",\"status\":\"OPEN\",\"status_group\":\"SG_OPEN\",\"status_name\":\"Open\",\"title\":\"My new case\",\"type\":\"STANDARD\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"type\":\"user\",\"attributes\":{\"active\":true,\"email\":\"[email protected]\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\"}}]}",
"headers": {
"Content-Type": [
"application/vnd.api+json"
Expand All @@ -37,7 +37,7 @@
},
"headers": {},
"method": "POST",
"path": "/api/v2/cases/1beeecc8-5c4f-4194-a785-e5c60234e263/assign",
"path": "/api/v2/cases/b3cef7a0-9637-43fb-88cf-d9ac56310a7b/assign",
"keepAlive": false,
"secure": true
},
Expand All @@ -57,6 +57,6 @@
"timeToLive": {
"unlimited": true
},
"id": "30bda267-2a5e-f496-0edc-0461cb732a9b"
"id": "ed3d10de-dc2d-ee05-2933-dd494eefe952"
}
]
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2025-10-01T12:46:34.590Z
2025-12-30T13:49:45.709Z
Loading
Loading