Package com.datadog.api.client.v2.api
Class CaseManagementTypeApi
java.lang.Object
com.datadog.api.client.v2.api.CaseManagementTypeApi
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class CaseManagementTypeApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a case type.Create a case type.Create a Case TypeCreate a case type.voiddeleteCaseType(String caseTypeId) Delete a case type.deleteCaseTypeAsync(String caseTypeId) Delete a case type.deleteCaseTypeWithHttpInfo(String caseTypeId) Delete a case typedeleteCaseTypeWithHttpInfoAsync(String caseTypeId) Delete a case type.Get all case types.Get all case types.Get all case typesGet all case types.Get the API client.voidsetApiClient(ApiClient apiClient) Set the API client.updateCaseType(String caseTypeId, CaseTypeUpdateRequest body) Update a case type.updateCaseTypeAsync(String caseTypeId, CaseTypeUpdateRequest body) Update a case type.updateCaseTypeWithHttpInfo(String caseTypeId, CaseTypeUpdateRequest body) Updates the name, emoji, or description of an existing case type.updateCaseTypeWithHttpInfoAsync(String caseTypeId, CaseTypeUpdateRequest body) Update a case type.
-
Constructor Details
-
CaseManagementTypeApi
public CaseManagementTypeApi() -
CaseManagementTypeApi
-
-
Method Details
-
getApiClient
Get the API client.- Returns:
- API client
-
setApiClient
Set the API client.- Parameters:
apiClient- an instance of API client
-
createCaseType
Create a case type.See
createCaseTypeWithHttpInfo(com.datadog.api.client.v2.model.CaseTypeCreateRequest).- Parameters:
body- Case type payload (required)- Returns:
- CaseTypeResponse
- Throws:
ApiException- if fails to make API call
-
createCaseTypeAsync
Create a case type.See
createCaseTypeWithHttpInfoAsync(com.datadog.api.client.v2.model.CaseTypeCreateRequest).- Parameters:
body- Case type payload (required)- Returns:
- CompletableFuture<CaseTypeResponse>
-
createCaseTypeWithHttpInfo
public ApiResponse<CaseTypeResponse> createCaseTypeWithHttpInfo(CaseTypeCreateRequest body) throws ApiException Create a Case Type- Parameters:
body- Case type payload (required)- Returns:
- ApiResponse<CaseTypeResponse>
- 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 - 429 Too many requests -
-
createCaseTypeWithHttpInfoAsync
public CompletableFuture<ApiResponse<CaseTypeResponse>> createCaseTypeWithHttpInfoAsync(CaseTypeCreateRequest body) Create a case type.See
createCaseTypeWithHttpInfo(com.datadog.api.client.v2.model.CaseTypeCreateRequest).- Parameters:
body- Case type payload (required)- Returns:
- CompletableFuture<ApiResponse<CaseTypeResponse>>
-
deleteCaseType
Delete a case type.- Parameters:
caseTypeId- The UUID of the case type. (required)- Throws:
ApiException- if fails to make API call
-
deleteCaseTypeAsync
Delete a case type.- Parameters:
caseTypeId- The UUID of the case type. (required)- Returns:
- CompletableFuture
-
deleteCaseTypeWithHttpInfo
Delete a case type- Parameters:
caseTypeId- The UUID of the case type. (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 204 No Content - 401 Unauthorized - 403 Forbidden - 429 Too many requests -
-
deleteCaseTypeWithHttpInfoAsync
Delete a case type.- Parameters:
caseTypeId- The UUID of the case type. (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
getAllCaseTypes
Get all case types.- Returns:
- CaseTypesResponse
- Throws:
ApiException- if fails to make API call
-
getAllCaseTypesAsync
Get all case types.- Returns:
- CompletableFuture<CaseTypesResponse>
-
getAllCaseTypesWithHttpInfo
Get all case types- Returns:
- ApiResponse<CaseTypesResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 401 Unauthorized - 403 Forbidden - 429 Too many requests -
-
getAllCaseTypesWithHttpInfoAsync
Get all case types.- Returns:
- CompletableFuture<ApiResponse<CaseTypesResponse>>
-
updateCaseType
public CaseTypeResponse updateCaseType(String caseTypeId, CaseTypeUpdateRequest body) throws ApiException Update a case type.See
updateCaseTypeWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.CaseTypeUpdateRequest).- Parameters:
caseTypeId- The UUID of the case type. (required)body- Case type payload. (required)- Returns:
- CaseTypeResponse
- Throws:
ApiException- if fails to make API call
-
updateCaseTypeAsync
public CompletableFuture<CaseTypeResponse> updateCaseTypeAsync(String caseTypeId, CaseTypeUpdateRequest body) Update a case type.- Parameters:
caseTypeId- The UUID of the case type. (required)body- Case type payload. (required)- Returns:
- CompletableFuture<CaseTypeResponse>
-
updateCaseTypeWithHttpInfo
public ApiResponse<CaseTypeResponse> updateCaseTypeWithHttpInfo(String caseTypeId, CaseTypeUpdateRequest body) throws ApiException Updates the name, emoji, or description of an existing case type.- Parameters:
caseTypeId- The UUID of the case type. (required)body- Case type payload. (required)- Returns:
- ApiResponse<CaseTypeResponse>
- 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 -
-
updateCaseTypeWithHttpInfoAsync
public CompletableFuture<ApiResponse<CaseTypeResponse>> updateCaseTypeWithHttpInfoAsync(String caseTypeId, CaseTypeUpdateRequest body) Update a case type.See
updateCaseTypeWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.CaseTypeUpdateRequest).- Parameters:
caseTypeId- The UUID of the case type. (required)body- Case type payload. (required)- Returns:
- CompletableFuture<ApiResponse<CaseTypeResponse>>
-