diff --git a/.apigentools-info b/.apigentools-info index 1caf2340ccd..190a6d532ab 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2024-02-20 12:21:56.548581", - "spec_repo_commit": "7e467650" + "regenerated": "2024-02-20 19:02:50.038339", + "spec_repo_commit": "5ef419de" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2024-02-20 12:21:56.563229", - "spec_repo_commit": "7e467650" + "regenerated": "2024-02-20 19:02:50.054420", + "spec_repo_commit": "5ef419de" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 5d118d9175c..f58f161362a 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -22766,7 +22766,7 @@ paths: - cases_read summary: Search cases tags: - - Cases + - Case Management x-pagination: limitParam: page[size] pageOffsetParam: page[offset] @@ -22805,7 +22805,7 @@ paths: - cases_write summary: Create a case tags: - - Cases + - Case Management /api/v2/cases/projects: get: description: Get all projects. @@ -22834,7 +22834,7 @@ paths: - cases_read summary: Get all projects tags: - - Cases Projects + - Case Management post: description: Create a project. operationId: CreateProject @@ -22869,7 +22869,7 @@ paths: - cases_write summary: Create a project tags: - - Cases Projects + - Case Management /api/v2/cases/projects/{project_id}: delete: description: Remove a project using the project's `id`. @@ -22896,7 +22896,7 @@ paths: - cases_write summary: Remove a project tags: - - Cases Projects + - Case Management get: description: Get the details of a project by `project_id`. operationId: GetProject @@ -22926,7 +22926,7 @@ paths: - cases_read summary: Get the details of a project tags: - - Cases Projects + - Case Management /api/v2/cases/{case_id}: get: description: Get the details of case by `case_id` @@ -22957,7 +22957,7 @@ paths: - cases_read summary: Get the details of a case tags: - - Cases + - Case Management /api/v2/cases/{case_id}/archive: post: description: Archive case @@ -22995,7 +22995,7 @@ paths: - cases_write summary: Archive case tags: - - Cases + - Case Management /api/v2/cases/{case_id}/assign: post: description: Assign case to a user @@ -23033,7 +23033,7 @@ paths: - cases_write summary: Assign case tags: - - Cases + - Case Management /api/v2/cases/{case_id}/priority: post: description: Update case priority @@ -23071,7 +23071,7 @@ paths: - cases_write summary: Update case priority tags: - - Cases + - Case Management /api/v2/cases/{case_id}/status: post: description: Update case status @@ -23109,7 +23109,7 @@ paths: - cases_write summary: Update case status tags: - - Cases + - Case Management /api/v2/cases/{case_id}/unarchive: post: description: Unarchive case @@ -23147,7 +23147,7 @@ paths: - cases_write summary: Unarchive case tags: - - Cases + - Case Management /api/v2/cases/{case_id}/unassign: post: description: Unassign case @@ -23185,7 +23185,7 @@ paths: - cases_write summary: Unassign case tags: - - Cases + - Case Management /api/v2/ci/pipeline: post: description: 'Send your pipeline event to your Datadog platform over HTTP. For @@ -34532,10 +34532,8 @@ tags: [Test Visibility in Datadog page](https://docs.datadoghq.com/tests/) for more information. name: CI Visibility Tests -- description: View and manage cases within Datadog - name: Cases -- description: View and manage project within Case Management - name: Cases Projects +- description: View and manage cases and project within Case Management + name: Case Management - description: The Cloud Cost Management API allows you to set up, edit, and delete Cloud Cost Management accounts for AWS and Azure. See the [Cloud Cost Management page](https://docs.datadoghq.com/cloud_cost_management/) for more information. diff --git a/examples/v2/cases/ArchiveCase.java b/examples/v2/case-management/ArchiveCase.java similarity index 83% rename from examples/v2/cases/ArchiveCase.java rename to examples/v2/case-management/ArchiveCase.java index da8e7fc6cf8..5bd7a97ae80 100644 --- a/examples/v2/cases/ArchiveCase.java +++ b/examples/v2/case-management/ArchiveCase.java @@ -2,7 +2,7 @@ import com.datadog.api.client.ApiClient; import com.datadog.api.client.ApiException; -import com.datadog.api.client.v2.api.CasesApi; +import com.datadog.api.client.v2.api.CaseManagementApi; import com.datadog.api.client.v2.model.CaseEmpty; import com.datadog.api.client.v2.model.CaseEmptyRequest; import com.datadog.api.client.v2.model.CaseResourceType; @@ -11,7 +11,7 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); - CasesApi apiInstance = new CasesApi(defaultClient); + CaseManagementApi apiInstance = new CaseManagementApi(defaultClient); // there is a valid "case" in the system String CASE_ID = System.getenv("CASE_ID"); @@ -23,7 +23,7 @@ public static void main(String[] args) { CaseResponse result = apiInstance.archiveCase(CASE_ID, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CasesApi#archiveCase"); + System.err.println("Exception when calling CaseManagementApi#archiveCase"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); diff --git a/examples/v2/cases/AssignCase.java b/examples/v2/case-management/AssignCase.java similarity index 86% rename from examples/v2/cases/AssignCase.java rename to examples/v2/case-management/AssignCase.java index b30fa9888e3..82574bd0f9e 100644 --- a/examples/v2/cases/AssignCase.java +++ b/examples/v2/case-management/AssignCase.java @@ -2,7 +2,7 @@ import com.datadog.api.client.ApiClient; import com.datadog.api.client.ApiException; -import com.datadog.api.client.v2.api.CasesApi; +import com.datadog.api.client.v2.api.CaseManagementApi; import com.datadog.api.client.v2.model.CaseAssign; import com.datadog.api.client.v2.model.CaseAssignAttributes; import com.datadog.api.client.v2.model.CaseAssignRequest; @@ -12,7 +12,7 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); - CasesApi apiInstance = new CasesApi(defaultClient); + CaseManagementApi apiInstance = new CaseManagementApi(defaultClient); // there is a valid "case" in the system String CASE_ID = System.getenv("CASE_ID"); @@ -31,7 +31,7 @@ public static void main(String[] args) { CaseResponse result = apiInstance.assignCase(CASE_ID, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CasesApi#assignCase"); + System.err.println("Exception when calling CaseManagementApi#assignCase"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); diff --git a/examples/v2/cases/CreateCase.java b/examples/v2/case-management/CreateCase.java similarity index 92% rename from examples/v2/cases/CreateCase.java rename to examples/v2/case-management/CreateCase.java index 956584d2fd4..4f8a995b8b9 100644 --- a/examples/v2/cases/CreateCase.java +++ b/examples/v2/case-management/CreateCase.java @@ -2,7 +2,7 @@ import com.datadog.api.client.ApiClient; import com.datadog.api.client.ApiException; -import com.datadog.api.client.v2.api.CasesApi; +import com.datadog.api.client.v2.api.CaseManagementApi; import com.datadog.api.client.v2.model.CaseCreate; import com.datadog.api.client.v2.model.CaseCreateAttributes; import com.datadog.api.client.v2.model.CaseCreateRelationships; @@ -21,7 +21,7 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); - CasesApi apiInstance = new CasesApi(defaultClient); + CaseManagementApi apiInstance = new CaseManagementApi(defaultClient); // there is a valid "user" in the system String USER_DATA_ID = System.getenv("USER_DATA_ID"); @@ -33,7 +33,7 @@ public static void main(String[] args) { .attributes( new CaseCreateAttributes() .priority(CasePriority.NOT_DEFINED) - .title("Security breach investigation in 3dcc5b2ebf9bfb8f") + .title("Security breach investigation in 0cfbc5cbc676ee71") .type(CaseType.STANDARD)) .relationships( new CaseCreateRelationships() @@ -55,7 +55,7 @@ public static void main(String[] args) { CaseResponse result = apiInstance.createCase(body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CasesApi#createCase"); + System.err.println("Exception when calling CaseManagementApi#createCase"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); diff --git a/examples/v2/cases-projects/CreateProject.java b/examples/v2/case-management/CreateProject.java similarity index 85% rename from examples/v2/cases-projects/CreateProject.java rename to examples/v2/case-management/CreateProject.java index bb061cce46b..8a2853c7c4c 100644 --- a/examples/v2/cases-projects/CreateProject.java +++ b/examples/v2/case-management/CreateProject.java @@ -2,7 +2,7 @@ import com.datadog.api.client.ApiClient; import com.datadog.api.client.ApiException; -import com.datadog.api.client.v2.api.CasesProjectsApi; +import com.datadog.api.client.v2.api.CaseManagementApi; import com.datadog.api.client.v2.model.ProjectCreate; import com.datadog.api.client.v2.model.ProjectCreateAttributes; import com.datadog.api.client.v2.model.ProjectCreateRequest; @@ -12,7 +12,7 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); - CasesProjectsApi apiInstance = new CasesProjectsApi(defaultClient); + CaseManagementApi apiInstance = new CaseManagementApi(defaultClient); ProjectCreateRequest body = new ProjectCreateRequest() @@ -26,7 +26,7 @@ public static void main(String[] args) { ProjectResponse result = apiInstance.createProject(body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CasesProjectsApi#createProject"); + System.err.println("Exception when calling CaseManagementApi#createProject"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); diff --git a/examples/v2/cases-projects/DeleteProject.java b/examples/v2/case-management/DeleteProject.java similarity index 73% rename from examples/v2/cases-projects/DeleteProject.java rename to examples/v2/case-management/DeleteProject.java index 8c56665b3ad..e8f6a77cc1f 100644 --- a/examples/v2/cases-projects/DeleteProject.java +++ b/examples/v2/case-management/DeleteProject.java @@ -2,17 +2,17 @@ import com.datadog.api.client.ApiClient; import com.datadog.api.client.ApiException; -import com.datadog.api.client.v2.api.CasesProjectsApi; +import com.datadog.api.client.v2.api.CaseManagementApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); - CasesProjectsApi apiInstance = new CasesProjectsApi(defaultClient); + CaseManagementApi apiInstance = new CaseManagementApi(defaultClient); try { apiInstance.deleteProject("project_id"); } catch (ApiException e) { - System.err.println("Exception when calling CasesProjectsApi#deleteProject"); + System.err.println("Exception when calling CaseManagementApi#deleteProject"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); diff --git a/examples/v2/cases/GetCase.java b/examples/v2/case-management/GetCase.java similarity index 78% rename from examples/v2/cases/GetCase.java rename to examples/v2/case-management/GetCase.java index 514de057f37..686dff29756 100644 --- a/examples/v2/cases/GetCase.java +++ b/examples/v2/case-management/GetCase.java @@ -2,13 +2,13 @@ import com.datadog.api.client.ApiClient; import com.datadog.api.client.ApiException; -import com.datadog.api.client.v2.api.CasesApi; +import com.datadog.api.client.v2.api.CaseManagementApi; import com.datadog.api.client.v2.model.CaseResponse; public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); - CasesApi apiInstance = new CasesApi(defaultClient); + CaseManagementApi apiInstance = new CaseManagementApi(defaultClient); // there is a valid "case" in the system String CASE_ID = System.getenv("CASE_ID"); @@ -17,7 +17,7 @@ public static void main(String[] args) { CaseResponse result = apiInstance.getCase(CASE_ID); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CasesApi#getCase"); + System.err.println("Exception when calling CaseManagementApi#getCase"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); diff --git a/examples/v2/cases-projects/GetProject.java b/examples/v2/case-management/GetProject.java similarity index 76% rename from examples/v2/cases-projects/GetProject.java rename to examples/v2/case-management/GetProject.java index d924901edf3..8f2e86a90b7 100644 --- a/examples/v2/cases-projects/GetProject.java +++ b/examples/v2/case-management/GetProject.java @@ -2,19 +2,19 @@ import com.datadog.api.client.ApiClient; import com.datadog.api.client.ApiException; -import com.datadog.api.client.v2.api.CasesProjectsApi; +import com.datadog.api.client.v2.api.CaseManagementApi; import com.datadog.api.client.v2.model.ProjectResponse; public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); - CasesProjectsApi apiInstance = new CasesProjectsApi(defaultClient); + CaseManagementApi apiInstance = new CaseManagementApi(defaultClient); try { ProjectResponse result = apiInstance.getProject("project_id"); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CasesProjectsApi#getProject"); + System.err.println("Exception when calling CaseManagementApi#getProject"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); diff --git a/examples/v2/cases-projects/GetProjects.java b/examples/v2/case-management/GetProjects.java similarity index 76% rename from examples/v2/cases-projects/GetProjects.java rename to examples/v2/case-management/GetProjects.java index d68f4718eaa..c3672f7bcdc 100644 --- a/examples/v2/cases-projects/GetProjects.java +++ b/examples/v2/case-management/GetProjects.java @@ -2,19 +2,19 @@ import com.datadog.api.client.ApiClient; import com.datadog.api.client.ApiException; -import com.datadog.api.client.v2.api.CasesProjectsApi; +import com.datadog.api.client.v2.api.CaseManagementApi; import com.datadog.api.client.v2.model.ProjectsResponse; public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); - CasesProjectsApi apiInstance = new CasesProjectsApi(defaultClient); + CaseManagementApi apiInstance = new CaseManagementApi(defaultClient); try { ProjectsResponse result = apiInstance.getProjects(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CasesProjectsApi#getProjects"); + System.err.println("Exception when calling CaseManagementApi#getProjects"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); diff --git a/examples/v2/cases/SearchCases.java b/examples/v2/case-management/SearchCases.java similarity index 75% rename from examples/v2/cases/SearchCases.java rename to examples/v2/case-management/SearchCases.java index c4df9207651..1effc93028b 100644 --- a/examples/v2/cases/SearchCases.java +++ b/examples/v2/case-management/SearchCases.java @@ -2,19 +2,19 @@ import com.datadog.api.client.ApiClient; import com.datadog.api.client.ApiException; -import com.datadog.api.client.v2.api.CasesApi; +import com.datadog.api.client.v2.api.CaseManagementApi; import com.datadog.api.client.v2.model.CasesResponse; public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); - CasesApi apiInstance = new CasesApi(defaultClient); + CaseManagementApi apiInstance = new CaseManagementApi(defaultClient); try { CasesResponse result = apiInstance.searchCases(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CasesApi#searchCases"); + System.err.println("Exception when calling CaseManagementApi#searchCases"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); diff --git a/examples/v2/cases/SearchCases_3433960044.java b/examples/v2/case-management/SearchCases_3433960044.java similarity index 73% rename from examples/v2/cases/SearchCases_3433960044.java rename to examples/v2/case-management/SearchCases_3433960044.java index e128772522c..bb45c9d8a9d 100644 --- a/examples/v2/cases/SearchCases_3433960044.java +++ b/examples/v2/case-management/SearchCases_3433960044.java @@ -2,13 +2,13 @@ import com.datadog.api.client.ApiClient; import com.datadog.api.client.PaginationIterable; -import com.datadog.api.client.v2.api.CasesApi; +import com.datadog.api.client.v2.api.CaseManagementApi; import com.datadog.api.client.v2.model.Case; public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); - CasesApi apiInstance = new CasesApi(defaultClient); + CaseManagementApi apiInstance = new CaseManagementApi(defaultClient); try { PaginationIterable iterable = apiInstance.searchCasesWithPagination(); @@ -17,7 +17,7 @@ public static void main(String[] args) { System.out.println(item); } } catch (RuntimeException e) { - System.err.println("Exception when calling CasesApi#searchCasesWithPagination"); + System.err.println("Exception when calling CaseManagementApi#searchCasesWithPagination"); System.err.println("Reason: " + e.getMessage()); e.printStackTrace(); } diff --git a/examples/v2/cases/UnarchiveCase.java b/examples/v2/case-management/UnarchiveCase.java similarity index 83% rename from examples/v2/cases/UnarchiveCase.java rename to examples/v2/case-management/UnarchiveCase.java index 5224f131003..6f89fa957b6 100644 --- a/examples/v2/cases/UnarchiveCase.java +++ b/examples/v2/case-management/UnarchiveCase.java @@ -2,7 +2,7 @@ import com.datadog.api.client.ApiClient; import com.datadog.api.client.ApiException; -import com.datadog.api.client.v2.api.CasesApi; +import com.datadog.api.client.v2.api.CaseManagementApi; import com.datadog.api.client.v2.model.CaseEmpty; import com.datadog.api.client.v2.model.CaseEmptyRequest; import com.datadog.api.client.v2.model.CaseResourceType; @@ -11,7 +11,7 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); - CasesApi apiInstance = new CasesApi(defaultClient); + CaseManagementApi apiInstance = new CaseManagementApi(defaultClient); // there is a valid "case" in the system String CASE_ID = System.getenv("CASE_ID"); @@ -23,7 +23,7 @@ public static void main(String[] args) { CaseResponse result = apiInstance.unarchiveCase(CASE_ID, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CasesApi#unarchiveCase"); + System.err.println("Exception when calling CaseManagementApi#unarchiveCase"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); diff --git a/examples/v2/cases/UnassignCase.java b/examples/v2/case-management/UnassignCase.java similarity index 83% rename from examples/v2/cases/UnassignCase.java rename to examples/v2/case-management/UnassignCase.java index abac6fa02d0..f9169b1ef62 100644 --- a/examples/v2/cases/UnassignCase.java +++ b/examples/v2/case-management/UnassignCase.java @@ -2,7 +2,7 @@ import com.datadog.api.client.ApiClient; import com.datadog.api.client.ApiException; -import com.datadog.api.client.v2.api.CasesApi; +import com.datadog.api.client.v2.api.CaseManagementApi; import com.datadog.api.client.v2.model.CaseEmpty; import com.datadog.api.client.v2.model.CaseEmptyRequest; import com.datadog.api.client.v2.model.CaseResourceType; @@ -11,7 +11,7 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); - CasesApi apiInstance = new CasesApi(defaultClient); + CaseManagementApi apiInstance = new CaseManagementApi(defaultClient); // there is a valid "case" in the system String CASE_ID = System.getenv("CASE_ID"); @@ -23,7 +23,7 @@ public static void main(String[] args) { CaseResponse result = apiInstance.unassignCase(CASE_ID, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CasesApi#unassignCase"); + System.err.println("Exception when calling CaseManagementApi#unassignCase"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); diff --git a/examples/v2/cases/UpdatePriority.java b/examples/v2/case-management/UpdatePriority.java similarity index 86% rename from examples/v2/cases/UpdatePriority.java rename to examples/v2/case-management/UpdatePriority.java index 6a7730a15aa..ef5c373ae61 100644 --- a/examples/v2/cases/UpdatePriority.java +++ b/examples/v2/case-management/UpdatePriority.java @@ -2,7 +2,7 @@ import com.datadog.api.client.ApiClient; import com.datadog.api.client.ApiException; -import com.datadog.api.client.v2.api.CasesApi; +import com.datadog.api.client.v2.api.CaseManagementApi; import com.datadog.api.client.v2.model.CasePriority; import com.datadog.api.client.v2.model.CaseResourceType; import com.datadog.api.client.v2.model.CaseResponse; @@ -13,7 +13,7 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); - CasesApi apiInstance = new CasesApi(defaultClient); + CaseManagementApi apiInstance = new CaseManagementApi(defaultClient); // there is a valid "case" in the system String CASE_ID = System.getenv("CASE_ID"); @@ -29,7 +29,7 @@ public static void main(String[] args) { CaseResponse result = apiInstance.updatePriority(CASE_ID, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CasesApi#updatePriority"); + System.err.println("Exception when calling CaseManagementApi#updatePriority"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); diff --git a/examples/v2/cases/UpdateStatus.java b/examples/v2/case-management/UpdateStatus.java similarity index 86% rename from examples/v2/cases/UpdateStatus.java rename to examples/v2/case-management/UpdateStatus.java index 4621beb92d5..49bad2e25aa 100644 --- a/examples/v2/cases/UpdateStatus.java +++ b/examples/v2/case-management/UpdateStatus.java @@ -2,7 +2,7 @@ import com.datadog.api.client.ApiClient; import com.datadog.api.client.ApiException; -import com.datadog.api.client.v2.api.CasesApi; +import com.datadog.api.client.v2.api.CaseManagementApi; import com.datadog.api.client.v2.model.CaseResourceType; import com.datadog.api.client.v2.model.CaseResponse; import com.datadog.api.client.v2.model.CaseStatus; @@ -13,7 +13,7 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); - CasesApi apiInstance = new CasesApi(defaultClient); + CaseManagementApi apiInstance = new CaseManagementApi(defaultClient); // there is a valid "case" in the system String CASE_ID = System.getenv("CASE_ID"); @@ -29,7 +29,7 @@ public static void main(String[] args) { CaseResponse result = apiInstance.updateStatus(CASE_ID, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CasesApi#updateStatus"); + System.err.println("Exception when calling CaseManagementApi#updateStatus"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); diff --git a/src/main/java/com/datadog/api/client/v2/api/CasesApi.java b/src/main/java/com/datadog/api/client/v2/api/CaseManagementApi.java similarity index 73% rename from src/main/java/com/datadog/api/client/v2/api/CasesApi.java rename to src/main/java/com/datadog/api/client/v2/api/CaseManagementApi.java index c5a8967331e..27fd391c8b0 100644 --- a/src/main/java/com/datadog/api/client/v2/api/CasesApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/CaseManagementApi.java @@ -14,6 +14,9 @@ import com.datadog.api.client.v2.model.CaseUpdatePriorityRequest; import com.datadog.api.client.v2.model.CaseUpdateStatusRequest; import com.datadog.api.client.v2.model.CasesResponse; +import com.datadog.api.client.v2.model.ProjectCreateRequest; +import com.datadog.api.client.v2.model.ProjectResponse; +import com.datadog.api.client.v2.model.ProjectsResponse; import jakarta.ws.rs.client.Invocation; import jakarta.ws.rs.core.GenericType; import java.util.ArrayList; @@ -25,14 +28,14 @@ @jakarta.annotation.Generated( value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class CasesApi { +public class CaseManagementApi { private ApiClient apiClient; - public CasesApi() { + public CaseManagementApi() { this(ApiClient.getDefaultApiClient()); } - public CasesApi(ApiClient apiClient) { + public CaseManagementApi(ApiClient apiClient) { this.apiClient = apiClient; } @@ -127,7 +130,7 @@ public ApiResponse archiveCaseWithHttpInfo(String caseId, CaseEmpt Invocation.Builder builder = apiClient.createBuilder( - "v2.CasesApi.archiveCase", + "v2.CaseManagementApi.archiveCase", localVarPath, new ArrayList(), localVarHeaderParams, @@ -185,7 +188,7 @@ public CompletableFuture> archiveCaseWithHttpInfoAsync try { builder = apiClient.createBuilder( - "v2.CasesApi.archiveCase", + "v2.CaseManagementApi.archiveCase", localVarPath, new ArrayList(), localVarHeaderParams, @@ -281,7 +284,7 @@ public ApiResponse assignCaseWithHttpInfo(String caseId, CaseAssig Invocation.Builder builder = apiClient.createBuilder( - "v2.CasesApi.assignCase", + "v2.CaseManagementApi.assignCase", localVarPath, new ArrayList(), localVarHeaderParams, @@ -338,7 +341,7 @@ public CompletableFuture> assignCaseWithHttpInfoAsync( try { builder = apiClient.createBuilder( - "v2.CasesApi.assignCase", + "v2.CaseManagementApi.assignCase", localVarPath, new ArrayList(), localVarHeaderParams, @@ -423,7 +426,7 @@ public ApiResponse createCaseWithHttpInfo(CaseCreateRequest body) Invocation.Builder builder = apiClient.createBuilder( - "v2.CasesApi.createCase", + "v2.CaseManagementApi.createCase", localVarPath, new ArrayList(), localVarHeaderParams, @@ -469,7 +472,7 @@ public CompletableFuture> createCaseWithHttpInfoAsync( try { builder = apiClient.createBuilder( - "v2.CasesApi.createCase", + "v2.CaseManagementApi.createCase", localVarPath, new ArrayList(), localVarHeaderParams, @@ -492,6 +495,271 @@ public CompletableFuture> createCaseWithHttpInfoAsync( new GenericType() {}); } + /** + * Create a project. + * + *

See {@link #createProjectWithHttpInfo}. + * + * @param body Project payload (required) + * @return ProjectResponse + * @throws ApiException if fails to make API call + */ + public ProjectResponse createProject(ProjectCreateRequest body) throws ApiException { + return createProjectWithHttpInfo(body).getData(); + } + + /** + * Create a project. + * + *

See {@link #createProjectWithHttpInfoAsync}. + * + * @param body Project payload (required) + * @return CompletableFuture<ProjectResponse> + */ + public CompletableFuture createProjectAsync(ProjectCreateRequest body) { + return createProjectWithHttpInfoAsync(body) + .thenApply( + response -> { + return response.getData(); + }); + } + + /** + * Create a project. + * + * @param body Project payload (required) + * @return ApiResponse<ProjectResponse> + * @throws ApiException if fails to make API call + * @http.response.details + * + * + * + * + * + * + * + * + * + *
Response details
Status Code Description Response Headers
201 CREATED -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
429 Too many requests -
+ */ + public ApiResponse createProjectWithHttpInfo(ProjectCreateRequest body) + throws ApiException { + Object localVarPostBody = body; + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException( + 400, "Missing the required parameter 'body' when calling createProject"); + } + // create path and map variables + String localVarPath = "/api/v2/cases/projects"; + + Map localVarHeaderParams = new HashMap(); + + Invocation.Builder builder = + apiClient.createBuilder( + "v2.CaseManagementApi.createProject", + localVarPath, + new ArrayList(), + localVarHeaderParams, + new HashMap(), + new String[] {"application/json"}, + new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"}); + return apiClient.invokeAPI( + "POST", + builder, + localVarHeaderParams, + new String[] {"application/json"}, + localVarPostBody, + new HashMap(), + false, + new GenericType() {}); + } + + /** + * Create a project. + * + *

See {@link #createProjectWithHttpInfo}. + * + * @param body Project payload (required) + * @return CompletableFuture<ApiResponse<ProjectResponse>> + */ + public CompletableFuture> createProjectWithHttpInfoAsync( + ProjectCreateRequest body) { + Object localVarPostBody = body; + + // verify the required parameter 'body' is set + if (body == null) { + CompletableFuture> result = new CompletableFuture<>(); + result.completeExceptionally( + new ApiException( + 400, "Missing the required parameter 'body' when calling createProject")); + return result; + } + // create path and map variables + String localVarPath = "/api/v2/cases/projects"; + + Map localVarHeaderParams = new HashMap(); + + Invocation.Builder builder; + try { + builder = + apiClient.createBuilder( + "v2.CaseManagementApi.createProject", + localVarPath, + new ArrayList(), + localVarHeaderParams, + new HashMap(), + new String[] {"application/json"}, + new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"}); + } catch (ApiException ex) { + CompletableFuture> result = new CompletableFuture<>(); + result.completeExceptionally(ex); + return result; + } + return apiClient.invokeAPIAsync( + "POST", + builder, + localVarHeaderParams, + new String[] {"application/json"}, + localVarPostBody, + new HashMap(), + false, + new GenericType() {}); + } + + /** + * Remove a project. + * + *

See {@link #deleteProjectWithHttpInfo}. + * + * @param projectId Project UUID (required) + * @throws ApiException if fails to make API call + */ + public void deleteProject(String projectId) throws ApiException { + deleteProjectWithHttpInfo(projectId); + } + + /** + * Remove a project. + * + *

See {@link #deleteProjectWithHttpInfoAsync}. + * + * @param projectId Project UUID (required) + * @return CompletableFuture + */ + public CompletableFuture deleteProjectAsync(String projectId) { + return deleteProjectWithHttpInfoAsync(projectId) + .thenApply( + response -> { + return response.getData(); + }); + } + + /** + * Remove a project using the project's id. + * + * @param projectId Project UUID (required) + * @return ApiResponse<Void> + * @throws ApiException if fails to make API call + * @http.response.details + * + * + * + * + * + * + * + *
Response details
Status Code Description Response Headers
204 No Content -
403 Forbidden -
404 API error response -
429 Too many requests -
+ */ + public ApiResponse deleteProjectWithHttpInfo(String projectId) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'projectId' is set + if (projectId == null) { + throw new ApiException( + 400, "Missing the required parameter 'projectId' when calling deleteProject"); + } + // create path and map variables + String localVarPath = + "/api/v2/cases/projects/{project_id}" + .replaceAll("\\{" + "project_id" + "\\}", apiClient.escapeString(projectId.toString())); + + Map localVarHeaderParams = new HashMap(); + + Invocation.Builder builder = + apiClient.createBuilder( + "v2.CaseManagementApi.deleteProject", + localVarPath, + new ArrayList(), + localVarHeaderParams, + new HashMap(), + new String[] {"*/*"}, + new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"}); + return apiClient.invokeAPI( + "DELETE", + builder, + localVarHeaderParams, + new String[] {}, + localVarPostBody, + new HashMap(), + false, + null); + } + + /** + * Remove a project. + * + *

See {@link #deleteProjectWithHttpInfo}. + * + * @param projectId Project UUID (required) + * @return CompletableFuture<ApiResponse<Void>> + */ + public CompletableFuture> deleteProjectWithHttpInfoAsync(String projectId) { + Object localVarPostBody = null; + + // verify the required parameter 'projectId' is set + if (projectId == null) { + CompletableFuture> result = new CompletableFuture<>(); + result.completeExceptionally( + new ApiException( + 400, "Missing the required parameter 'projectId' when calling deleteProject")); + return result; + } + // create path and map variables + String localVarPath = + "/api/v2/cases/projects/{project_id}" + .replaceAll("\\{" + "project_id" + "\\}", apiClient.escapeString(projectId.toString())); + + Map localVarHeaderParams = new HashMap(); + + Invocation.Builder builder; + try { + builder = + apiClient.createBuilder( + "v2.CaseManagementApi.deleteProject", + localVarPath, + new ArrayList(), + localVarHeaderParams, + new HashMap(), + new String[] {"*/*"}, + new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"}); + } catch (ApiException ex) { + CompletableFuture> result = new CompletableFuture<>(); + result.completeExceptionally(ex); + return result; + } + return apiClient.invokeAPIAsync( + "DELETE", + builder, + localVarHeaderParams, + new String[] {}, + localVarPostBody, + new HashMap(), + false, + null); + } + /** * Get the details of a case. * @@ -555,7 +823,7 @@ public ApiResponse getCaseWithHttpInfo(String caseId) throws ApiEx Invocation.Builder builder = apiClient.createBuilder( - "v2.CasesApi.getCase", + "v2.CaseManagementApi.getCase", localVarPath, new ArrayList(), localVarHeaderParams, @@ -602,7 +870,7 @@ public CompletableFuture> getCaseWithHttpInfoAsync(Str try { builder = apiClient.createBuilder( - "v2.CasesApi.getCase", + "v2.CaseManagementApi.getCase", localVarPath, new ArrayList(), localVarHeaderParams, @@ -625,6 +893,254 @@ public CompletableFuture> getCaseWithHttpInfoAsync(Str new GenericType() {}); } + /** + * Get the details of a project. + * + *

See {@link #getProjectWithHttpInfo}. + * + * @param projectId Project UUID (required) + * @return ProjectResponse + * @throws ApiException if fails to make API call + */ + public ProjectResponse getProject(String projectId) throws ApiException { + return getProjectWithHttpInfo(projectId).getData(); + } + + /** + * Get the details of a project. + * + *

See {@link #getProjectWithHttpInfoAsync}. + * + * @param projectId Project UUID (required) + * @return CompletableFuture<ProjectResponse> + */ + public CompletableFuture getProjectAsync(String projectId) { + return getProjectWithHttpInfoAsync(projectId) + .thenApply( + response -> { + return response.getData(); + }); + } + + /** + * Get the details of a project by project_id. + * + * @param projectId Project UUID (required) + * @return ApiResponse<ProjectResponse> + * @throws ApiException if fails to make API call + * @http.response.details + * + * + * + * + * + * + * + * + * + *
Response details
Status Code Description Response Headers
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
429 Too many requests -
+ */ + public ApiResponse getProjectWithHttpInfo(String projectId) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'projectId' is set + if (projectId == null) { + throw new ApiException( + 400, "Missing the required parameter 'projectId' when calling getProject"); + } + // create path and map variables + String localVarPath = + "/api/v2/cases/projects/{project_id}" + .replaceAll("\\{" + "project_id" + "\\}", apiClient.escapeString(projectId.toString())); + + Map localVarHeaderParams = new HashMap(); + + Invocation.Builder builder = + apiClient.createBuilder( + "v2.CaseManagementApi.getProject", + localVarPath, + new ArrayList(), + localVarHeaderParams, + new HashMap(), + new String[] {"application/json"}, + new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"}); + return apiClient.invokeAPI( + "GET", + builder, + localVarHeaderParams, + new String[] {}, + localVarPostBody, + new HashMap(), + false, + new GenericType() {}); + } + + /** + * Get the details of a project. + * + *

See {@link #getProjectWithHttpInfo}. + * + * @param projectId Project UUID (required) + * @return CompletableFuture<ApiResponse<ProjectResponse>> + */ + public CompletableFuture> getProjectWithHttpInfoAsync( + String projectId) { + Object localVarPostBody = null; + + // verify the required parameter 'projectId' is set + if (projectId == null) { + CompletableFuture> result = new CompletableFuture<>(); + result.completeExceptionally( + new ApiException( + 400, "Missing the required parameter 'projectId' when calling getProject")); + return result; + } + // create path and map variables + String localVarPath = + "/api/v2/cases/projects/{project_id}" + .replaceAll("\\{" + "project_id" + "\\}", apiClient.escapeString(projectId.toString())); + + Map localVarHeaderParams = new HashMap(); + + Invocation.Builder builder; + try { + builder = + apiClient.createBuilder( + "v2.CaseManagementApi.getProject", + localVarPath, + new ArrayList(), + localVarHeaderParams, + new HashMap(), + new String[] {"application/json"}, + new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"}); + } catch (ApiException ex) { + CompletableFuture> result = new CompletableFuture<>(); + result.completeExceptionally(ex); + return result; + } + return apiClient.invokeAPIAsync( + "GET", + builder, + localVarHeaderParams, + new String[] {}, + localVarPostBody, + new HashMap(), + false, + new GenericType() {}); + } + + /** + * Get all projects. + * + *

See {@link #getProjectsWithHttpInfo}. + * + * @return ProjectsResponse + * @throws ApiException if fails to make API call + */ + public ProjectsResponse getProjects() throws ApiException { + return getProjectsWithHttpInfo().getData(); + } + + /** + * Get all projects. + * + *

See {@link #getProjectsWithHttpInfoAsync}. + * + * @return CompletableFuture<ProjectsResponse> + */ + public CompletableFuture getProjectsAsync() { + return getProjectsWithHttpInfoAsync() + .thenApply( + response -> { + return response.getData(); + }); + } + + /** + * Get all projects. + * + * @return ApiResponse<ProjectsResponse> + * @throws ApiException if fails to make API call + * @http.response.details + * + * + * + * + * + * + * + * + * + *
Response details
Status Code Description Response Headers
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
429 Too many requests -
+ */ + public ApiResponse getProjectsWithHttpInfo() throws ApiException { + Object localVarPostBody = null; + // create path and map variables + String localVarPath = "/api/v2/cases/projects"; + + Map localVarHeaderParams = new HashMap(); + + Invocation.Builder builder = + apiClient.createBuilder( + "v2.CaseManagementApi.getProjects", + localVarPath, + new ArrayList(), + localVarHeaderParams, + new HashMap(), + new String[] {"application/json"}, + new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"}); + return apiClient.invokeAPI( + "GET", + builder, + localVarHeaderParams, + new String[] {}, + localVarPostBody, + new HashMap(), + false, + new GenericType() {}); + } + + /** + * Get all projects. + * + *

See {@link #getProjectsWithHttpInfo}. + * + * @return CompletableFuture<ApiResponse<ProjectsResponse>> + */ + public CompletableFuture> getProjectsWithHttpInfoAsync() { + Object localVarPostBody = null; + // create path and map variables + String localVarPath = "/api/v2/cases/projects"; + + Map localVarHeaderParams = new HashMap(); + + Invocation.Builder builder; + try { + builder = + apiClient.createBuilder( + "v2.CaseManagementApi.getProjects", + localVarPath, + new ArrayList(), + localVarHeaderParams, + new HashMap(), + new String[] {"application/json"}, + new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"}); + } catch (ApiException ex) { + CompletableFuture> result = new CompletableFuture<>(); + result.completeExceptionally(ex); + return result; + } + return apiClient.invokeAPIAsync( + "GET", + builder, + localVarHeaderParams, + new String[] {}, + localVarPostBody, + new HashMap(), + false, + new GenericType() {}); + } + /** Manage optional parameters to searchCases. */ public static class SearchCasesOptionalParameters { private Long pageSize; @@ -840,7 +1356,7 @@ public ApiResponse searchCasesWithHttpInfo( Invocation.Builder builder = apiClient.createBuilder( - "v2.CasesApi.searchCases", + "v2.CaseManagementApi.searchCases", localVarPath, localVarQueryParams, localVarHeaderParams, @@ -890,7 +1406,7 @@ public CompletableFuture> searchCasesWithHttpInfoAsyn try { builder = apiClient.createBuilder( - "v2.CasesApi.searchCases", + "v2.CaseManagementApi.searchCases", localVarPath, localVarQueryParams, localVarHeaderParams, @@ -987,7 +1503,7 @@ public ApiResponse unarchiveCaseWithHttpInfo(String caseId, CaseEm Invocation.Builder builder = apiClient.createBuilder( - "v2.CasesApi.unarchiveCase", + "v2.CaseManagementApi.unarchiveCase", localVarPath, new ArrayList(), localVarHeaderParams, @@ -1046,7 +1562,7 @@ public CompletableFuture> unarchiveCaseWithHttpInfoAsy try { builder = apiClient.createBuilder( - "v2.CasesApi.unarchiveCase", + "v2.CaseManagementApi.unarchiveCase", localVarPath, new ArrayList(), localVarHeaderParams, @@ -1143,7 +1659,7 @@ public ApiResponse unassignCaseWithHttpInfo(String caseId, CaseEmp Invocation.Builder builder = apiClient.createBuilder( - "v2.CasesApi.unassignCase", + "v2.CaseManagementApi.unassignCase", localVarPath, new ArrayList(), localVarHeaderParams, @@ -1201,7 +1717,7 @@ public CompletableFuture> unassignCaseWithHttpInfoAsyn try { builder = apiClient.createBuilder( - "v2.CasesApi.unassignCase", + "v2.CaseManagementApi.unassignCase", localVarPath, new ArrayList(), localVarHeaderParams, @@ -1300,7 +1816,7 @@ public ApiResponse updatePriorityWithHttpInfo( Invocation.Builder builder = apiClient.createBuilder( - "v2.CasesApi.updatePriority", + "v2.CaseManagementApi.updatePriority", localVarPath, new ArrayList(), localVarHeaderParams, @@ -1359,7 +1875,7 @@ public CompletableFuture> updatePriorityWithHttpInfoAs try { builder = apiClient.createBuilder( - "v2.CasesApi.updatePriority", + "v2.CaseManagementApi.updatePriority", localVarPath, new ArrayList(), localVarHeaderParams, @@ -1458,7 +1974,7 @@ public ApiResponse updateStatusWithHttpInfo( Invocation.Builder builder = apiClient.createBuilder( - "v2.CasesApi.updateStatus", + "v2.CaseManagementApi.updateStatus", localVarPath, new ArrayList(), localVarHeaderParams, @@ -1516,7 +2032,7 @@ public CompletableFuture> updateStatusWithHttpInfoAsyn try { builder = apiClient.createBuilder( - "v2.CasesApi.updateStatus", + "v2.CaseManagementApi.updateStatus", localVarPath, new ArrayList(), localVarHeaderParams, diff --git a/src/main/java/com/datadog/api/client/v2/api/CasesProjectsApi.java b/src/main/java/com/datadog/api/client/v2/api/CasesProjectsApi.java deleted file mode 100644 index dba1e2b5bb1..00000000000 --- a/src/main/java/com/datadog/api/client/v2/api/CasesProjectsApi.java +++ /dev/null @@ -1,560 +0,0 @@ -package com.datadog.api.client.v2.api; - -import com.datadog.api.client.ApiClient; -import com.datadog.api.client.ApiException; -import com.datadog.api.client.ApiResponse; -import com.datadog.api.client.Pair; -import com.datadog.api.client.v2.model.ProjectCreateRequest; -import com.datadog.api.client.v2.model.ProjectResponse; -import com.datadog.api.client.v2.model.ProjectsResponse; -import jakarta.ws.rs.client.Invocation; -import jakarta.ws.rs.core.GenericType; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.Map; -import java.util.concurrent.CompletableFuture; - -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class CasesProjectsApi { - private ApiClient apiClient; - - public CasesProjectsApi() { - this(ApiClient.getDefaultApiClient()); - } - - public CasesProjectsApi(ApiClient apiClient) { - this.apiClient = apiClient; - } - - /** - * Get the API client. - * - * @return API client - */ - public ApiClient getApiClient() { - return apiClient; - } - - /** - * Set the API client. - * - * @param apiClient an instance of API client - */ - public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; - } - - /** - * Create a project. - * - *

See {@link #createProjectWithHttpInfo}. - * - * @param body Project payload (required) - * @return ProjectResponse - * @throws ApiException if fails to make API call - */ - public ProjectResponse createProject(ProjectCreateRequest body) throws ApiException { - return createProjectWithHttpInfo(body).getData(); - } - - /** - * Create a project. - * - *

See {@link #createProjectWithHttpInfoAsync}. - * - * @param body Project payload (required) - * @return CompletableFuture<ProjectResponse> - */ - public CompletableFuture createProjectAsync(ProjectCreateRequest body) { - return createProjectWithHttpInfoAsync(body) - .thenApply( - response -> { - return response.getData(); - }); - } - - /** - * Create a project. - * - * @param body Project payload (required) - * @return ApiResponse<ProjectResponse> - * @throws ApiException if fails to make API call - * @http.response.details - * - * - * - * - * - * - * - * - * - *
Response details
Status Code Description Response Headers
201 CREATED -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
429 Too many requests -
- */ - public ApiResponse createProjectWithHttpInfo(ProjectCreateRequest body) - throws ApiException { - Object localVarPostBody = body; - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException( - 400, "Missing the required parameter 'body' when calling createProject"); - } - // create path and map variables - String localVarPath = "/api/v2/cases/projects"; - - Map localVarHeaderParams = new HashMap(); - - Invocation.Builder builder = - apiClient.createBuilder( - "v2.CasesProjectsApi.createProject", - localVarPath, - new ArrayList(), - localVarHeaderParams, - new HashMap(), - new String[] {"application/json"}, - new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"}); - return apiClient.invokeAPI( - "POST", - builder, - localVarHeaderParams, - new String[] {"application/json"}, - localVarPostBody, - new HashMap(), - false, - new GenericType() {}); - } - - /** - * Create a project. - * - *

See {@link #createProjectWithHttpInfo}. - * - * @param body Project payload (required) - * @return CompletableFuture<ApiResponse<ProjectResponse>> - */ - public CompletableFuture> createProjectWithHttpInfoAsync( - ProjectCreateRequest body) { - Object localVarPostBody = body; - - // verify the required parameter 'body' is set - if (body == null) { - CompletableFuture> result = new CompletableFuture<>(); - result.completeExceptionally( - new ApiException( - 400, "Missing the required parameter 'body' when calling createProject")); - return result; - } - // create path and map variables - String localVarPath = "/api/v2/cases/projects"; - - Map localVarHeaderParams = new HashMap(); - - Invocation.Builder builder; - try { - builder = - apiClient.createBuilder( - "v2.CasesProjectsApi.createProject", - localVarPath, - new ArrayList(), - localVarHeaderParams, - new HashMap(), - new String[] {"application/json"}, - new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"}); - } catch (ApiException ex) { - CompletableFuture> result = new CompletableFuture<>(); - result.completeExceptionally(ex); - return result; - } - return apiClient.invokeAPIAsync( - "POST", - builder, - localVarHeaderParams, - new String[] {"application/json"}, - localVarPostBody, - new HashMap(), - false, - new GenericType() {}); - } - - /** - * Remove a project. - * - *

See {@link #deleteProjectWithHttpInfo}. - * - * @param projectId Project UUID (required) - * @throws ApiException if fails to make API call - */ - public void deleteProject(String projectId) throws ApiException { - deleteProjectWithHttpInfo(projectId); - } - - /** - * Remove a project. - * - *

See {@link #deleteProjectWithHttpInfoAsync}. - * - * @param projectId Project UUID (required) - * @return CompletableFuture - */ - public CompletableFuture deleteProjectAsync(String projectId) { - return deleteProjectWithHttpInfoAsync(projectId) - .thenApply( - response -> { - return response.getData(); - }); - } - - /** - * Remove a project using the project's id. - * - * @param projectId Project UUID (required) - * @return ApiResponse<Void> - * @throws ApiException if fails to make API call - * @http.response.details - * - * - * - * - * - * - * - *
Response details
Status Code Description Response Headers
204 No Content -
403 Forbidden -
404 API error response -
429 Too many requests -
- */ - public ApiResponse deleteProjectWithHttpInfo(String projectId) throws ApiException { - Object localVarPostBody = null; - - // verify the required parameter 'projectId' is set - if (projectId == null) { - throw new ApiException( - 400, "Missing the required parameter 'projectId' when calling deleteProject"); - } - // create path and map variables - String localVarPath = - "/api/v2/cases/projects/{project_id}" - .replaceAll("\\{" + "project_id" + "\\}", apiClient.escapeString(projectId.toString())); - - Map localVarHeaderParams = new HashMap(); - - Invocation.Builder builder = - apiClient.createBuilder( - "v2.CasesProjectsApi.deleteProject", - localVarPath, - new ArrayList(), - localVarHeaderParams, - new HashMap(), - new String[] {"*/*"}, - new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"}); - return apiClient.invokeAPI( - "DELETE", - builder, - localVarHeaderParams, - new String[] {}, - localVarPostBody, - new HashMap(), - false, - null); - } - - /** - * Remove a project. - * - *

See {@link #deleteProjectWithHttpInfo}. - * - * @param projectId Project UUID (required) - * @return CompletableFuture<ApiResponse<Void>> - */ - public CompletableFuture> deleteProjectWithHttpInfoAsync(String projectId) { - Object localVarPostBody = null; - - // verify the required parameter 'projectId' is set - if (projectId == null) { - CompletableFuture> result = new CompletableFuture<>(); - result.completeExceptionally( - new ApiException( - 400, "Missing the required parameter 'projectId' when calling deleteProject")); - return result; - } - // create path and map variables - String localVarPath = - "/api/v2/cases/projects/{project_id}" - .replaceAll("\\{" + "project_id" + "\\}", apiClient.escapeString(projectId.toString())); - - Map localVarHeaderParams = new HashMap(); - - Invocation.Builder builder; - try { - builder = - apiClient.createBuilder( - "v2.CasesProjectsApi.deleteProject", - localVarPath, - new ArrayList(), - localVarHeaderParams, - new HashMap(), - new String[] {"*/*"}, - new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"}); - } catch (ApiException ex) { - CompletableFuture> result = new CompletableFuture<>(); - result.completeExceptionally(ex); - return result; - } - return apiClient.invokeAPIAsync( - "DELETE", - builder, - localVarHeaderParams, - new String[] {}, - localVarPostBody, - new HashMap(), - false, - null); - } - - /** - * Get the details of a project. - * - *

See {@link #getProjectWithHttpInfo}. - * - * @param projectId Project UUID (required) - * @return ProjectResponse - * @throws ApiException if fails to make API call - */ - public ProjectResponse getProject(String projectId) throws ApiException { - return getProjectWithHttpInfo(projectId).getData(); - } - - /** - * Get the details of a project. - * - *

See {@link #getProjectWithHttpInfoAsync}. - * - * @param projectId Project UUID (required) - * @return CompletableFuture<ProjectResponse> - */ - public CompletableFuture getProjectAsync(String projectId) { - return getProjectWithHttpInfoAsync(projectId) - .thenApply( - response -> { - return response.getData(); - }); - } - - /** - * Get the details of a project by project_id. - * - * @param projectId Project UUID (required) - * @return ApiResponse<ProjectResponse> - * @throws ApiException if fails to make API call - * @http.response.details - * - * - * - * - * - * - * - * - * - *
Response details
Status Code Description Response Headers
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
429 Too many requests -
- */ - public ApiResponse getProjectWithHttpInfo(String projectId) throws ApiException { - Object localVarPostBody = null; - - // verify the required parameter 'projectId' is set - if (projectId == null) { - throw new ApiException( - 400, "Missing the required parameter 'projectId' when calling getProject"); - } - // create path and map variables - String localVarPath = - "/api/v2/cases/projects/{project_id}" - .replaceAll("\\{" + "project_id" + "\\}", apiClient.escapeString(projectId.toString())); - - Map localVarHeaderParams = new HashMap(); - - Invocation.Builder builder = - apiClient.createBuilder( - "v2.CasesProjectsApi.getProject", - localVarPath, - new ArrayList(), - localVarHeaderParams, - new HashMap(), - new String[] {"application/json"}, - new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"}); - return apiClient.invokeAPI( - "GET", - builder, - localVarHeaderParams, - new String[] {}, - localVarPostBody, - new HashMap(), - false, - new GenericType() {}); - } - - /** - * Get the details of a project. - * - *

See {@link #getProjectWithHttpInfo}. - * - * @param projectId Project UUID (required) - * @return CompletableFuture<ApiResponse<ProjectResponse>> - */ - public CompletableFuture> getProjectWithHttpInfoAsync( - String projectId) { - Object localVarPostBody = null; - - // verify the required parameter 'projectId' is set - if (projectId == null) { - CompletableFuture> result = new CompletableFuture<>(); - result.completeExceptionally( - new ApiException( - 400, "Missing the required parameter 'projectId' when calling getProject")); - return result; - } - // create path and map variables - String localVarPath = - "/api/v2/cases/projects/{project_id}" - .replaceAll("\\{" + "project_id" + "\\}", apiClient.escapeString(projectId.toString())); - - Map localVarHeaderParams = new HashMap(); - - Invocation.Builder builder; - try { - builder = - apiClient.createBuilder( - "v2.CasesProjectsApi.getProject", - localVarPath, - new ArrayList(), - localVarHeaderParams, - new HashMap(), - new String[] {"application/json"}, - new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"}); - } catch (ApiException ex) { - CompletableFuture> result = new CompletableFuture<>(); - result.completeExceptionally(ex); - return result; - } - return apiClient.invokeAPIAsync( - "GET", - builder, - localVarHeaderParams, - new String[] {}, - localVarPostBody, - new HashMap(), - false, - new GenericType() {}); - } - - /** - * Get all projects. - * - *

See {@link #getProjectsWithHttpInfo}. - * - * @return ProjectsResponse - * @throws ApiException if fails to make API call - */ - public ProjectsResponse getProjects() throws ApiException { - return getProjectsWithHttpInfo().getData(); - } - - /** - * Get all projects. - * - *

See {@link #getProjectsWithHttpInfoAsync}. - * - * @return CompletableFuture<ProjectsResponse> - */ - public CompletableFuture getProjectsAsync() { - return getProjectsWithHttpInfoAsync() - .thenApply( - response -> { - return response.getData(); - }); - } - - /** - * Get all projects. - * - * @return ApiResponse<ProjectsResponse> - * @throws ApiException if fails to make API call - * @http.response.details - * - * - * - * - * - * - * - * - * - *
Response details
Status Code Description Response Headers
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
429 Too many requests -
- */ - public ApiResponse getProjectsWithHttpInfo() throws ApiException { - Object localVarPostBody = null; - // create path and map variables - String localVarPath = "/api/v2/cases/projects"; - - Map localVarHeaderParams = new HashMap(); - - Invocation.Builder builder = - apiClient.createBuilder( - "v2.CasesProjectsApi.getProjects", - localVarPath, - new ArrayList(), - localVarHeaderParams, - new HashMap(), - new String[] {"application/json"}, - new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"}); - return apiClient.invokeAPI( - "GET", - builder, - localVarHeaderParams, - new String[] {}, - localVarPostBody, - new HashMap(), - false, - new GenericType() {}); - } - - /** - * Get all projects. - * - *

See {@link #getProjectsWithHttpInfo}. - * - * @return CompletableFuture<ApiResponse<ProjectsResponse>> - */ - public CompletableFuture> getProjectsWithHttpInfoAsync() { - Object localVarPostBody = null; - // create path and map variables - String localVarPath = "/api/v2/cases/projects"; - - Map localVarHeaderParams = new HashMap(); - - Invocation.Builder builder; - try { - builder = - apiClient.createBuilder( - "v2.CasesProjectsApi.getProjects", - localVarPath, - new ArrayList(), - localVarHeaderParams, - new HashMap(), - new String[] {"application/json"}, - new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"}); - } catch (ApiException ex) { - CompletableFuture> result = new CompletableFuture<>(); - result.completeExceptionally(ex); - return result; - } - return apiClient.invokeAPIAsync( - "GET", - builder, - localVarHeaderParams, - new String[] {}, - localVarPostBody, - new HashMap(), - false, - new GenericType() {}); - } -} diff --git a/src/test/resources/cassettes/features/v2/Archive_case_returns_Bad_Request_response.freeze b/src/test/resources/cassettes/features/v2/Archive_case_returns_Bad_Request_response.freeze index ef6c63cf9ee..02ebd0b9106 100644 --- a/src/test/resources/cassettes/features/v2/Archive_case_returns_Bad_Request_response.freeze +++ b/src/test/resources/cassettes/features/v2/Archive_case_returns_Bad_Request_response.freeze @@ -1 +1 @@ -2024-02-07T18:00:35.988Z \ No newline at end of file +2024-02-14T18:55:15.159Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Archive_case_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Archive_case_returns_Bad_Request_response.json index 105f9886288..ab4a3a747f2 100644 --- a/src/test/resources/cassettes/features/v2/Archive_case_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Archive_case_returns_Bad_Request_response.json @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"1f205230-5ea9-444e-a5f9-48f93d6a2cde\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-07T18:00:36.54518451Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"1f205230-5ea9-444e-a5f9-48f93d6a2cde\",\"key\":\"DDFC-2\",\"priority\":\"P4\",\"public_id\":\"62\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"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\":{\"email\":\"team-intg-tools-libs-spam@datadoghq.com\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\"}}]}", + "body": "{\"data\":{\"id\":\"4e49aede-4c04-42d3-b5bc-f8eb4c1340df\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-14T18:55:15.280494299Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"4e49aede-4c04-42d3-b5bc-f8eb4c1340df\",\"key\":\"DDFC-182\",\"priority\":\"P4\",\"public_id\":\"242\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"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\":{\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"\"}}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -37,7 +37,7 @@ }, "headers": {}, "method": "POST", - "path": "/api/v2/cases/1f205230-5ea9-444e-a5f9-48f93d6a2cde/archive", + "path": "/api/v2/cases/4e49aede-4c04-42d3-b5bc-f8eb4c1340df/archive", "keepAlive": false, "secure": true }, @@ -57,6 +57,6 @@ "timeToLive": { "unlimited": true }, - "id": "2c0f4f45-8dc6-58df-fb53-fc17524fd2fd" + "id": "36abb6ee-469d-9724-5458-bc30d5a98423" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Archive_case_returns_Not_Found_response.freeze b/src/test/resources/cassettes/features/v2/Archive_case_returns_Not_Found_response.freeze index 6b42677b0f5..16674248e30 100644 --- a/src/test/resources/cassettes/features/v2/Archive_case_returns_Not_Found_response.freeze +++ b/src/test/resources/cassettes/features/v2/Archive_case_returns_Not_Found_response.freeze @@ -1 +1 @@ -2024-02-07T13:09:07.949Z \ No newline at end of file +2024-02-14T18:55:15.378Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Archive_case_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Archive_case_returns_OK_response.freeze index 558899ce6da..f8ce6d98bba 100644 --- a/src/test/resources/cassettes/features/v2/Archive_case_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v2/Archive_case_returns_OK_response.freeze @@ -1 +1 @@ -2024-02-07T18:00:36.901Z \ No newline at end of file +2024-02-14T18:55:15.466Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Archive_case_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Archive_case_returns_OK_response.json index 41ed5cc3f2c..b5178ffcad5 100644 --- a/src/test/resources/cassettes/features/v2/Archive_case_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Archive_case_returns_OK_response.json @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"99e6e8cd-f115-4168-8814-30776007f44c\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-07T18:00:37.185776261Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"99e6e8cd-f115-4168-8814-30776007f44c\",\"key\":\"DDFC-3\",\"priority\":\"P4\",\"public_id\":\"63\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"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\":{\"email\":\"team-intg-tools-libs-spam@datadoghq.com\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\"}}]}", + "body": "{\"data\":{\"id\":\"3752309b-6a77-4015-845a-02ff88647b4b\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-14T18:55:15.546103234Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"3752309b-6a77-4015-845a-02ff88647b4b\",\"key\":\"DDFC-183\",\"priority\":\"P4\",\"public_id\":\"243\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"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\":{\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"\"}}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -37,12 +37,12 @@ }, "headers": {}, "method": "POST", - "path": "/api/v2/cases/99e6e8cd-f115-4168-8814-30776007f44c/archive", + "path": "/api/v2/cases/3752309b-6a77-4015-845a-02ff88647b4b/archive", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"99e6e8cd-f115-4168-8814-30776007f44c\",\"type\":\"case\",\"attributes\":{\"archived_at\":\"2024-02-07T18:00:37.47125606Z\",\"attributes\":{},\"created_at\":\"2024-02-07T18:00:37.185776Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"99e6e8cd-f115-4168-8814-30776007f44c\",\"key\":\"DDFC-3\",\"priority\":\"P4\",\"public_id\":\"63\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"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\":{\"email\":\"team-intg-tools-libs-spam@datadoghq.com\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\"}}]}", + "body": "{\"data\":{\"id\":\"3752309b-6a77-4015-845a-02ff88647b4b\",\"type\":\"case\",\"attributes\":{\"archived_at\":\"2024-02-14T18:55:15.641594121Z\",\"attributes\":{},\"created_at\":\"2024-02-14T18:55:15.546103Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"3752309b-6a77-4015-845a-02ff88647b4b\",\"key\":\"DDFC-183\",\"priority\":\"P4\",\"public_id\":\"243\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"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\":{\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"\"}}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -57,6 +57,6 @@ "timeToLive": { "unlimited": true }, - "id": "8a5e0b6d-99bb-a8c7-3455-cfaf3bd14fa2" + "id": "1aa9fcd5-3f89-4d7a-8c83-a911899fa23a" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Assign_case_returns_Bad_Request_response.freeze b/src/test/resources/cassettes/features/v2/Assign_case_returns_Bad_Request_response.freeze index 9f1a33f2842..2749371a9b7 100644 --- a/src/test/resources/cassettes/features/v2/Assign_case_returns_Bad_Request_response.freeze +++ b/src/test/resources/cassettes/features/v2/Assign_case_returns_Bad_Request_response.freeze @@ -1 +1 @@ -2024-02-12T13:25:55.665Z \ No newline at end of file +2024-02-14T18:55:15.651Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Assign_case_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Assign_case_returns_Bad_Request_response.json index 302979e7905..548158bc990 100644 --- a/src/test/resources/cassettes/features/v2/Assign_case_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Assign_case_returns_Bad_Request_response.json @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"4039be1a-5f87-4666-b986-a8396c0225c3\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-12T13:25:56.280897807Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"4039be1a-5f87-4666-b986-a8396c0225c3\",\"key\":\"DDFC-17\",\"priority\":\"P4\",\"public_id\":\"77\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"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\":{\"email\":\"team-intg-tools-libs-spam@datadoghq.com\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\"}}]}", + "body": "{\"data\":{\"id\":\"cf2e3b59-d504-4714-9853-38e4ceddb858\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-14T18:55:15.728783622Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"cf2e3b59-d504-4714-9853-38e4ceddb858\",\"key\":\"DDFC-184\",\"priority\":\"P4\",\"public_id\":\"244\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"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\":{\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"\"}}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -37,7 +37,7 @@ }, "headers": {}, "method": "POST", - "path": "/api/v2/cases/4039be1a-5f87-4666-b986-a8396c0225c3/assign", + "path": "/api/v2/cases/cf2e3b59-d504-4714-9853-38e4ceddb858/assign", "keepAlive": false, "secure": true }, @@ -57,6 +57,6 @@ "timeToLive": { "unlimited": true }, - "id": "14525dd1-f986-8c8a-6c89-279b8b2e7c21" + "id": "ca5f66cb-321f-82c3-eca1-6ff6645a4670" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Assign_case_returns_Not_Found_response.freeze b/src/test/resources/cassettes/features/v2/Assign_case_returns_Not_Found_response.freeze index 1f0ce04277c..dac002f7f37 100644 --- a/src/test/resources/cassettes/features/v2/Assign_case_returns_Not_Found_response.freeze +++ b/src/test/resources/cassettes/features/v2/Assign_case_returns_Not_Found_response.freeze @@ -1 +1 @@ -2024-02-07T13:09:08.433Z \ No newline at end of file +2024-02-14T18:55:15.832Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Assign_case_returns_Not_Found_response.json b/src/test/resources/cassettes/features/v2/Assign_case_returns_Not_Found_response.json index 1db66a9c933..70500e784ed 100644 --- a/src/test/resources/cassettes/features/v2/Assign_case_returns_Not_Found_response.json +++ b/src/test/resources/cassettes/features/v2/Assign_case_returns_Not_Found_response.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"data\":{\"attributes\":{\"email\":\"Test-Assign_case_returns_Not_Found_response-1707311348@datadoghq.com\",\"title\":\"user title\"},\"type\":\"users\"}}" + "json": "{\"data\":{\"attributes\":{\"email\":\"Test-Assign_case_returns_Not_Found_response-1707936915@datadoghq.com\",\"title\":\"user title\"},\"type\":\"users\"}}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"type\":\"users\",\"id\":\"14040f89-c5ba-11ee-87b5-f6892353f87d\",\"attributes\":{\"name\":null,\"handle\":\"test-assign_case_returns_not_found_response-1707311348@datadoghq.com\",\"created_at\":\"2024-02-07T13:09:08.546371+00:00\",\"modified_at\":\"2024-02-07T13:09:08.546371+00:00\",\"email\":\"test-assign_case_returns_not_found_response-1707311348@datadoghq.com\",\"icon\":\"https://secure.gravatar.com/avatar/e0a6ed9703a1166a2c07bca15e37d0d6?s=48&d=retro\",\"title\":\"user title\",\"verified\":false,\"service_account\":false,\"disabled\":false,\"allowed_login_methods\":[],\"status\":\"Pending\"},\"relationships\":{\"roles\":{\"data\":[]},\"org\":{\"data\":{\"type\":\"orgs\",\"id\":\"4dee724d-00cc-11ea-a77b-570c9d03c6c5\"}}}}}\n", + "body": "{\"data\":{\"type\":\"users\",\"id\":\"9740b08d-cb6a-11ee-8bd8-2a1a3c7b5bdd\",\"attributes\":{\"name\":null,\"handle\":\"test-assign_case_returns_not_found_response-1707936915@datadoghq.com\",\"created_at\":\"2024-02-14T18:55:15.963542+00:00\",\"modified_at\":\"2024-02-14T18:55:15.963542+00:00\",\"email\":\"test-assign_case_returns_not_found_response-1707936915@datadoghq.com\",\"icon\":\"https://secure.gravatar.com/avatar/379ecb2d1d9ca2e9ce66fa109609c256?s=48&d=retro\",\"title\":\"user title\",\"verified\":false,\"service_account\":false,\"disabled\":false,\"allowed_login_methods\":[],\"status\":\"Pending\"},\"relationships\":{\"roles\":{\"data\":[]},\"org\":{\"data\":{\"type\":\"orgs\",\"id\":\"4dee724d-00cc-11ea-a77b-570c9d03c6c5\"}}}}}\n", "headers": { "Content-Type": [ "application/json" @@ -27,13 +27,13 @@ "timeToLive": { "unlimited": true }, - "id": "1873797e-d953-ac5e-016a-7e24e4d69188" + "id": "ac945209-9870-2c65-40f2-a77b1c0de9a9" }, { "httpRequest": { "body": { "type": "JSON", - "json": "{\"data\":{\"attributes\":{\"assignee_id\":\"14040f89-c5ba-11ee-87b5-f6892353f87d\"},\"type\":\"case\"}}" + "json": "{\"data\":{\"attributes\":{\"assignee_id\":\"9740b08d-cb6a-11ee-8bd8-2a1a3c7b5bdd\"},\"type\":\"case\"}}" }, "headers": {}, "method": "POST", @@ -57,13 +57,13 @@ "timeToLive": { "unlimited": true }, - "id": "9018b92e-0bbe-dcd0-dc0b-9f6a749f7ce3" + "id": "7e5fd7e0-24a2-f324-beaf-9b46ee44611b" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v2/users/14040f89-c5ba-11ee-87b5-f6892353f87d", + "path": "/api/v2/users/9740b08d-cb6a-11ee-8bd8-2a1a3c7b5bdd", "keepAlive": false, "secure": true }, @@ -78,6 +78,6 @@ "timeToLive": { "unlimited": true }, - "id": "a3c3af12-5456-ebfd-d381-8f81136e3a00" + "id": "ffd0c82c-5ca2-cde9-54a4-a3f107c65693" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Assign_case_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Assign_case_returns_OK_response.freeze index 5b2d1f17d03..63999fedab2 100644 --- a/src/test/resources/cassettes/features/v2/Assign_case_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v2/Assign_case_returns_OK_response.freeze @@ -1 +1 @@ -2024-02-07T18:00:38.147Z \ No newline at end of file +2024-02-14T18:55:16.362Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Assign_case_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Assign_case_returns_OK_response.json index 33b0fb5b940..cd814bbb8c8 100644 --- a/src/test/resources/cassettes/features/v2/Assign_case_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Assign_case_returns_OK_response.json @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"a0801fce-a045-4b66-ad78-effcd959fa4f\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-07T18:00:38.353039559Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"a0801fce-a045-4b66-ad78-effcd959fa4f\",\"key\":\"DDFC-5\",\"priority\":\"P4\",\"public_id\":\"65\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"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\":{\"email\":\"team-intg-tools-libs-spam@datadoghq.com\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\"}}]}", + "body": "{\"data\":{\"id\":\"2d07d89b-2f91-47c2-b3ea-ee28ffee5b4c\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-14T18:55:16.445823452Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"2d07d89b-2f91-47c2-b3ea-ee28ffee5b4c\",\"key\":\"DDFC-185\",\"priority\":\"P4\",\"public_id\":\"245\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"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\":{\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"\"}}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -33,7 +33,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"data\":{\"attributes\":{\"email\":\"Test-Assign_case_returns_OK_response-1707328838@datadoghq.com\",\"title\":\"user title\"},\"type\":\"users\"}}" + "json": "{\"data\":{\"attributes\":{\"email\":\"Test-Assign_case_returns_OK_response-1707936916@datadoghq.com\",\"title\":\"user title\"},\"type\":\"users\"}}" }, "headers": {}, "method": "POST", @@ -42,7 +42,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"type\":\"users\",\"id\":\"cced7029-c5e2-11ee-ac63-c24751e8bab0\",\"attributes\":{\"name\":null,\"handle\":\"test-assign_case_returns_ok_response-1707328838@datadoghq.com\",\"created_at\":\"2024-02-07T18:00:38.645791+00:00\",\"modified_at\":\"2024-02-07T18:00:38.645791+00:00\",\"email\":\"test-assign_case_returns_ok_response-1707328838@datadoghq.com\",\"icon\":\"https://secure.gravatar.com/avatar/dd4005a3eca9e7c6aed30c77d193bc37?s=48&d=retro\",\"title\":\"user title\",\"verified\":false,\"service_account\":false,\"disabled\":false,\"allowed_login_methods\":[],\"status\":\"Pending\"},\"relationships\":{\"roles\":{\"data\":[]},\"org\":{\"data\":{\"type\":\"orgs\",\"id\":\"4dee724d-00cc-11ea-a77b-570c9d03c6c5\"}}}}}\n", + "body": "{\"data\":{\"type\":\"users\",\"id\":\"97a38d32-cb6a-11ee-9645-0a530ef9b7d3\",\"attributes\":{\"name\":null,\"handle\":\"test-assign_case_returns_ok_response-1707936916@datadoghq.com\",\"created_at\":\"2024-02-14T18:55:16.611469+00:00\",\"modified_at\":\"2024-02-14T18:55:16.611469+00:00\",\"email\":\"test-assign_case_returns_ok_response-1707936916@datadoghq.com\",\"icon\":\"https://secure.gravatar.com/avatar/982f69dc821d8ef307cfc8907452899b?s=48&d=retro\",\"title\":\"user title\",\"verified\":false,\"service_account\":false,\"disabled\":false,\"allowed_login_methods\":[],\"status\":\"Pending\"},\"relationships\":{\"roles\":{\"data\":[]},\"org\":{\"data\":{\"type\":\"orgs\",\"id\":\"4dee724d-00cc-11ea-a77b-570c9d03c6c5\"}}}}}\n", "headers": { "Content-Type": [ "application/json" @@ -57,22 +57,22 @@ "timeToLive": { "unlimited": true }, - "id": "cab62f98-b410-a5fa-7744-fb417093528b" + "id": "3a3b6859-0ae2-1086-b8f1-998b28be9d94" }, { "httpRequest": { "body": { "type": "JSON", - "json": "{\"data\":{\"attributes\":{\"assignee_id\":\"cced7029-c5e2-11ee-ac63-c24751e8bab0\"},\"type\":\"case\"}}" + "json": "{\"data\":{\"attributes\":{\"assignee_id\":\"97a38d32-cb6a-11ee-9645-0a530ef9b7d3\"},\"type\":\"case\"}}" }, "headers": {}, "method": "POST", - "path": "/api/v2/cases/a0801fce-a045-4b66-ad78-effcd959fa4f/assign", + "path": "/api/v2/cases/2d07d89b-2f91-47c2-b3ea-ee28ffee5b4c/assign", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"a0801fce-a045-4b66-ad78-effcd959fa4f\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-07T18:00:38.35304Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"a0801fce-a045-4b66-ad78-effcd959fa4f\",\"key\":\"DDFC-5\",\"modified_at\":\"2024-02-07T18:00:39.010235Z\",\"priority\":\"P4\",\"public_id\":\"65\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"relationships\":{\"assignee\":{\"data\":{\"id\":\"cced7029-c5e2-11ee-ac63-c24751e8bab0\",\"type\":\"user\"}},\"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\":{\"email\":\"team-intg-tools-libs-spam@datadoghq.com\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\"}},{\"id\":\"cced7029-c5e2-11ee-ac63-c24751e8bab0\",\"type\":\"user\",\"attributes\":{\"email\":\"test-assign_case_returns_ok_response-1707328838@datadoghq.com\",\"handle\":\"test-assign_case_returns_ok_response-1707328838@datadoghq.com\",\"name\":\"\"}}]}", + "body": "{\"data\":{\"id\":\"2d07d89b-2f91-47c2-b3ea-ee28ffee5b4c\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-14T18:55:16.445823Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"2d07d89b-2f91-47c2-b3ea-ee28ffee5b4c\",\"key\":\"DDFC-185\",\"modified_at\":\"2024-02-14T18:55:16.737803Z\",\"priority\":\"P4\",\"public_id\":\"245\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"relationships\":{\"assignee\":{\"data\":{\"id\":\"97a38d32-cb6a-11ee-9645-0a530ef9b7d3\",\"type\":\"user\"}},\"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\":{\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"\"}},{\"id\":\"97a38d32-cb6a-11ee-9645-0a530ef9b7d3\",\"type\":\"user\",\"attributes\":{\"email\":\"test-assign_case_returns_ok_response-1707936916@datadoghq.com\",\"handle\":\"test-assign_case_returns_ok_response-1707936916@datadoghq.com\",\"name\":\"\"}}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -87,13 +87,13 @@ "timeToLive": { "unlimited": true }, - "id": "7e6da293-a277-1b77-ea44-1ae9eb6f5a5e" + "id": "c6589b42-256f-5337-31e7-ef59e1f12c97" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v2/users/cced7029-c5e2-11ee-ac63-c24751e8bab0", + "path": "/api/v2/users/97a38d32-cb6a-11ee-9645-0a530ef9b7d3", "keepAlive": false, "secure": true }, @@ -108,6 +108,6 @@ "timeToLive": { "unlimited": true }, - "id": "fe717567-adbe-91c8-b084-60c20fa5c5e9" + "id": "47567621-c475-ed3f-0904-2cc0c8040eb0" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Create_a_case_returns_Bad_Request_response.freeze b/src/test/resources/cassettes/features/v2/Create_a_case_returns_Bad_Request_response.freeze index 14b7cfa0a25..3d430913723 100644 --- a/src/test/resources/cassettes/features/v2/Create_a_case_returns_Bad_Request_response.freeze +++ b/src/test/resources/cassettes/features/v2/Create_a_case_returns_Bad_Request_response.freeze @@ -1 +1 @@ -2024-02-07T13:09:09.415Z \ No newline at end of file +2024-02-14T18:55:16.995Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Create_a_case_returns_CREATED_response.freeze b/src/test/resources/cassettes/features/v2/Create_a_case_returns_CREATED_response.freeze index 1132edd29cf..d0a1a57a423 100644 --- a/src/test/resources/cassettes/features/v2/Create_a_case_returns_CREATED_response.freeze +++ b/src/test/resources/cassettes/features/v2/Create_a_case_returns_CREATED_response.freeze @@ -1 +1 @@ -2024-02-07T18:00:39.566Z \ No newline at end of file +2024-02-14T18:55:17.074Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Create_a_case_returns_CREATED_response.json b/src/test/resources/cassettes/features/v2/Create_a_case_returns_CREATED_response.json index 3dec97b0fb1..d5444a75557 100644 --- a/src/test/resources/cassettes/features/v2/Create_a_case_returns_CREATED_response.json +++ b/src/test/resources/cassettes/features/v2/Create_a_case_returns_CREATED_response.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"data\":{\"attributes\":{\"email\":\"Test-Create_a_case_returns_CREATED_response-1707328839@datadoghq.com\",\"title\":\"user title\"},\"type\":\"users\"}}" + "json": "{\"data\":{\"attributes\":{\"email\":\"Test-Create_a_case_returns_CREATED_response-1707936917@datadoghq.com\",\"title\":\"user title\"},\"type\":\"users\"}}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"type\":\"users\",\"id\":\"cda929dc-c5e2-11ee-883d-6ad03867f364\",\"attributes\":{\"name\":null,\"handle\":\"test-create_a_case_returns_created_response-1707328839@datadoghq.com\",\"created_at\":\"2024-02-07T18:00:39.876070+00:00\",\"modified_at\":\"2024-02-07T18:00:39.876070+00:00\",\"email\":\"test-create_a_case_returns_created_response-1707328839@datadoghq.com\",\"icon\":\"https://secure.gravatar.com/avatar/e564f62a22caae2dd8e878a8d73c6328?s=48&d=retro\",\"title\":\"user title\",\"verified\":false,\"service_account\":false,\"disabled\":false,\"allowed_login_methods\":[],\"status\":\"Pending\"},\"relationships\":{\"roles\":{\"data\":[]},\"org\":{\"data\":{\"type\":\"orgs\",\"id\":\"4dee724d-00cc-11ea-a77b-570c9d03c6c5\"}}}}}\n", + "body": "{\"data\":{\"type\":\"users\",\"id\":\"97fb5e7f-cb6a-11ee-8de6-d2393b962484\",\"attributes\":{\"name\":null,\"handle\":\"test-create_a_case_returns_created_response-1707936917@datadoghq.com\",\"created_at\":\"2024-02-14T18:55:17.186960+00:00\",\"modified_at\":\"2024-02-14T18:55:17.186960+00:00\",\"email\":\"test-create_a_case_returns_created_response-1707936917@datadoghq.com\",\"icon\":\"https://secure.gravatar.com/avatar/04ba872d0c124a11691bb75e2b774d08?s=48&d=retro\",\"title\":\"user title\",\"verified\":false,\"service_account\":false,\"disabled\":false,\"allowed_login_methods\":[],\"status\":\"Pending\"},\"relationships\":{\"roles\":{\"data\":[]},\"org\":{\"data\":{\"type\":\"orgs\",\"id\":\"4dee724d-00cc-11ea-a77b-570c9d03c6c5\"}}}}}\n", "headers": { "Content-Type": [ "application/json" @@ -27,13 +27,13 @@ "timeToLive": { "unlimited": true }, - "id": "36db4962-07ad-731f-d8d6-3ecdf39f6022" + "id": "3829ffdb-bba4-9b82-d5b2-2090560ccb0f" }, { "httpRequest": { "body": { "type": "JSON", - "json": "{\"data\":{\"attributes\":{\"priority\":\"NOT_DEFINED\",\"title\":\"Security breach investigation in 3b9b6a6abdcf0b9b\",\"type\":\"STANDARD\"},\"relationships\":{\"assignee\":{\"data\":{\"id\":\"cda929dc-c5e2-11ee-883d-6ad03867f364\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" + "json": "{\"data\":{\"attributes\":{\"priority\":\"NOT_DEFINED\",\"title\":\"Security breach investigation in 8216c516b64665ce\",\"type\":\"STANDARD\"},\"relationships\":{\"assignee\":{\"data\":{\"id\":\"97fb5e7f-cb6a-11ee-8de6-d2393b962484\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" }, "headers": {}, "method": "POST", @@ -42,7 +42,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"4045de8b-3808-4bb6-94c9-f55ced4811c7\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-07T18:00:40.197151067Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"4045de8b-3808-4bb6-94c9-f55ced4811c7\",\"key\":\"DDFC-6\",\"priority\":\"NOT_DEFINED\",\"public_id\":\"66\",\"status\":\"OPEN\",\"title\":\"Security breach investigation in 3b9b6a6abdcf0b9b\",\"type\":\"STANDARD\"},\"relationships\":{\"assignee\":{\"data\":{\"id\":\"cda929dc-c5e2-11ee-883d-6ad03867f364\",\"type\":\"user\"}},\"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\":{\"email\":\"team-intg-tools-libs-spam@datadoghq.com\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\"}},{\"id\":\"cda929dc-c5e2-11ee-883d-6ad03867f364\",\"type\":\"user\",\"attributes\":{\"email\":\"test-create_a_case_returns_created_response-1707328839@datadoghq.com\",\"handle\":\"test-create_a_case_returns_created_response-1707328839@datadoghq.com\",\"name\":\"\"}}]}", + "body": "{\"data\":{\"id\":\"93237ca1-b5ee-4116-9bfc-d94f99cd9629\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-14T18:55:17.301872096Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"93237ca1-b5ee-4116-9bfc-d94f99cd9629\",\"key\":\"DDFC-186\",\"priority\":\"NOT_DEFINED\",\"public_id\":\"246\",\"status\":\"OPEN\",\"title\":\"Security breach investigation in 8216c516b64665ce\",\"type\":\"STANDARD\"},\"relationships\":{\"assignee\":{\"data\":{\"id\":\"97fb5e7f-cb6a-11ee-8de6-d2393b962484\",\"type\":\"user\"}},\"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\":{\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"\"}},{\"id\":\"97fb5e7f-cb6a-11ee-8de6-d2393b962484\",\"type\":\"user\",\"attributes\":{\"email\":\"test-create_a_case_returns_created_response-1707936917@datadoghq.com\",\"handle\":\"test-create_a_case_returns_created_response-1707936917@datadoghq.com\",\"name\":\"\"}}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -57,13 +57,13 @@ "timeToLive": { "unlimited": true }, - "id": "dcf87674-5c60-25c6-0298-fd31cf40a6eb" + "id": "70b806f6-6f2a-e96d-e214-b38e37c4c92d" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v2/users/cda929dc-c5e2-11ee-883d-6ad03867f364", + "path": "/api/v2/users/97fb5e7f-cb6a-11ee-8de6-d2393b962484", "keepAlive": false, "secure": true }, @@ -78,6 +78,6 @@ "timeToLive": { "unlimited": true }, - "id": "36b3e412-5eb7-c7bc-9563-5e1f4e74d719" + "id": "fe0bc438-04b9-aab7-9fa0-a88b85ff1e27" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Get_the_details_of_a_case_returns_Not_Found_response.freeze b/src/test/resources/cassettes/features/v2/Get_the_details_of_a_case_returns_Not_Found_response.freeze index 3601a30777b..1f1e9770dce 100644 --- a/src/test/resources/cassettes/features/v2/Get_the_details_of_a_case_returns_Not_Found_response.freeze +++ b/src/test/resources/cassettes/features/v2/Get_the_details_of_a_case_returns_Not_Found_response.freeze @@ -1 +1 @@ -2024-02-07T13:09:09.931Z \ No newline at end of file +2024-02-14T18:55:17.678Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Get_the_details_of_a_case_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Get_the_details_of_a_case_returns_OK_response.freeze index a1285495136..ce3e1d89d5d 100644 --- a/src/test/resources/cassettes/features/v2/Get_the_details_of_a_case_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v2/Get_the_details_of_a_case_returns_OK_response.freeze @@ -1 +1 @@ -2024-02-07T18:00:40.743Z \ No newline at end of file +2024-02-14T18:55:17.758Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Get_the_details_of_a_case_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Get_the_details_of_a_case_returns_OK_response.json index e0a5f73312c..032ce8b3632 100644 --- a/src/test/resources/cassettes/features/v2/Get_the_details_of_a_case_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Get_the_details_of_a_case_returns_OK_response.json @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"8fd1a1c3-3f55-4d6b-807f-ca70bc0e5749\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-07T18:00:41.007812312Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"8fd1a1c3-3f55-4d6b-807f-ca70bc0e5749\",\"key\":\"DDFC-7\",\"priority\":\"P4\",\"public_id\":\"67\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"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\":{\"email\":\"team-intg-tools-libs-spam@datadoghq.com\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\"}}]}", + "body": "{\"data\":{\"id\":\"d981cc6f-654e-4528-8451-d3d99259d4d6\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-14T18:55:17.837538892Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"d981cc6f-654e-4528-8451-d3d99259d4d6\",\"key\":\"DDFC-187\",\"priority\":\"P4\",\"public_id\":\"247\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"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\":{\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"\"}}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -33,12 +33,12 @@ "httpRequest": { "headers": {}, "method": "GET", - "path": "/api/v2/cases/8fd1a1c3-3f55-4d6b-807f-ca70bc0e5749", + "path": "/api/v2/cases/d981cc6f-654e-4528-8451-d3d99259d4d6", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"8fd1a1c3-3f55-4d6b-807f-ca70bc0e5749\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-07T18:00:41.007812Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"8fd1a1c3-3f55-4d6b-807f-ca70bc0e5749\",\"key\":\"DDFC-7\",\"priority\":\"P4\",\"public_id\":\"67\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"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\":{\"email\":\"team-intg-tools-libs-spam@datadoghq.com\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\"}}]}", + "body": "{\"data\":{\"id\":\"d981cc6f-654e-4528-8451-d3d99259d4d6\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-14T18:55:17.837539Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"d981cc6f-654e-4528-8451-d3d99259d4d6\",\"key\":\"DDFC-187\",\"priority\":\"P4\",\"public_id\":\"247\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"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\":{\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"\"}}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "204e0ca3-57c0-d612-6f7b-5c5f14d218bc" + "id": "69d1db1f-9175-ddb9-57bd-a5f6e89ae333" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Unarchive_case_returns_Bad_Request_response.freeze b/src/test/resources/cassettes/features/v2/Unarchive_case_returns_Bad_Request_response.freeze index 5d3fc771c20..5b768a1c886 100644 --- a/src/test/resources/cassettes/features/v2/Unarchive_case_returns_Bad_Request_response.freeze +++ b/src/test/resources/cassettes/features/v2/Unarchive_case_returns_Bad_Request_response.freeze @@ -1 +1 @@ -2024-02-07T18:00:41.393Z \ No newline at end of file +2024-02-14T18:55:17.936Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Unarchive_case_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Unarchive_case_returns_Bad_Request_response.json index 2f6576601a4..e7f2b1f63c7 100644 --- a/src/test/resources/cassettes/features/v2/Unarchive_case_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Unarchive_case_returns_Bad_Request_response.json @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"91b52d3b-4d67-4b7f-ba4d-da67d8b46798\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-07T18:00:41.662578539Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"91b52d3b-4d67-4b7f-ba4d-da67d8b46798\",\"key\":\"DDFC-8\",\"priority\":\"P4\",\"public_id\":\"68\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"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\":{\"email\":\"team-intg-tools-libs-spam@datadoghq.com\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\"}}]}", + "body": "{\"data\":{\"id\":\"7c588891-1486-4cf6-992f-f0c3a97f0245\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-14T18:55:18.021909299Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"7c588891-1486-4cf6-992f-f0c3a97f0245\",\"key\":\"DDFC-188\",\"priority\":\"P4\",\"public_id\":\"248\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"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\":{\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"\"}}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -37,7 +37,7 @@ }, "headers": {}, "method": "POST", - "path": "/api/v2/cases/91b52d3b-4d67-4b7f-ba4d-da67d8b46798/unarchive", + "path": "/api/v2/cases/7c588891-1486-4cf6-992f-f0c3a97f0245/unarchive", "keepAlive": false, "secure": true }, @@ -57,6 +57,6 @@ "timeToLive": { "unlimited": true }, - "id": "5b23316a-1fcd-0359-328a-dfcea4f169b7" + "id": "3cb0b568-7b56-5978-fb3b-022598546774" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Unarchive_case_returns_Not_Found_response.freeze b/src/test/resources/cassettes/features/v2/Unarchive_case_returns_Not_Found_response.freeze index df6e8d3aea0..034f1d4aa81 100644 --- a/src/test/resources/cassettes/features/v2/Unarchive_case_returns_Not_Found_response.freeze +++ b/src/test/resources/cassettes/features/v2/Unarchive_case_returns_Not_Found_response.freeze @@ -1 +1 @@ -2024-02-07T13:09:10.329Z \ No newline at end of file +2024-02-14T18:55:18.130Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Unarchive_case_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Unarchive_case_returns_OK_response.freeze index c639a2463ee..df7e85e9f41 100644 --- a/src/test/resources/cassettes/features/v2/Unarchive_case_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v2/Unarchive_case_returns_OK_response.freeze @@ -1 +1 @@ -2024-02-07T18:00:42.027Z \ No newline at end of file +2024-02-14T18:55:18.220Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Unarchive_case_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Unarchive_case_returns_OK_response.json index e64878f2854..3c330b2523f 100644 --- a/src/test/resources/cassettes/features/v2/Unarchive_case_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Unarchive_case_returns_OK_response.json @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"020e2ce7-9fe8-4273-81ae-1e5873fba9d3\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-07T18:00:42.286687881Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"020e2ce7-9fe8-4273-81ae-1e5873fba9d3\",\"key\":\"DDFC-9\",\"priority\":\"P4\",\"public_id\":\"69\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"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\":{\"email\":\"team-intg-tools-libs-spam@datadoghq.com\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\"}}]}", + "body": "{\"data\":{\"id\":\"56b03839-5199-4207-94e6-648f5c363d1d\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-14T18:55:18.285988591Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"56b03839-5199-4207-94e6-648f5c363d1d\",\"key\":\"DDFC-189\",\"priority\":\"P4\",\"public_id\":\"249\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"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\":{\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"\"}}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -37,12 +37,12 @@ }, "headers": {}, "method": "POST", - "path": "/api/v2/cases/020e2ce7-9fe8-4273-81ae-1e5873fba9d3/unarchive", + "path": "/api/v2/cases/56b03839-5199-4207-94e6-648f5c363d1d/unarchive", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"020e2ce7-9fe8-4273-81ae-1e5873fba9d3\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-07T18:00:42.286688Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"020e2ce7-9fe8-4273-81ae-1e5873fba9d3\",\"key\":\"DDFC-9\",\"priority\":\"P4\",\"public_id\":\"69\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"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\":{\"email\":\"team-intg-tools-libs-spam@datadoghq.com\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\"}}]}", + "body": "{\"data\":{\"id\":\"56b03839-5199-4207-94e6-648f5c363d1d\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-14T18:55:18.285989Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"56b03839-5199-4207-94e6-648f5c363d1d\",\"key\":\"DDFC-189\",\"priority\":\"P4\",\"public_id\":\"249\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"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\":{\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"\"}}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -57,6 +57,6 @@ "timeToLive": { "unlimited": true }, - "id": "b0b5632a-23eb-2bb3-7871-201d11f2f4ea" + "id": "4916ad79-2e8e-c09f-8dd7-b6750db0879d" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Unassign_case_returns_Bad_Request_response.freeze b/src/test/resources/cassettes/features/v2/Unassign_case_returns_Bad_Request_response.freeze index a7b2a9e33bf..5c53ccfe49e 100644 --- a/src/test/resources/cassettes/features/v2/Unassign_case_returns_Bad_Request_response.freeze +++ b/src/test/resources/cassettes/features/v2/Unassign_case_returns_Bad_Request_response.freeze @@ -1 +1 @@ -2024-02-07T18:00:42.637Z \ No newline at end of file +2024-02-14T18:55:18.364Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Unassign_case_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Unassign_case_returns_Bad_Request_response.json index bf68eabdd01..0a6614d4f78 100644 --- a/src/test/resources/cassettes/features/v2/Unassign_case_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Unassign_case_returns_Bad_Request_response.json @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"8a6e4254-7429-4398-99c2-ba9363fb3f98\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-07T18:00:42.908434394Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"8a6e4254-7429-4398-99c2-ba9363fb3f98\",\"key\":\"DDFC-10\",\"priority\":\"P4\",\"public_id\":\"70\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"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\":{\"email\":\"team-intg-tools-libs-spam@datadoghq.com\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\"}}]}", + "body": "{\"data\":{\"id\":\"4c89618c-11cc-40ba-bc6c-000e862910b1\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-14T18:55:18.434117143Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"4c89618c-11cc-40ba-bc6c-000e862910b1\",\"key\":\"DDFC-190\",\"priority\":\"P4\",\"public_id\":\"250\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"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\":{\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"\"}}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -37,7 +37,7 @@ }, "headers": {}, "method": "POST", - "path": "/api/v2/cases/8a6e4254-7429-4398-99c2-ba9363fb3f98/unassign", + "path": "/api/v2/cases/4c89618c-11cc-40ba-bc6c-000e862910b1/unassign", "keepAlive": false, "secure": true }, @@ -57,6 +57,6 @@ "timeToLive": { "unlimited": true }, - "id": "b1fb0b97-98b0-316c-65c7-308eace539bb" + "id": "55fd3887-c946-0790-f62f-b43baff474d6" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Unassign_case_returns_Not_Found_response.freeze b/src/test/resources/cassettes/features/v2/Unassign_case_returns_Not_Found_response.freeze index fee1f808458..6a08f9742dc 100644 --- a/src/test/resources/cassettes/features/v2/Unassign_case_returns_Not_Found_response.freeze +++ b/src/test/resources/cassettes/features/v2/Unassign_case_returns_Not_Found_response.freeze @@ -1 +1 @@ -2024-02-07T13:09:10.714Z \ No newline at end of file +2024-02-14T18:55:18.522Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Unassign_case_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Unassign_case_returns_OK_response.freeze index 0a5d0226a27..e57766f0dfb 100644 --- a/src/test/resources/cassettes/features/v2/Unassign_case_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v2/Unassign_case_returns_OK_response.freeze @@ -1 +1 @@ -2024-02-07T18:00:43.176Z \ No newline at end of file +2024-02-14T18:55:18.613Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Unassign_case_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Unassign_case_returns_OK_response.json index ff9ed60198c..46357465fe9 100644 --- a/src/test/resources/cassettes/features/v2/Unassign_case_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Unassign_case_returns_OK_response.json @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"8c5de575-685c-4ac4-a78a-9774c4f2160b\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-07T18:00:43.427988311Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"8c5de575-685c-4ac4-a78a-9774c4f2160b\",\"key\":\"DDFC-11\",\"priority\":\"P4\",\"public_id\":\"71\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"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\":{\"email\":\"team-intg-tools-libs-spam@datadoghq.com\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\"}}]}", + "body": "{\"data\":{\"id\":\"fa3c26fc-fada-4308-8888-4067d97acf06\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-14T18:55:18.689935858Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"fa3c26fc-fada-4308-8888-4067d97acf06\",\"key\":\"DDFC-191\",\"priority\":\"P4\",\"public_id\":\"251\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"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\":{\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"\"}}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -37,12 +37,12 @@ }, "headers": {}, "method": "POST", - "path": "/api/v2/cases/8c5de575-685c-4ac4-a78a-9774c4f2160b/unassign", + "path": "/api/v2/cases/fa3c26fc-fada-4308-8888-4067d97acf06/unassign", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"8c5de575-685c-4ac4-a78a-9774c4f2160b\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-07T18:00:43.427988Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"8c5de575-685c-4ac4-a78a-9774c4f2160b\",\"key\":\"DDFC-11\",\"priority\":\"P4\",\"public_id\":\"71\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"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\":{\"email\":\"team-intg-tools-libs-spam@datadoghq.com\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\"}}]}", + "body": "{\"data\":{\"id\":\"fa3c26fc-fada-4308-8888-4067d97acf06\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-14T18:55:18.689936Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"fa3c26fc-fada-4308-8888-4067d97acf06\",\"key\":\"DDFC-191\",\"priority\":\"P4\",\"public_id\":\"251\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"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\":{\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"\"}}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -57,6 +57,6 @@ "timeToLive": { "unlimited": true }, - "id": "2f95a0d5-20ae-92d5-f3e1-ac541bfe4bd0" + "id": "3f0d8b4d-9de6-a8b7-1b20-a4dd49686560" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_case_priority_returns_Bad_Request_response.freeze b/src/test/resources/cassettes/features/v2/Update_case_priority_returns_Bad_Request_response.freeze index da678b9cae1..b44760c0495 100644 --- a/src/test/resources/cassettes/features/v2/Update_case_priority_returns_Bad_Request_response.freeze +++ b/src/test/resources/cassettes/features/v2/Update_case_priority_returns_Bad_Request_response.freeze @@ -1 +1 @@ -2024-02-07T18:00:43.807Z \ No newline at end of file +2024-02-14T18:55:18.767Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_case_priority_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Update_case_priority_returns_Bad_Request_response.json index 1bd6aa9d590..661153e6133 100644 --- a/src/test/resources/cassettes/features/v2/Update_case_priority_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Update_case_priority_returns_Bad_Request_response.json @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"09077090-4370-4539-b9e5-445173f4fced\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-07T18:00:44.06773183Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"09077090-4370-4539-b9e5-445173f4fced\",\"key\":\"DDFC-12\",\"priority\":\"P4\",\"public_id\":\"72\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"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\":{\"email\":\"team-intg-tools-libs-spam@datadoghq.com\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\"}}]}", + "body": "{\"data\":{\"id\":\"683c81be-fa27-42c8-957c-897923a2f660\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-14T18:55:18.846163387Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"683c81be-fa27-42c8-957c-897923a2f660\",\"key\":\"DDFC-192\",\"priority\":\"P4\",\"public_id\":\"252\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"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\":{\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"\"}}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -37,12 +37,12 @@ }, "headers": {}, "method": "POST", - "path": "/api/v2/cases/09077090-4370-4539-b9e5-445173f4fced/priority", + "path": "/api/v2/cases/683c81be-fa27-42c8-957c-897923a2f660/priority", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"errors\":[{\"title\":\"Generic Error\",\"detail\":\"invalid priority P1234. Must be one of P3, P4, P5, NOT_DEFINED, P1, P2\"}]}", + "body": "{\"errors\":[{\"title\":\"Generic Error\",\"detail\":\"invalid priority P1234. Must be one of P1, P2, P3, P4, P5, NOT_DEFINED\"}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -57,6 +57,6 @@ "timeToLive": { "unlimited": true }, - "id": "e2cc2f56-78c1-0d29-21fd-c3df2edc80aa" + "id": "66ade7a1-8fcb-23e3-0477-becade8c4e94" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_case_priority_returns_Not_Found_response.freeze b/src/test/resources/cassettes/features/v2/Update_case_priority_returns_Not_Found_response.freeze index 33edf5b4580..e6fee30e9dc 100644 --- a/src/test/resources/cassettes/features/v2/Update_case_priority_returns_Not_Found_response.freeze +++ b/src/test/resources/cassettes/features/v2/Update_case_priority_returns_Not_Found_response.freeze @@ -1 +1 @@ -2024-02-07T13:09:11.084Z \ No newline at end of file +2024-02-14T18:55:18.927Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_case_priority_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Update_case_priority_returns_OK_response.freeze index ac293b567ad..42fe59de7b3 100644 --- a/src/test/resources/cassettes/features/v2/Update_case_priority_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v2/Update_case_priority_returns_OK_response.freeze @@ -1 +1 @@ -2024-02-07T18:00:44.433Z \ No newline at end of file +2024-02-14T18:55:19.004Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_case_priority_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Update_case_priority_returns_OK_response.json index 44b139088e6..f19d895dc46 100644 --- a/src/test/resources/cassettes/features/v2/Update_case_priority_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Update_case_priority_returns_OK_response.json @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"60fdb1eb-209a-4072-9db3-4d08a9c4180c\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-07T18:00:44.723781245Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"60fdb1eb-209a-4072-9db3-4d08a9c4180c\",\"key\":\"DDFC-13\",\"priority\":\"P4\",\"public_id\":\"73\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"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\":{\"email\":\"team-intg-tools-libs-spam@datadoghq.com\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\"}}]}", + "body": "{\"data\":{\"id\":\"c55de906-a08b-4916-ade3-5f1b268379c3\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-14T18:55:19.080339451Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"c55de906-a08b-4916-ade3-5f1b268379c3\",\"key\":\"DDFC-193\",\"priority\":\"P4\",\"public_id\":\"253\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"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\":{\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"\"}}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -37,12 +37,12 @@ }, "headers": {}, "method": "POST", - "path": "/api/v2/cases/60fdb1eb-209a-4072-9db3-4d08a9c4180c/priority", + "path": "/api/v2/cases/c55de906-a08b-4916-ade3-5f1b268379c3/priority", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"60fdb1eb-209a-4072-9db3-4d08a9c4180c\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-07T18:00:44.723781Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"60fdb1eb-209a-4072-9db3-4d08a9c4180c\",\"key\":\"DDFC-13\",\"modified_at\":\"2024-02-07T18:00:45.028076Z\",\"priority\":\"P3\",\"public_id\":\"73\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"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\":{\"email\":\"team-intg-tools-libs-spam@datadoghq.com\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\"}}]}", + "body": "{\"data\":{\"id\":\"c55de906-a08b-4916-ade3-5f1b268379c3\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-14T18:55:19.080339Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"c55de906-a08b-4916-ade3-5f1b268379c3\",\"key\":\"DDFC-193\",\"modified_at\":\"2024-02-14T18:55:19.160763Z\",\"priority\":\"P3\",\"public_id\":\"253\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"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\":{\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"\"}}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -57,6 +57,6 @@ "timeToLive": { "unlimited": true }, - "id": "10019189-077c-6bb2-5820-1d3153e262b7" + "id": "ef7275fd-a837-9e37-89c1-47bc672c6205" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_case_status_returns_Bad_Request_response.freeze b/src/test/resources/cassettes/features/v2/Update_case_status_returns_Bad_Request_response.freeze index 8a9c88da383..1c1c338c0f2 100644 --- a/src/test/resources/cassettes/features/v2/Update_case_status_returns_Bad_Request_response.freeze +++ b/src/test/resources/cassettes/features/v2/Update_case_status_returns_Bad_Request_response.freeze @@ -1 +1 @@ -2024-02-07T18:00:45.069Z \ No newline at end of file +2024-02-14T18:55:19.178Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_case_status_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Update_case_status_returns_Bad_Request_response.json index 4c1df7dc15c..1b5b3d7addc 100644 --- a/src/test/resources/cassettes/features/v2/Update_case_status_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Update_case_status_returns_Bad_Request_response.json @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"243feddb-69f8-4e22-988a-8ae954b643fa\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-07T18:00:45.265151303Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"243feddb-69f8-4e22-988a-8ae954b643fa\",\"key\":\"DDFC-14\",\"priority\":\"P4\",\"public_id\":\"74\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"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\":{\"email\":\"team-intg-tools-libs-spam@datadoghq.com\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\"}}]}", + "body": "{\"data\":{\"id\":\"1732a7a1-667c-45e4-ad8c-73a1c1f9f6f0\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-14T18:55:19.251201316Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"1732a7a1-667c-45e4-ad8c-73a1c1f9f6f0\",\"key\":\"DDFC-194\",\"priority\":\"P4\",\"public_id\":\"254\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"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\":{\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"\"}}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -37,12 +37,12 @@ }, "headers": {}, "method": "POST", - "path": "/api/v2/cases/243feddb-69f8-4e22-988a-8ae954b643fa/status", + "path": "/api/v2/cases/1732a7a1-667c-45e4-ad8c-73a1c1f9f6f0/status", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"errors\":[{\"title\":\"Generic Error\",\"detail\":\"invalid status OPENED. Must be one of CLOSED, SUNKNOWN, OPEN, IN_PROGRESS\"}]}", + "body": "{\"errors\":[{\"title\":\"Generic Error\",\"detail\":\"invalid status OPENED. Must be one of SUNKNOWN, OPEN, IN_PROGRESS, CLOSED\"}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -57,6 +57,6 @@ "timeToLive": { "unlimited": true }, - "id": "c5f2d986-2127-f3dd-8520-055bb7d96b9e" + "id": "5a6cd045-981f-051d-23b9-74a2b1763207" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_case_status_returns_Not_Found_response.freeze b/src/test/resources/cassettes/features/v2/Update_case_status_returns_Not_Found_response.freeze index 52aa1297fc5..3725bea8b61 100644 --- a/src/test/resources/cassettes/features/v2/Update_case_status_returns_Not_Found_response.freeze +++ b/src/test/resources/cassettes/features/v2/Update_case_status_returns_Not_Found_response.freeze @@ -1 +1 @@ -2024-02-07T13:09:11.471Z \ No newline at end of file +2024-02-14T18:55:19.338Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_case_status_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Update_case_status_returns_OK_response.freeze index 2c362818582..a7c1161cdca 100644 --- a/src/test/resources/cassettes/features/v2/Update_case_status_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v2/Update_case_status_returns_OK_response.freeze @@ -1 +1 @@ -2024-02-07T18:00:45.628Z \ No newline at end of file +2024-02-14T18:55:19.415Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_case_status_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Update_case_status_returns_OK_response.json index 50c77132666..06ef9ebc0be 100644 --- a/src/test/resources/cassettes/features/v2/Update_case_status_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Update_case_status_returns_OK_response.json @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"ceae478d-b504-4cb7-bad2-e8f8e5a0a77b\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-07T18:00:45.905784777Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"ceae478d-b504-4cb7-bad2-e8f8e5a0a77b\",\"key\":\"DDFC-15\",\"priority\":\"P4\",\"public_id\":\"75\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"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\":{\"email\":\"team-intg-tools-libs-spam@datadoghq.com\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\"}}]}", + "body": "{\"data\":{\"id\":\"d1633979-1770-4e5b-a2d0-2ede9f2a8f43\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-14T18:55:19.487094769Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"d1633979-1770-4e5b-a2d0-2ede9f2a8f43\",\"key\":\"DDFC-195\",\"priority\":\"P4\",\"public_id\":\"255\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"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\":{\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"\"}}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -37,12 +37,12 @@ }, "headers": {}, "method": "POST", - "path": "/api/v2/cases/ceae478d-b504-4cb7-bad2-e8f8e5a0a77b/status", + "path": "/api/v2/cases/d1633979-1770-4e5b-a2d0-2ede9f2a8f43/status", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"ceae478d-b504-4cb7-bad2-e8f8e5a0a77b\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-07T18:00:45.905785Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"ceae478d-b504-4cb7-bad2-e8f8e5a0a77b\",\"key\":\"DDFC-15\",\"modified_at\":\"2024-02-07T18:00:46.22949Z\",\"priority\":\"P4\",\"public_id\":\"75\",\"status\":\"IN_PROGRESS\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"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\":{\"email\":\"team-intg-tools-libs-spam@datadoghq.com\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\"}}]}", + "body": "{\"data\":{\"id\":\"d1633979-1770-4e5b-a2d0-2ede9f2a8f43\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-14T18:55:19.487095Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"d1633979-1770-4e5b-a2d0-2ede9f2a8f43\",\"key\":\"DDFC-195\",\"modified_at\":\"2024-02-14T18:55:19.559421Z\",\"priority\":\"P4\",\"public_id\":\"255\",\"status\":\"IN_PROGRESS\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"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\":{\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"\"}}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -57,6 +57,6 @@ "timeToLive": { "unlimited": true }, - "id": "2fa23473-52a0-ad7e-0155-a0f8fd387cf5" + "id": "2e66ff37-7515-540b-c4d1-467ad830a2f7" } ] \ No newline at end of file diff --git a/src/test/resources/com/datadog/api/client/v2/api/cases.feature b/src/test/resources/com/datadog/api/client/v2/api/case_management.feature similarity index 76% rename from src/test/resources/com/datadog/api/client/v2/api/cases.feature rename to src/test/resources/com/datadog/api/client/v2/api/case_management.feature index 5a0eca61555..2d99e555384 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/cases.feature +++ b/src/test/resources/com/datadog/api/client/v2/api/case_management.feature @@ -1,11 +1,11 @@ -@endpoint(cases) @endpoint(cases-v2) -Feature: Cases - View and manage cases within Datadog +@endpoint(case-management) @endpoint(case-management-v2) +Feature: Case Management + View and manage cases and project within Case Management Background: Given a valid "apiKeyAuth" key in the system And a valid "appKeyAuth" key in the system - And an instance of "Cases" API + And an instance of "CaseManagement" API @team:DataDog/case-management Scenario: Archive case returns "Bad Request" response @@ -87,6 +87,45 @@ Feature: Cases When the request is sent Then the response status is 404 Not Found + @generated @skip @team:DataDog/case-management + Scenario: Create a project returns "Bad Request" response + Given new "CreateProject" request + And body with value {"data": {"attributes": {"key": "SEC", "name": "Security Investigation"}, "type": "project"}} + When the request is sent + Then the response status is 400 Bad Request + + @generated @skip @team:DataDog/case-management + Scenario: Create a project returns "CREATED" response + Given new "CreateProject" request + And body with value {"data": {"attributes": {"key": "SEC", "name": "Security Investigation"}, "type": "project"}} + When the request is sent + Then the response status is 201 CREATED + + @generated @skip @team:DataDog/case-management + Scenario: Create a project returns "Not Found" response + Given new "CreateProject" request + And body with value {"data": {"attributes": {"key": "SEC", "name": "Security Investigation"}, "type": "project"}} + When the request is sent + Then the response status is 404 Not Found + + @generated @skip @team:DataDog/case-management + Scenario: Get all projects returns "Bad Request" response + Given new "GetProjects" request + When the request is sent + Then the response status is 400 Bad Request + + @generated @skip @team:DataDog/case-management + Scenario: Get all projects returns "Not Found" response + Given new "GetProjects" request + When the request is sent + Then the response status is 404 Not Found + + @generated @skip @team:DataDog/case-management + Scenario: Get all projects returns "OK" response + Given new "GetProjects" request + When the request is sent + Then the response status is 200 OK + @skip @team:DataDog/case-management Scenario: Get the details of a case returns "Bad Request" response Given new "GetCase" request @@ -110,6 +149,41 @@ Feature: Cases When the request is sent Then the response status is 200 OK + @generated @skip @team:DataDog/case-management + Scenario: Get the details of a project returns "Bad Request" response + Given new "GetProject" request + And request contains "project_id" parameter from "REPLACE.ME" + When the request is sent + Then the response status is 400 Bad Request + + @generated @skip @team:DataDog/case-management + Scenario: Get the details of a project returns "Not Found" response + Given new "GetProject" request + And request contains "project_id" parameter from "REPLACE.ME" + When the request is sent + Then the response status is 404 Not Found + + @generated @skip @team:DataDog/case-management + Scenario: Get the details of a project returns "OK" response + Given new "GetProject" request + And request contains "project_id" parameter from "REPLACE.ME" + When the request is sent + Then the response status is 200 OK + + @generated @skip @team:DataDog/case-management + Scenario: Remove a project returns "API error response" response + Given new "DeleteProject" request + And request contains "project_id" parameter from "REPLACE.ME" + When the request is sent + Then the response status is 404 API error response + + @generated @skip @team:DataDog/case-management + Scenario: Remove a project returns "No Content" response + Given new "DeleteProject" request + And request contains "project_id" parameter from "REPLACE.ME" + When the request is sent + Then the response status is 204 No Content + @generated @skip @team:DataDog/case-management Scenario: Search cases returns "Bad Request" response Given new "SearchCases" request diff --git a/src/test/resources/com/datadog/api/client/v2/api/cases_projects.feature b/src/test/resources/com/datadog/api/client/v2/api/cases_projects.feature deleted file mode 100644 index 1b3fe63e499..00000000000 --- a/src/test/resources/com/datadog/api/client/v2/api/cases_projects.feature +++ /dev/null @@ -1,82 +0,0 @@ -@endpoint(cases-projects) @endpoint(cases-projects-v2) -Feature: Cases Projects - View and manage project within Case Management - - Background: - Given a valid "apiKeyAuth" key in the system - And a valid "appKeyAuth" key in the system - And an instance of "CasesProjects" API - - @generated @skip @team:DataDog/case-management - Scenario: Create a project returns "Bad Request" response - Given new "CreateProject" request - And body with value {"data": {"attributes": {"key": "SEC", "name": "Security Investigation"}, "type": "project"}} - When the request is sent - Then the response status is 400 Bad Request - - @generated @skip @team:DataDog/case-management - Scenario: Create a project returns "CREATED" response - Given new "CreateProject" request - And body with value {"data": {"attributes": {"key": "SEC", "name": "Security Investigation"}, "type": "project"}} - When the request is sent - Then the response status is 201 CREATED - - @generated @skip @team:DataDog/case-management - Scenario: Create a project returns "Not Found" response - Given new "CreateProject" request - And body with value {"data": {"attributes": {"key": "SEC", "name": "Security Investigation"}, "type": "project"}} - When the request is sent - Then the response status is 404 Not Found - - @generated @skip @team:DataDog/case-management - Scenario: Get all projects returns "Bad Request" response - Given new "GetProjects" request - When the request is sent - Then the response status is 400 Bad Request - - @generated @skip @team:DataDog/case-management - Scenario: Get all projects returns "Not Found" response - Given new "GetProjects" request - When the request is sent - Then the response status is 404 Not Found - - @generated @skip @team:DataDog/case-management - Scenario: Get all projects returns "OK" response - Given new "GetProjects" request - When the request is sent - Then the response status is 200 OK - - @generated @skip @team:DataDog/case-management - Scenario: Get the details of a project returns "Bad Request" response - Given new "GetProject" request - And request contains "project_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 400 Bad Request - - @generated @skip @team:DataDog/case-management - Scenario: Get the details of a project returns "Not Found" response - Given new "GetProject" request - And request contains "project_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 404 Not Found - - @generated @skip @team:DataDog/case-management - Scenario: Get the details of a project returns "OK" response - Given new "GetProject" request - And request contains "project_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 200 OK - - @generated @skip @team:DataDog/case-management - Scenario: Remove a project returns "API error response" response - Given new "DeleteProject" request - And request contains "project_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 404 API error response - - @generated @skip @team:DataDog/case-management - Scenario: Remove a project returns "No Content" response - Given new "DeleteProject" request - And request contains "project_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 204 No Content diff --git a/src/test/resources/com/datadog/api/client/v2/api/given.json b/src/test/resources/com/datadog/api/client/v2/api/given.json index cbaee96cb71..8c2a75b9b1b 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/given.json +++ b/src/test/resources/com/datadog/api/client/v2/api/given.json @@ -69,7 +69,7 @@ "source": "data", "step": "there is a valid \"case\" in the system", "key": "case", - "tag": "Cases", + "tag": "Case Management", "operationId": "CreateCase" }, { diff --git a/src/test/resources/com/datadog/api/client/v2/api/undo.json b/src/test/resources/com/datadog/api/client/v2/api/undo.json index 1268756c9d2..f58d4d35346 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/undo.json +++ b/src/test/resources/com/datadog/api/client/v2/api/undo.json @@ -221,25 +221,25 @@ } }, "SearchCases": { - "tag": "Cases", + "tag": "Case Management", "undo": { "type": "safe" } }, "CreateCase": { - "tag": "Cases", + "tag": "Case Management", "undo": { "type": "safe" } }, "GetProjects": { - "tag": "Cases Projects", + "tag": "Case Management", "undo": { "type": "safe" } }, "CreateProject": { - "tag": "Cases Projects", + "tag": "Case Management", "undo": { "operationId": "DeleteProject", "parameters": [ @@ -252,55 +252,55 @@ } }, "DeleteProject": { - "tag": "Cases Projects", + "tag": "Case Management", "undo": { "type": "idempotent" } }, "GetProject": { - "tag": "Cases Projects", + "tag": "Case Management", "undo": { "type": "safe" } }, "GetCase": { - "tag": "Cases", + "tag": "Case Management", "undo": { "type": "safe" } }, "ArchiveCase": { - "tag": "Cases", + "tag": "Case Management", "undo": { "type": "idempotent" } }, "AssignCase": { - "tag": "Cases", + "tag": "Case Management", "undo": { "type": "idempotent" } }, "UpdatePriority": { - "tag": "Cases", + "tag": "Case Management", "undo": { "type": "idempotent" } }, "UpdateStatus": { - "tag": "Cases", + "tag": "Case Management", "undo": { "type": "idempotent" } }, "UnarchiveCase": { - "tag": "Cases", + "tag": "Case Management", "undo": { "type": "idempotent" } }, "UnassignCase": { - "tag": "Cases", + "tag": "Case Management", "undo": { "type": "idempotent" }