All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.factset.sdk.IssueTracker.api.IssueApi Maven / Gradle / Ivy

There is a newer version: 0.5.0
Show newest version
package com.factset.sdk.IssueTracker.api;

import com.factset.sdk.IssueTracker.ApiException;
import com.factset.sdk.IssueTracker.ApiClient;
import com.factset.sdk.IssueTracker.ApiResponse;
import com.factset.sdk.IssueTracker.Configuration;
import com.factset.sdk.IssueTracker.Pair;

import jakarta.ws.rs.core.GenericType;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;

import com.factset.sdk.IssueTracker.models.CommentRequest;
import com.factset.sdk.IssueTracker.models.ErrorResponse;
import com.factset.sdk.IssueTracker.models.IdResponse;
import com.factset.sdk.IssueTracker.models.Issue;
import com.factset.sdk.IssueTracker.models.IssueRequest;
import com.factset.sdk.IssueTracker.models.UpdateIssueRequest;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")

public class IssueApi {
  private ApiClient apiClient;

  public IssueApi() {
    this(Configuration.getDefaultApiClient());
  }

  public IssueApi(ApiClient apiClient) {
    this.apiClient = apiClient;
  }
  
  private static final Map getIssueResponseTypeMap = new HashMap();
  static {
    getIssueResponseTypeMap.put(200, new GenericType(){});
    getIssueResponseTypeMap.put(404, new GenericType(){});
    getIssueResponseTypeMap.put(500, new GenericType(){});
  }

  private static final Map patchIssueResponseTypeMap = new HashMap();

  private static final Map postIssueResponseTypeMap = new HashMap();
  static {
    postIssueResponseTypeMap.put(201, new GenericType(){});
    postIssueResponseTypeMap.put(400, new GenericType(){});
    postIssueResponseTypeMap.put(500, new GenericType(){});
  }

  private static final Map postReplyResponseTypeMap = new HashMap();
  static {
    postReplyResponseTypeMap.put(201, new GenericType(){});
    postReplyResponseTypeMap.put(400, new GenericType(){});
    postReplyResponseTypeMap.put(500, new GenericType(){});
  }

  


  /**
   * 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;
  }

  /**
   * Get the matched issue details
   * Retrieve the information of the client with the matching issue Id.
   * @param id ID of Issue Tracker issue (required)
   * @return Issue
   * @throws ApiException if fails to make API call
   * @http.response.details
     
Status Code Description Response Headers
200 OK -
401 Unauthorized -
403 Forbidden -
404 Not Found -
500 Internal Server Error -
*/ public Issue getIssue(String id) throws ApiException { return getIssueWithHttpInfo(id).getData(); } /** * Get the matched issue details * Retrieve the information of the client with the matching issue Id. * @param id ID of Issue Tracker issue (required) * @return ApiResponse<Issue> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
403 Forbidden -
404 Not Found -
500 Internal Server Error -
*/ public ApiResponse getIssueWithHttpInfo(String id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set if (id == null) { throw new ApiException(400, "Missing the required parameter 'id' when calling getIssue"); } // create path and map variables String localVarPath = "/issues/{id}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params java.util.List localVarQueryParams = new java.util.ArrayList(); java.util.Map localVarHeaderParams = new java.util.HashMap(); java.util.Map localVarCookieParams = new java.util.HashMap(); java.util.Map localVarFormParams = new java.util.HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "FactSetApiKey", "FactSetOAuth2", "FactSetOAuth2Client" }; ApiResponse< Issue > apiResponse = apiClient.invokeAPI("IssueApi.getIssue", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, getIssueResponseTypeMap, false); return apiResponse; } /** * Update severity and subject of existing issue * Update subject and severity of issue * @param id ID of Issue Tracker issue (required) * @param updateIssueRequest (optional) * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
500 Internal Server Error -
*/ public void patchIssue(String id, UpdateIssueRequest updateIssueRequest) throws ApiException { patchIssueWithHttpInfo(id, updateIssueRequest); } /** * Update severity and subject of existing issue * Update subject and severity of issue * @param id ID of Issue Tracker issue (required) * @param updateIssueRequest (optional) * @return ApiResponse<Void> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
500 Internal Server Error -
*/ public ApiResponse patchIssueWithHttpInfo(String id, UpdateIssueRequest updateIssueRequest) throws ApiException { Object localVarPostBody = updateIssueRequest; // verify the required parameter 'id' is set if (id == null) { throw new ApiException(400, "Missing the required parameter 'id' when calling patchIssue"); } // create path and map variables String localVarPath = "/issues/{id}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params java.util.List localVarQueryParams = new java.util.ArrayList(); java.util.Map localVarHeaderParams = new java.util.HashMap(); java.util.Map localVarCookieParams = new java.util.HashMap(); java.util.Map localVarFormParams = new java.util.HashMap(); final String[] localVarAccepts = { }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "FactSetApiKey", "FactSetOAuth2", "FactSetOAuth2Client" }; ApiResponse< Void > apiResponse = apiClient.invokeAPI("IssueApi.patchIssue", localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, patchIssueResponseTypeMap, false); return apiResponse; } /** * Creates a Issue Tracker issue * Creates a new issue in Issue Tracker * @param issueRequest (optional) * @return IdResponse * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
201 Created -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
500 Internal Server Error -
*/ public IdResponse postIssue(IssueRequest issueRequest) throws ApiException { return postIssueWithHttpInfo(issueRequest).getData(); } /** * Creates a Issue Tracker issue * Creates a new issue in Issue Tracker * @param issueRequest (optional) * @return ApiResponse<IdResponse> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
201 Created -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
500 Internal Server Error -
*/ public ApiResponse postIssueWithHttpInfo(IssueRequest issueRequest) throws ApiException { Object localVarPostBody = issueRequest; // create path and map variables String localVarPath = "/issues"; // query params java.util.List localVarQueryParams = new java.util.ArrayList(); java.util.Map localVarHeaderParams = new java.util.HashMap(); java.util.Map localVarCookieParams = new java.util.HashMap(); java.util.Map localVarFormParams = new java.util.HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "FactSetApiKey", "FactSetOAuth2", "FactSetOAuth2Client" }; ApiResponse< IdResponse > apiResponse = apiClient.invokeAPI("IssueApi.postIssue", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, postIssueResponseTypeMap, false); return apiResponse; } /** * post comment to Issue Tracker issue * Reply to the existing matched issue * @param id ID of Issue Tracker issue (required) * @param commentRequest (optional) * @return IdResponse * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
201 Created -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
500 Internal Server Error -
*/ public IdResponse postReply(String id, CommentRequest commentRequest) throws ApiException { return postReplyWithHttpInfo(id, commentRequest).getData(); } /** * post comment to Issue Tracker issue * Reply to the existing matched issue * @param id ID of Issue Tracker issue (required) * @param commentRequest (optional) * @return ApiResponse<IdResponse> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
201 Created -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
500 Internal Server Error -
*/ public ApiResponse postReplyWithHttpInfo(String id, CommentRequest commentRequest) throws ApiException { Object localVarPostBody = commentRequest; // verify the required parameter 'id' is set if (id == null) { throw new ApiException(400, "Missing the required parameter 'id' when calling postReply"); } // create path and map variables String localVarPath = "/issues/{id}/comments" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params java.util.List localVarQueryParams = new java.util.ArrayList(); java.util.Map localVarHeaderParams = new java.util.HashMap(); java.util.Map localVarCookieParams = new java.util.HashMap(); java.util.Map localVarFormParams = new java.util.HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "FactSetApiKey", "FactSetOAuth2", "FactSetOAuth2Client" }; ApiResponse< IdResponse > apiResponse = apiClient.invokeAPI("IssueApi.postReply", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, postReplyResponseTypeMap, false); return apiResponse; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy