net.leanix.api.ResourcesApi Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of leanix-sdk-java Show documentation
Show all versions of leanix-sdk-java Show documentation
SDK for Java to access leanIX REST API
package net.leanix.api;
import net.leanix.api.common.ApiException;
import net.leanix.api.common.ApiClient;
import net.leanix.api.common.Configuration;
import net.leanix.api.common.Pair;
import javax.ws.rs.core.GenericType;
import net.leanix.api.models.FactSheetHasChild;
import net.leanix.api.models.FactSheetHasDocument;
import net.leanix.api.models.FactSheetHasLifecycle;
import net.leanix.api.models.FactSheetHasParent;
import net.leanix.api.models.FactSheetHasPredecessor;
import net.leanix.api.models.FactSheetHasRequiredby;
import net.leanix.api.models.FactSheetHasRequires;
import net.leanix.api.models.FactSheetHasSuccessor;
import net.leanix.api.models.IfaceHasResource;
import net.leanix.api.models.ProjectHasResource;
import net.leanix.api.models.Resource;
import net.leanix.api.models.ResourceHasConsumer;
import net.leanix.api.models.ResourceHasProvider;
import net.leanix.api.models.ResourceHasResourceCapability;
import net.leanix.api.models.ServiceHasResource;
import net.leanix.api.models.UserSubscription;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class ResourcesApi {
private ApiClient apiClient;
public ResourcesApi() {
this(Configuration.getDefaultApiClient());
}
public ResourcesApi(ApiClient apiClient) {
this.apiClient = apiClient;
}
public ApiClient getApiClient() {
return apiClient;
}
public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient;
}
/**
* Create a new relation
*
* @param ID Unique ID (required)
* @param body Message-Body (optional)
* @return FactSheetHasChild
* @throws ApiException if fails to make API call
*/
public FactSheetHasChild createFactSheetHasChild(String ID, FactSheetHasChild body) throws ApiException {
Object localVarPostBody = body;
// verify the required parameter 'ID' is set
if (ID == null) {
throw new ApiException(400, "Missing the required parameter 'ID' when calling createFactSheetHasChild");
}
// create path and map variables
String localVarPath = "/resources/{ID}/factSheetHasChildren".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Create a new relation
*
* @param ID Unique ID (required)
* @param body Message-Body (optional)
* @return FactSheetHasDocument
* @throws ApiException if fails to make API call
*/
public FactSheetHasDocument createFactSheetHasDocument(String ID, FactSheetHasDocument body) throws ApiException {
Object localVarPostBody = body;
// verify the required parameter 'ID' is set
if (ID == null) {
throw new ApiException(400, "Missing the required parameter 'ID' when calling createFactSheetHasDocument");
}
// create path and map variables
String localVarPath = "/resources/{ID}/factSheetHasDocuments".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Create a new relation
*
* @param ID Unique ID (required)
* @param body Message-Body (optional)
* @return FactSheetHasLifecycle
* @throws ApiException if fails to make API call
*/
public FactSheetHasLifecycle createFactSheetHasLifecycle(String ID, FactSheetHasLifecycle body) throws ApiException {
Object localVarPostBody = body;
// verify the required parameter 'ID' is set
if (ID == null) {
throw new ApiException(400, "Missing the required parameter 'ID' when calling createFactSheetHasLifecycle");
}
// create path and map variables
String localVarPath = "/resources/{ID}/factSheetHasLifecycles".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Create a new relation
*
* @param ID Unique ID (required)
* @param body Message-Body (optional)
* @return FactSheetHasParent
* @throws ApiException if fails to make API call
*/
public FactSheetHasParent createFactSheetHasParent(String ID, FactSheetHasParent body) throws ApiException {
Object localVarPostBody = body;
// verify the required parameter 'ID' is set
if (ID == null) {
throw new ApiException(400, "Missing the required parameter 'ID' when calling createFactSheetHasParent");
}
// create path and map variables
String localVarPath = "/resources/{ID}/factSheetHasParents".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Create a new relation
*
* @param ID Unique ID (required)
* @param body Message-Body (optional)
* @return FactSheetHasPredecessor
* @throws ApiException if fails to make API call
*/
public FactSheetHasPredecessor createFactSheetHasPredecessor(String ID, FactSheetHasPredecessor body) throws ApiException {
Object localVarPostBody = body;
// verify the required parameter 'ID' is set
if (ID == null) {
throw new ApiException(400, "Missing the required parameter 'ID' when calling createFactSheetHasPredecessor");
}
// create path and map variables
String localVarPath = "/resources/{ID}/factSheetHasPredecessors".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Create a new relation
*
* @param ID Unique ID (required)
* @param body Message-Body (optional)
* @return FactSheetHasRequiredby
* @throws ApiException if fails to make API call
*/
public FactSheetHasRequiredby createFactSheetHasRequiredby(String ID, FactSheetHasRequiredby body) throws ApiException {
Object localVarPostBody = body;
// verify the required parameter 'ID' is set
if (ID == null) {
throw new ApiException(400, "Missing the required parameter 'ID' when calling createFactSheetHasRequiredby");
}
// create path and map variables
String localVarPath = "/resources/{ID}/factSheetHasRequiredby".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Create a new relation
*
* @param ID Unique ID (required)
* @param body Message-Body (optional)
* @return FactSheetHasRequires
* @throws ApiException if fails to make API call
*/
public FactSheetHasRequires createFactSheetHasRequires(String ID, FactSheetHasRequires body) throws ApiException {
Object localVarPostBody = body;
// verify the required parameter 'ID' is set
if (ID == null) {
throw new ApiException(400, "Missing the required parameter 'ID' when calling createFactSheetHasRequires");
}
// create path and map variables
String localVarPath = "/resources/{ID}/factSheetHasRequires".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Create a new relation
*
* @param ID Unique ID (required)
* @param body Message-Body (optional)
* @return FactSheetHasSuccessor
* @throws ApiException if fails to make API call
*/
public FactSheetHasSuccessor createFactSheetHasSuccessor(String ID, FactSheetHasSuccessor body) throws ApiException {
Object localVarPostBody = body;
// verify the required parameter 'ID' is set
if (ID == null) {
throw new ApiException(400, "Missing the required parameter 'ID' when calling createFactSheetHasSuccessor");
}
// create path and map variables
String localVarPath = "/resources/{ID}/factSheetHasSuccessors".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Create a new relation
*
* @param ID Unique ID (required)
* @param body Message-Body (optional)
* @return IfaceHasResource
* @throws ApiException if fails to make API call
*/
public IfaceHasResource createIfaceHasResource(String ID, IfaceHasResource body) throws ApiException {
Object localVarPostBody = body;
// verify the required parameter 'ID' is set
if (ID == null) {
throw new ApiException(400, "Missing the required parameter 'ID' when calling createIfaceHasResource");
}
// create path and map variables
String localVarPath = "/resources/{ID}/ifaceHasResources".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Create a new relation
*
* @param ID Unique ID (required)
* @param body Message-Body (optional)
* @return ProjectHasResource
* @throws ApiException if fails to make API call
*/
public ProjectHasResource createProjectHasResource(String ID, ProjectHasResource body) throws ApiException {
Object localVarPostBody = body;
// verify the required parameter 'ID' is set
if (ID == null) {
throw new ApiException(400, "Missing the required parameter 'ID' when calling createProjectHasResource");
}
// create path and map variables
String localVarPath = "/resources/{ID}/projectHasResources".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Create a new IT Component
*
* @param body Message-Body (optional)
* @return Resource
* @throws ApiException if fails to make API call
*/
public Resource createResource(Resource body) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/resources".replaceAll("\\{format\\}","json");
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Create a new relation
*
* @param ID Unique ID (required)
* @param body Message-Body (optional)
* @return ResourceHasConsumer
* @throws ApiException if fails to make API call
*/
public ResourceHasConsumer createResourceHasConsumer(String ID, ResourceHasConsumer body) throws ApiException {
Object localVarPostBody = body;
// verify the required parameter 'ID' is set
if (ID == null) {
throw new ApiException(400, "Missing the required parameter 'ID' when calling createResourceHasConsumer");
}
// create path and map variables
String localVarPath = "/resources/{ID}/resourceHasConsumers".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Create a new relation
*
* @param ID Unique ID (required)
* @param body Message-Body (optional)
* @return ResourceHasProvider
* @throws ApiException if fails to make API call
*/
public ResourceHasProvider createResourceHasProvider(String ID, ResourceHasProvider body) throws ApiException {
Object localVarPostBody = body;
// verify the required parameter 'ID' is set
if (ID == null) {
throw new ApiException(400, "Missing the required parameter 'ID' when calling createResourceHasProvider");
}
// create path and map variables
String localVarPath = "/resources/{ID}/resourceHasProviders".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Create a new relation
*
* @param ID Unique ID (required)
* @param body Message-Body (optional)
* @return ResourceHasResourceCapability
* @throws ApiException if fails to make API call
*/
public ResourceHasResourceCapability createResourceHasResourceCapability(String ID, ResourceHasResourceCapability body) throws ApiException {
Object localVarPostBody = body;
// verify the required parameter 'ID' is set
if (ID == null) {
throw new ApiException(400, "Missing the required parameter 'ID' when calling createResourceHasResourceCapability");
}
// create path and map variables
String localVarPath = "/resources/{ID}/resourceHasResourceCapabilities".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Create a new relation
*
* @param ID Unique ID (required)
* @param body Message-Body (optional)
* @return ServiceHasResource
* @throws ApiException if fails to make API call
*/
public ServiceHasResource createServiceHasResource(String ID, ServiceHasResource body) throws ApiException {
Object localVarPostBody = body;
// verify the required parameter 'ID' is set
if (ID == null) {
throw new ApiException(400, "Missing the required parameter 'ID' when calling createServiceHasResource");
}
// create path and map variables
String localVarPath = "/resources/{ID}/serviceHasResources".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Create a new relation
*
* @param ID Unique ID (required)
* @param body Message-Body (optional)
* @return UserSubscription
* @throws ApiException if fails to make API call
*/
public UserSubscription createUserSubscription(String ID, UserSubscription body) throws ApiException {
Object localVarPostBody = body;
// verify the required parameter 'ID' is set
if (ID == null) {
throw new ApiException(400, "Missing the required parameter 'ID' when calling createUserSubscription");
}
// create path and map variables
String localVarPath = "/resources/{ID}/userSubscriptions".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Delete relation by a given relationID
*
* @param ID Unique ID (required)
* @param relationID Unique ID of the Relation (required)
* @throws ApiException if fails to make API call
*/
public void deleteFactSheetHasChild(String ID, String relationID) 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 deleteFactSheetHasChild");
}
// verify the required parameter 'relationID' is set
if (relationID == null) {
throw new ApiException(400, "Missing the required parameter 'relationID' when calling deleteFactSheetHasChild");
}
// create path and map variables
String localVarPath = "/resources/{ID}/factSheetHasChildren/{relationID}".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()))
.replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
}
/**
* Delete relation by a given relationID
*
* @param ID Unique ID (required)
* @param relationID Unique ID of the Relation (required)
* @throws ApiException if fails to make API call
*/
public void deleteFactSheetHasDocument(String ID, String relationID) 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 deleteFactSheetHasDocument");
}
// verify the required parameter 'relationID' is set
if (relationID == null) {
throw new ApiException(400, "Missing the required parameter 'relationID' when calling deleteFactSheetHasDocument");
}
// create path and map variables
String localVarPath = "/resources/{ID}/factSheetHasDocuments/{relationID}".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()))
.replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
}
/**
* Delete relation by a given relationID
*
* @param ID Unique ID (required)
* @param relationID Unique ID of the Relation (required)
* @throws ApiException if fails to make API call
*/
public void deleteFactSheetHasLifecycle(String ID, String relationID) 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 deleteFactSheetHasLifecycle");
}
// verify the required parameter 'relationID' is set
if (relationID == null) {
throw new ApiException(400, "Missing the required parameter 'relationID' when calling deleteFactSheetHasLifecycle");
}
// create path and map variables
String localVarPath = "/resources/{ID}/factSheetHasLifecycles/{relationID}".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()))
.replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
}
/**
* Delete relation by a given relationID
*
* @param ID Unique ID (required)
* @param relationID Unique ID of the Relation (required)
* @throws ApiException if fails to make API call
*/
public void deleteFactSheetHasParent(String ID, String relationID) 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 deleteFactSheetHasParent");
}
// verify the required parameter 'relationID' is set
if (relationID == null) {
throw new ApiException(400, "Missing the required parameter 'relationID' when calling deleteFactSheetHasParent");
}
// create path and map variables
String localVarPath = "/resources/{ID}/factSheetHasParents/{relationID}".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()))
.replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
}
/**
* Delete relation by a given relationID
*
* @param ID Unique ID (required)
* @param relationID Unique ID of the Relation (required)
* @throws ApiException if fails to make API call
*/
public void deleteFactSheetHasPredecessor(String ID, String relationID) 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 deleteFactSheetHasPredecessor");
}
// verify the required parameter 'relationID' is set
if (relationID == null) {
throw new ApiException(400, "Missing the required parameter 'relationID' when calling deleteFactSheetHasPredecessor");
}
// create path and map variables
String localVarPath = "/resources/{ID}/factSheetHasPredecessors/{relationID}".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()))
.replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
}
/**
* Delete relation by a given relationID
*
* @param ID Unique ID (required)
* @param relationID Unique ID of the Relation (required)
* @throws ApiException if fails to make API call
*/
public void deleteFactSheetHasRequiredby(String ID, String relationID) 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 deleteFactSheetHasRequiredby");
}
// verify the required parameter 'relationID' is set
if (relationID == null) {
throw new ApiException(400, "Missing the required parameter 'relationID' when calling deleteFactSheetHasRequiredby");
}
// create path and map variables
String localVarPath = "/resources/{ID}/factSheetHasRequiredby/{relationID}".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()))
.replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
}
/**
* Delete relation by a given relationID
*
* @param ID Unique ID (required)
* @param relationID Unique ID of the Relation (required)
* @throws ApiException if fails to make API call
*/
public void deleteFactSheetHasRequires(String ID, String relationID) 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 deleteFactSheetHasRequires");
}
// verify the required parameter 'relationID' is set
if (relationID == null) {
throw new ApiException(400, "Missing the required parameter 'relationID' when calling deleteFactSheetHasRequires");
}
// create path and map variables
String localVarPath = "/resources/{ID}/factSheetHasRequires/{relationID}".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()))
.replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
}
/**
* Delete relation by a given relationID
*
* @param ID Unique ID (required)
* @param relationID Unique ID of the Relation (required)
* @throws ApiException if fails to make API call
*/
public void deleteFactSheetHasSuccessor(String ID, String relationID) 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 deleteFactSheetHasSuccessor");
}
// verify the required parameter 'relationID' is set
if (relationID == null) {
throw new ApiException(400, "Missing the required parameter 'relationID' when calling deleteFactSheetHasSuccessor");
}
// create path and map variables
String localVarPath = "/resources/{ID}/factSheetHasSuccessors/{relationID}".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()))
.replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
}
/**
* Delete relation by a given relationID
*
* @param ID Unique ID (required)
* @param relationID Unique ID of the Relation (required)
* @throws ApiException if fails to make API call
*/
public void deleteIfaceHasResource(String ID, String relationID) 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 deleteIfaceHasResource");
}
// verify the required parameter 'relationID' is set
if (relationID == null) {
throw new ApiException(400, "Missing the required parameter 'relationID' when calling deleteIfaceHasResource");
}
// create path and map variables
String localVarPath = "/resources/{ID}/ifaceHasResources/{relationID}".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()))
.replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
}
/**
* Delete relation by a given relationID
*
* @param ID Unique ID (required)
* @param relationID Unique ID of the Relation (required)
* @throws ApiException if fails to make API call
*/
public void deleteProjectHasResource(String ID, String relationID) 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 deleteProjectHasResource");
}
// verify the required parameter 'relationID' is set
if (relationID == null) {
throw new ApiException(400, "Missing the required parameter 'relationID' when calling deleteProjectHasResource");
}
// create path and map variables
String localVarPath = "/resources/{ID}/projectHasResources/{relationID}".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()))
.replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
}
/**
* Delete a IT Component by a given ID
*
* @param ID Unique ID (required)
* @throws ApiException if fails to make API call
*/
public void deleteResource(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 deleteResource");
}
// create path and map variables
String localVarPath = "/resources/{ID}".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
}
/**
* Delete relation by a given relationID
*
* @param ID Unique ID (required)
* @param relationID Unique ID of the Relation (required)
* @throws ApiException if fails to make API call
*/
public void deleteResourceHasConsumer(String ID, String relationID) 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 deleteResourceHasConsumer");
}
// verify the required parameter 'relationID' is set
if (relationID == null) {
throw new ApiException(400, "Missing the required parameter 'relationID' when calling deleteResourceHasConsumer");
}
// create path and map variables
String localVarPath = "/resources/{ID}/resourceHasConsumers/{relationID}".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()))
.replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
}
/**
* Delete relation by a given relationID
*
* @param ID Unique ID (required)
* @param relationID Unique ID of the Relation (required)
* @throws ApiException if fails to make API call
*/
public void deleteResourceHasProvider(String ID, String relationID) 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 deleteResourceHasProvider");
}
// verify the required parameter 'relationID' is set
if (relationID == null) {
throw new ApiException(400, "Missing the required parameter 'relationID' when calling deleteResourceHasProvider");
}
// create path and map variables
String localVarPath = "/resources/{ID}/resourceHasProviders/{relationID}".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()))
.replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
}
/**
* Delete relation by a given relationID
*
* @param ID Unique ID (required)
* @param relationID Unique ID of the Relation (required)
* @throws ApiException if fails to make API call
*/
public void deleteResourceHasResourceCapability(String ID, String relationID) 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 deleteResourceHasResourceCapability");
}
// verify the required parameter 'relationID' is set
if (relationID == null) {
throw new ApiException(400, "Missing the required parameter 'relationID' when calling deleteResourceHasResourceCapability");
}
// create path and map variables
String localVarPath = "/resources/{ID}/resourceHasResourceCapabilities/{relationID}".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()))
.replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
}
/**
* Delete relation by a given relationID
*
* @param ID Unique ID (required)
* @param relationID Unique ID of the Relation (required)
* @throws ApiException if fails to make API call
*/
public void deleteServiceHasResource(String ID, String relationID) 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 deleteServiceHasResource");
}
// verify the required parameter 'relationID' is set
if (relationID == null) {
throw new ApiException(400, "Missing the required parameter 'relationID' when calling deleteServiceHasResource");
}
// create path and map variables
String localVarPath = "/resources/{ID}/serviceHasResources/{relationID}".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()))
.replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
}
/**
* Delete relation by a given relationID
*
* @param ID Unique ID (required)
* @param relationID Unique ID of the Relation (required)
* @throws ApiException if fails to make API call
*/
public void deleteUserSubscription(String ID, String relationID) 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 deleteUserSubscription");
}
// verify the required parameter 'relationID' is set
if (relationID == null) {
throw new ApiException(400, "Missing the required parameter 'relationID' when calling deleteUserSubscription");
}
// create path and map variables
String localVarPath = "/resources/{ID}/userSubscriptions/{relationID}".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()))
.replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
}
/**
* Read by relationID
*
* @param ID Unique ID (required)
* @param relationID Unique ID of the Relation (required)
* @return FactSheetHasChild
* @throws ApiException if fails to make API call
*/
public FactSheetHasChild getFactSheetHasChild(String ID, String relationID) 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 getFactSheetHasChild");
}
// verify the required parameter 'relationID' is set
if (relationID == null) {
throw new ApiException(400, "Missing the required parameter 'relationID' when calling getFactSheetHasChild");
}
// create path and map variables
String localVarPath = "/resources/{ID}/factSheetHasChildren/{relationID}".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()))
.replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Read all of relation
*
* @param ID Unique ID (required)
* @return List
* @throws ApiException if fails to make API call
*/
public List getFactSheetHasChildren(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 getFactSheetHasChildren");
}
// create path and map variables
String localVarPath = "/resources/{ID}/factSheetHasChildren".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
GenericType> localVarReturnType = new GenericType>() {};
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Read by relationID
*
* @param ID Unique ID (required)
* @param relationID Unique ID of the Relation (required)
* @return FactSheetHasDocument
* @throws ApiException if fails to make API call
*/
public FactSheetHasDocument getFactSheetHasDocument(String ID, String relationID) 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 getFactSheetHasDocument");
}
// verify the required parameter 'relationID' is set
if (relationID == null) {
throw new ApiException(400, "Missing the required parameter 'relationID' when calling getFactSheetHasDocument");
}
// create path and map variables
String localVarPath = "/resources/{ID}/factSheetHasDocuments/{relationID}".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()))
.replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Read all of relation
*
* @param ID Unique ID (required)
* @return List