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

com.factset.sdk.IRNConfiguration.api.CustomSymbolsCustomFieldsApi Maven / Gradle / Ivy

There is a newer version: 2.1.1
Show newest version
package com.factset.sdk.IRNConfiguration.api;

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

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

import com.factset.sdk.IRNConfiguration.models.CreateCustomSymbolCustomFieldDto;
import com.factset.sdk.IRNConfiguration.models.CustomSymbolCustomFieldConfigDto;
import com.factset.sdk.IRNConfiguration.models.NewItemDto;
import com.factset.sdk.IRNConfiguration.models.Operation;
import com.factset.sdk.IRNConfiguration.models.ProblemDetails;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class CustomSymbolsCustomFieldsApi {
  private ApiClient apiClient;

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

  public CustomSymbolsCustomFieldsApi(ApiClient apiClient) {
    this.apiClient = apiClient;
  }
  
  private static final Map createCustomSymbolCustomFieldResponseTypeMap = new HashMap();
  static {
    createCustomSymbolCustomFieldResponseTypeMap.put(201, new GenericType(){});
    createCustomSymbolCustomFieldResponseTypeMap.put(400, new GenericType(){});
    createCustomSymbolCustomFieldResponseTypeMap.put(0, new GenericType(){});
  }

  private static final Map deleteCustomSymbolCustomFieldResponseTypeMap = new HashMap();

  private static final Map getCustomSymbolCustomFieldResponseTypeMap = new HashMap();
  static {
    getCustomSymbolCustomFieldResponseTypeMap.put(200, new GenericType(){});
    getCustomSymbolCustomFieldResponseTypeMap.put(404, new GenericType(){});
    getCustomSymbolCustomFieldResponseTypeMap.put(0, new GenericType(){});
  }

  private static final Map getCustomSymbolCustomFieldsResponseTypeMap = new HashMap();
  static {
    getCustomSymbolCustomFieldsResponseTypeMap.put(200, new GenericType>(){});
  }

  private static final Map patchCustomSymbolCustomFieldResponseTypeMap = new HashMap();

  


  /**
   * 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 Custom symbol custom field
   * 
   * @param createCustomSymbolCustomFieldDto createCustomSymbolCustomFieldDto object to save (optional)
   * @return NewItemDto
   * @throws ApiException if fails to make API call
   * @http.response.details
     
Status Code Description Response Headers
201 Created -
400 Bad Request -
0 Error -
*/ public NewItemDto createCustomSymbolCustomField(CreateCustomSymbolCustomFieldDto createCustomSymbolCustomFieldDto) throws ApiException { return createCustomSymbolCustomFieldWithHttpInfo(createCustomSymbolCustomFieldDto).getData(); } /** * Create a Custom symbol custom field * * @param createCustomSymbolCustomFieldDto createCustomSymbolCustomFieldDto object to save (optional) * @return ApiResponse<NewItemDto> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
201 Created -
400 Bad Request -
0 Error -
*/ public ApiResponse createCustomSymbolCustomFieldWithHttpInfo(CreateCustomSymbolCustomFieldDto createCustomSymbolCustomFieldDto) throws ApiException { Object localVarPostBody = createCustomSymbolCustomFieldDto; // create path and map variables String localVarPath = "/v1/custom-symbol-custom-fields"; // 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-patch+json", "application/json", "text/json", "application/_*+json" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "FactSetApiKey", "FactSetOAuth2", "FactSetOAuth2Client" }; ApiResponse< NewItemDto > apiResponse = apiClient.invokeAPI("CustomSymbolsCustomFieldsApi.createCustomSymbolCustomField", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, createCustomSymbolCustomFieldResponseTypeMap, false); return apiResponse; } /** * Delete a Custom symbol custom field * * @param customSymbolCustomFieldId customSymbolCustomFieldId to delete associated record (required) * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Success -
400 Bad Request -
404 Not Found -
0 Error -
*/ public void deleteCustomSymbolCustomField(java.util.UUID customSymbolCustomFieldId) throws ApiException { deleteCustomSymbolCustomFieldWithHttpInfo(customSymbolCustomFieldId); } /** * Delete a Custom symbol custom field * * @param customSymbolCustomFieldId customSymbolCustomFieldId to delete associated record (required) * @return ApiResponse<Void> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Success -
400 Bad Request -
404 Not Found -
0 Error -
*/ public ApiResponse deleteCustomSymbolCustomFieldWithHttpInfo(java.util.UUID customSymbolCustomFieldId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'customSymbolCustomFieldId' is set if (customSymbolCustomFieldId == null) { throw new ApiException(400, "Missing the required parameter 'customSymbolCustomFieldId' when calling deleteCustomSymbolCustomField"); } // create path and map variables String localVarPath = "/v1/custom-symbol-custom-fields/{customSymbolCustomFieldId}" .replaceAll("\\{" + "customSymbolCustomFieldId" + "\\}", apiClient.escapeString(customSymbolCustomFieldId.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< Void > apiResponse = apiClient.invokeAPI("CustomSymbolsCustomFieldsApi.deleteCustomSymbolCustomField", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, deleteCustomSymbolCustomFieldResponseTypeMap, false); return apiResponse; } /** * Get a specific Custom symbol custom field's details * * @param customSymbolCustomFieldId customSymbolCustomFieldId to get associated record (required) * @return CustomSymbolCustomFieldConfigDto * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Success -
404 Not Found -
0 Error -
*/ public CustomSymbolCustomFieldConfigDto getCustomSymbolCustomField(java.util.UUID customSymbolCustomFieldId) throws ApiException { return getCustomSymbolCustomFieldWithHttpInfo(customSymbolCustomFieldId).getData(); } /** * Get a specific Custom symbol custom field's details * * @param customSymbolCustomFieldId customSymbolCustomFieldId to get associated record (required) * @return ApiResponse<CustomSymbolCustomFieldConfigDto> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Success -
404 Not Found -
0 Error -
*/ public ApiResponse getCustomSymbolCustomFieldWithHttpInfo(java.util.UUID customSymbolCustomFieldId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'customSymbolCustomFieldId' is set if (customSymbolCustomFieldId == null) { throw new ApiException(400, "Missing the required parameter 'customSymbolCustomFieldId' when calling getCustomSymbolCustomField"); } // create path and map variables String localVarPath = "/v1/custom-symbol-custom-fields/{customSymbolCustomFieldId}" .replaceAll("\\{" + "customSymbolCustomFieldId" + "\\}", apiClient.escapeString(customSymbolCustomFieldId.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< CustomSymbolCustomFieldConfigDto > apiResponse = apiClient.invokeAPI("CustomSymbolsCustomFieldsApi.getCustomSymbolCustomField", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, getCustomSymbolCustomFieldResponseTypeMap, false); return apiResponse; } /** * Get all the Custom symbol custom fields * * @return java.util.List * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Success -
*/ public java.util.List getCustomSymbolCustomFields() throws ApiException { return getCustomSymbolCustomFieldsWithHttpInfo().getData(); } /** * Get all the Custom symbol custom fields * * @return ApiResponse<java.util.List> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Success -
*/ public ApiResponse> getCustomSymbolCustomFieldsWithHttpInfo() throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/custom-symbol-custom-fields"; // 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< java.util.List > apiResponse = apiClient.invokeAPI("CustomSymbolsCustomFieldsApi.getCustomSymbolCustomFields", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, getCustomSymbolCustomFieldsResponseTypeMap, false); return apiResponse; } /** * Edit a Custom symbol custom field * * @param customSymbolCustomFieldId customSymbolCustomFieldId to update associated record (required) * @param operation customSymbolCustomFieldUpdateDto object to update (optional) * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Success -
400 Bad Request -
404 Not Found -
0 Error -
*/ public void patchCustomSymbolCustomField(java.util.UUID customSymbolCustomFieldId, java.util.List operation) throws ApiException { patchCustomSymbolCustomFieldWithHttpInfo(customSymbolCustomFieldId, operation); } /** * Edit a Custom symbol custom field * * @param customSymbolCustomFieldId customSymbolCustomFieldId to update associated record (required) * @param operation customSymbolCustomFieldUpdateDto object to update (optional) * @return ApiResponse<Void> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Success -
400 Bad Request -
404 Not Found -
0 Error -
*/ public ApiResponse patchCustomSymbolCustomFieldWithHttpInfo(java.util.UUID customSymbolCustomFieldId, java.util.List operation) throws ApiException { Object localVarPostBody = operation; // verify the required parameter 'customSymbolCustomFieldId' is set if (customSymbolCustomFieldId == null) { throw new ApiException(400, "Missing the required parameter 'customSymbolCustomFieldId' when calling patchCustomSymbolCustomField"); } // create path and map variables String localVarPath = "/v1/custom-symbol-custom-fields/{customSymbolCustomFieldId}" .replaceAll("\\{" + "customSymbolCustomFieldId" + "\\}", apiClient.escapeString(customSymbolCustomFieldId.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-patch+json", "application/json", "text/json", "application/_*+json" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "FactSetApiKey", "FactSetOAuth2", "FactSetOAuth2Client" }; ApiResponse< Void > apiResponse = apiClient.invokeAPI("CustomSymbolsCustomFieldsApi.patchCustomSymbolCustomField", localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, patchCustomSymbolCustomFieldResponseTypeMap, false); return apiResponse; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy