@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class CaseManagementApi extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CaseManagementApi.SearchCasesOptionalParameters
Manage optional parameters to searchCases.
|
| Constructor and Description |
|---|
CaseManagementApi() |
CaseManagementApi(ApiClient apiClient) |
public CaseManagementApi()
public CaseManagementApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic CaseResponse archiveCase(String caseId, CaseEmptyRequest body) throws ApiException
See archiveCaseWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.CaseEmptyRequest).
caseId - Case's UUID or key (required)body - Archive case payload (required)ApiException - if fails to make API callpublic CompletableFuture<CaseResponse> archiveCaseAsync(String caseId, CaseEmptyRequest body)
See archiveCaseWithHttpInfoAsync(java.lang.String, com.datadog.api.client.v2.model.CaseEmptyRequest).
caseId - Case's UUID or key (required)body - Archive case payload (required)public ApiResponse<CaseResponse> archiveCaseWithHttpInfo(String caseId, CaseEmptyRequest body) throws ApiException
caseId - Case's UUID or key (required)body - Archive case payload (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<CaseResponse>> archiveCaseWithHttpInfoAsync(String caseId, CaseEmptyRequest body)
See archiveCaseWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.CaseEmptyRequest).
caseId - Case's UUID or key (required)body - Archive case payload (required)public CaseResponse assignCase(String caseId, CaseAssignRequest body) throws ApiException
See assignCaseWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.CaseAssignRequest).
caseId - Case's UUID or key (required)body - Assign case payload (required)ApiException - if fails to make API callpublic CompletableFuture<CaseResponse> assignCaseAsync(String caseId, CaseAssignRequest body)
See assignCaseWithHttpInfoAsync(java.lang.String, com.datadog.api.client.v2.model.CaseAssignRequest).
caseId - Case's UUID or key (required)body - Assign case payload (required)public ApiResponse<CaseResponse> assignCaseWithHttpInfo(String caseId, CaseAssignRequest body) throws ApiException
caseId - Case's UUID or key (required)body - Assign case payload (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<CaseResponse>> assignCaseWithHttpInfoAsync(String caseId, CaseAssignRequest body)
See assignCaseWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.CaseAssignRequest).
caseId - Case's UUID or key (required)body - Assign case payload (required)public CaseResponse createCase(CaseCreateRequest body) throws ApiException
See createCaseWithHttpInfo(com.datadog.api.client.v2.model.CaseCreateRequest).
body - Case payload (required)ApiException - if fails to make API callpublic CompletableFuture<CaseResponse> createCaseAsync(CaseCreateRequest body)
See createCaseWithHttpInfoAsync(com.datadog.api.client.v2.model.CaseCreateRequest).
body - Case payload (required)public ApiResponse<CaseResponse> createCaseWithHttpInfo(CaseCreateRequest body) throws ApiException
body - Case payload (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 201 | CREATED | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<CaseResponse>> createCaseWithHttpInfoAsync(CaseCreateRequest body)
See createCaseWithHttpInfo(com.datadog.api.client.v2.model.CaseCreateRequest).
body - Case payload (required)public ProjectResponse createProject(ProjectCreateRequest body) throws ApiException
See createProjectWithHttpInfo(com.datadog.api.client.v2.model.ProjectCreateRequest).
body - Project payload (required)ApiException - if fails to make API callpublic CompletableFuture<ProjectResponse> createProjectAsync(ProjectCreateRequest body)
See createProjectWithHttpInfoAsync(com.datadog.api.client.v2.model.ProjectCreateRequest).
body - Project payload (required)public ApiResponse<ProjectResponse> createProjectWithHttpInfo(ProjectCreateRequest body) throws ApiException
body - Project payload (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 201 | CREATED | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<ProjectResponse>> createProjectWithHttpInfoAsync(ProjectCreateRequest body)
See createProjectWithHttpInfo(com.datadog.api.client.v2.model.ProjectCreateRequest).
body - Project payload (required)public void deleteProject(String projectId) throws ApiException
projectId - Project UUID (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteProjectAsync(String projectId)
projectId - Project UUID (required)public ApiResponse<Void> deleteProjectWithHttpInfo(String projectId) throws ApiException
id.projectId - Project UUID (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | No Content | - |
| 403 | Forbidden | - |
| 404 | API error response | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteProjectWithHttpInfoAsync(String projectId)
projectId - Project UUID (required)public CaseResponse getCase(String caseId) throws ApiException
caseId - Case's UUID or key (required)ApiException - if fails to make API callpublic CompletableFuture<CaseResponse> getCaseAsync(String caseId)
caseId - Case's UUID or key (required)public ApiResponse<CaseResponse> getCaseWithHttpInfo(String caseId) throws ApiException
case_idcaseId - Case's UUID or key (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<CaseResponse>> getCaseWithHttpInfoAsync(String caseId)
caseId - Case's UUID or key (required)public ProjectResponse getProject(String projectId) throws ApiException
projectId - Project UUID (required)ApiException - if fails to make API callpublic CompletableFuture<ProjectResponse> getProjectAsync(String projectId)
projectId - Project UUID (required)public ApiResponse<ProjectResponse> getProjectWithHttpInfo(String projectId) throws ApiException
project_id.projectId - Project UUID (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<ProjectResponse>> getProjectWithHttpInfoAsync(String projectId)
projectId - Project UUID (required)public ProjectsResponse getProjects() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<ProjectsResponse> getProjectsAsync()
public ApiResponse<ProjectsResponse> getProjectsWithHttpInfo() throws ApiException
ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<ProjectsResponse>> getProjectsWithHttpInfoAsync()
public CasesResponse searchCases() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<CasesResponse> searchCasesAsync()
public CasesResponse searchCases(CaseManagementApi.SearchCasesOptionalParameters parameters) throws ApiException
parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<CasesResponse> searchCasesAsync(CaseManagementApi.SearchCasesOptionalParameters parameters)
parameters - Optional parameters for the request.public PaginationIterable<Case> searchCasesWithPagination()
public PaginationIterable<Case> searchCasesWithPagination(CaseManagementApi.SearchCasesOptionalParameters parameters)
public ApiResponse<CasesResponse> searchCasesWithHttpInfo(CaseManagementApi.SearchCasesOptionalParameters parameters) throws ApiException
parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<CasesResponse>> searchCasesWithHttpInfoAsync(CaseManagementApi.SearchCasesOptionalParameters parameters)
parameters - Optional parameters for the request.public CaseResponse unarchiveCase(String caseId, CaseEmptyRequest body) throws ApiException
See unarchiveCaseWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.CaseEmptyRequest).
caseId - Case's UUID or key (required)body - Unarchive case payload (required)ApiException - if fails to make API callpublic CompletableFuture<CaseResponse> unarchiveCaseAsync(String caseId, CaseEmptyRequest body)
See unarchiveCaseWithHttpInfoAsync(java.lang.String, com.datadog.api.client.v2.model.CaseEmptyRequest).
caseId - Case's UUID or key (required)body - Unarchive case payload (required)public ApiResponse<CaseResponse> unarchiveCaseWithHttpInfo(String caseId, CaseEmptyRequest body) throws ApiException
caseId - Case's UUID or key (required)body - Unarchive case payload (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<CaseResponse>> unarchiveCaseWithHttpInfoAsync(String caseId, CaseEmptyRequest body)
See unarchiveCaseWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.CaseEmptyRequest).
caseId - Case's UUID or key (required)body - Unarchive case payload (required)public CaseResponse unassignCase(String caseId, CaseEmptyRequest body) throws ApiException
See unassignCaseWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.CaseEmptyRequest).
caseId - Case's UUID or key (required)body - Unassign case payload (required)ApiException - if fails to make API callpublic CompletableFuture<CaseResponse> unassignCaseAsync(String caseId, CaseEmptyRequest body)
See unassignCaseWithHttpInfoAsync(java.lang.String, com.datadog.api.client.v2.model.CaseEmptyRequest).
caseId - Case's UUID or key (required)body - Unassign case payload (required)public ApiResponse<CaseResponse> unassignCaseWithHttpInfo(String caseId, CaseEmptyRequest body) throws ApiException
caseId - Case's UUID or key (required)body - Unassign case payload (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<CaseResponse>> unassignCaseWithHttpInfoAsync(String caseId, CaseEmptyRequest body)
See unassignCaseWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.CaseEmptyRequest).
caseId - Case's UUID or key (required)body - Unassign case payload (required)public CaseResponse updatePriority(String caseId, CaseUpdatePriorityRequest body) throws ApiException
caseId - Case's UUID or key (required)body - Case priority update payload (required)ApiException - if fails to make API callpublic CompletableFuture<CaseResponse> updatePriorityAsync(String caseId, CaseUpdatePriorityRequest body)
caseId - Case's UUID or key (required)body - Case priority update payload (required)public ApiResponse<CaseResponse> updatePriorityWithHttpInfo(String caseId, CaseUpdatePriorityRequest body) throws ApiException
caseId - Case's UUID or key (required)body - Case priority update payload (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<CaseResponse>> updatePriorityWithHttpInfoAsync(String caseId, CaseUpdatePriorityRequest body)
caseId - Case's UUID or key (required)body - Case priority update payload (required)public CaseResponse updateStatus(String caseId, CaseUpdateStatusRequest body) throws ApiException
See updateStatusWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.CaseUpdateStatusRequest).
caseId - Case's UUID or key (required)body - Case status update payload (required)ApiException - if fails to make API callpublic CompletableFuture<CaseResponse> updateStatusAsync(String caseId, CaseUpdateStatusRequest body)
caseId - Case's UUID or key (required)body - Case status update payload (required)public ApiResponse<CaseResponse> updateStatusWithHttpInfo(String caseId, CaseUpdateStatusRequest body) throws ApiException
caseId - Case's UUID or key (required)body - Case status update payload (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<CaseResponse>> updateStatusWithHttpInfoAsync(String caseId, CaseUpdateStatusRequest body)
See updateStatusWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.CaseUpdateStatusRequest).
caseId - Case's UUID or key (required)body - Case status update payload (required)Copyright © 2024. All rights reserved.