Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
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.NewItemDto;
import com.factset.sdk.IRNConfiguration.models.ProblemDetails;
import com.factset.sdk.IRNConfiguration.models.SymbolsRelationShipSaveDto;
import com.factset.sdk.IRNConfiguration.models.SymbolsRelationshipDto;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class CustomSymbolsRelationshipsApi {
private ApiClient apiClient;
public CustomSymbolsRelationshipsApi() {
this(Configuration.getDefaultApiClient());
}
public CustomSymbolsRelationshipsApi(ApiClient apiClient) {
this.apiClient = apiClient;
}
private static final Map createSymbolRelationshipTypeResponseTypeMap = new HashMap();
static {
createSymbolRelationshipTypeResponseTypeMap.put(201, new GenericType(){});
createSymbolRelationshipTypeResponseTypeMap.put(400, new GenericType(){});
createSymbolRelationshipTypeResponseTypeMap.put(0, new GenericType(){});
}
private static final Map deleteSymbolsRelationshipResponseTypeMap = new HashMap();
private static final Map editSymbolsRelationshipResponseTypeMap = new HashMap();
private static final Map getSymbolsRelationshipsResponseTypeMap = new HashMap();
static {
getSymbolsRelationshipsResponseTypeMap.put(200, 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;
}
/**
* Create a symbol relationship
*
* @param symbolsRelationShipSaveDto symbolsRelationshipSaveDto 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 createSymbolRelationshipType(SymbolsRelationShipSaveDto symbolsRelationShipSaveDto) throws ApiException {
return createSymbolRelationshipTypeWithHttpInfo(symbolsRelationShipSaveDto).getData();
}
/**
* Create a symbol relationship
*
* @param symbolsRelationShipSaveDto symbolsRelationshipSaveDto 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 createSymbolRelationshipTypeWithHttpInfo(SymbolsRelationShipSaveDto symbolsRelationShipSaveDto) throws ApiException {
Object localVarPostBody = symbolsRelationShipSaveDto;
// create path and map variables
String localVarPath = "/v1/symbols-relationships";
// 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("CustomSymbolsRelationshipsApi.createSymbolRelationshipType", localVarPath, "POST", localVarQueryParams, localVarPostBody,
localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
localVarAuthNames, createSymbolRelationshipTypeResponseTypeMap, false);
return apiResponse;
}
/**
* Delete a symbol relationship
*
* @param symbolsRelationshipId symbolsRelationshipId 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 deleteSymbolsRelationship(java.util.UUID symbolsRelationshipId) throws ApiException {
deleteSymbolsRelationshipWithHttpInfo(symbolsRelationshipId);
}
/**
* Delete a symbol relationship
*
* @param symbolsRelationshipId symbolsRelationshipId 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 deleteSymbolsRelationshipWithHttpInfo(java.util.UUID symbolsRelationshipId) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'symbolsRelationshipId' is set
if (symbolsRelationshipId == null) {
throw new ApiException(400, "Missing the required parameter 'symbolsRelationshipId' when calling deleteSymbolsRelationship");
}
// create path and map variables
String localVarPath = "/v1/symbols-relationships/{symbolsRelationshipId}"
.replaceAll("\\{" + "symbolsRelationshipId" + "\\}", apiClient.escapeString(symbolsRelationshipId.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("CustomSymbolsRelationshipsApi.deleteSymbolsRelationship", localVarPath, "DELETE", localVarQueryParams, localVarPostBody,
localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
localVarAuthNames, deleteSymbolsRelationshipResponseTypeMap, false);
return apiResponse;
}
/**
* Edit a symbol relationship
*
* @param symbolsRelationshipId symbolsRelationshipId to update associated record (required)
* @param symbolsRelationShipSaveDto SymbolsRelationShipSaveDto object to update (optional)
* @throws ApiException if fails to make API call
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
400
Bad Request
-
404
Not Found
-
0
Error
-
*/
public void editSymbolsRelationship(java.util.UUID symbolsRelationshipId, SymbolsRelationShipSaveDto symbolsRelationShipSaveDto) throws ApiException {
editSymbolsRelationshipWithHttpInfo(symbolsRelationshipId, symbolsRelationShipSaveDto);
}
/**
* Edit a symbol relationship
*
* @param symbolsRelationshipId symbolsRelationshipId to update associated record (required)
* @param symbolsRelationShipSaveDto SymbolsRelationShipSaveDto object to update (optional)
* @return ApiResponse<Void>
* @throws ApiException if fails to make API call
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
400
Bad Request
-
404
Not Found
-
0
Error
-
*/
public ApiResponse editSymbolsRelationshipWithHttpInfo(java.util.UUID symbolsRelationshipId, SymbolsRelationShipSaveDto symbolsRelationShipSaveDto) throws ApiException {
Object localVarPostBody = symbolsRelationShipSaveDto;
// verify the required parameter 'symbolsRelationshipId' is set
if (symbolsRelationshipId == null) {
throw new ApiException(400, "Missing the required parameter 'symbolsRelationshipId' when calling editSymbolsRelationship");
}
// create path and map variables
String localVarPath = "/v1/symbols-relationships/{symbolsRelationshipId}"
.replaceAll("\\{" + "symbolsRelationshipId" + "\\}", apiClient.escapeString(symbolsRelationshipId.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("CustomSymbolsRelationshipsApi.editSymbolsRelationship", localVarPath, "PUT", localVarQueryParams, localVarPostBody,
localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
localVarAuthNames, editSymbolsRelationshipResponseTypeMap, false);
return apiResponse;
}
/**
* Get all the Symbols Relationships
*
* @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 getSymbolsRelationships() throws ApiException {
return getSymbolsRelationshipsWithHttpInfo().getData();
}
/**
* Get all the Symbols Relationships
*
* @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> getSymbolsRelationshipsWithHttpInfo() throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/v1/symbols-relationships";
// 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("CustomSymbolsRelationshipsApi.getSymbolsRelationships", localVarPath, "GET", localVarQueryParams, localVarPostBody,
localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
localVarAuthNames, getSymbolsRelationshipsResponseTypeMap, false);
return apiResponse;
}
}