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 io.logicdrop.openapi.jersey.api;
import io.logicdrop.openapi.jersey.ApiException;
import io.logicdrop.openapi.jersey.ApiClient;
import io.logicdrop.openapi.jersey.ApiResponse;
import io.logicdrop.openapi.jersey.Configuration;
import io.logicdrop.openapi.jersey.Pair;
import javax.ws.rs.core.GenericType;
import io.logicdrop.openapi.models.Archive;
import io.logicdrop.openapi.models.ArtifactResponse;
import io.logicdrop.openapi.models.DataResponse;
import io.logicdrop.openapi.models.Dataset;
import io.logicdrop.openapi.models.DeleteArtifactRequest;
import io.logicdrop.openapi.models.DeleteDataRequest;
import io.logicdrop.openapi.models.ExternalSource;
import java.io.File;
import io.logicdrop.openapi.models.SaveContentRequest;
import io.logicdrop.openapi.models.UpdateArtifactRequest;
import io.logicdrop.openapi.models.UpdateDataRequest;
import io.logicdrop.openapi.models.UploadResponse;
import io.logicdrop.openapi.models.UserData;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class DataServicesApi {
private ApiClient apiClient;
public DataServicesApi() {
this(Configuration.getDefaultApiClient());
}
public DataServicesApi(ApiClient apiClient) {
this.apiClient = apiClient;
}
public ApiClient getApiClient() {
return apiClient;
}
public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient;
}
/**
* Archive dataset
* Archive a dataset
* @param client Client name (required)
* @param project Project name (required)
* @param artifact Dataset name (required)
* @param v Dataset version (optional)
* @return Archive
* @throws ApiException if fails to make API call
* @http.response.details
Status Code
Description
Response Headers
200
Archived record
-
400
Bad request
-
401
Unauthorized
-
403
Forbidden
-
404
Not found
-
500
Backend Error
-
*/
public Archive archiveDataset(String client, String project, String artifact, String v) throws ApiException {
return archiveDatasetWithHttpInfo(client, project, artifact, v).getData();
}
/**
* Archive dataset
* Archive a dataset
* @param client Client name (required)
* @param project Project name (required)
* @param artifact Dataset name (required)
* @param v Dataset version (optional)
* @return ApiResponse<Archive>
* @throws ApiException if fails to make API call
* @http.response.details
Status Code
Description
Response Headers
200
Archived record
-
400
Bad request
-
401
Unauthorized
-
403
Forbidden
-
404
Not found
-
500
Backend Error
-
*/
public ApiResponse archiveDatasetWithHttpInfo(String client, String project, String artifact, String v) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'client' is set
if (client == null) {
throw new ApiException(400, "Missing the required parameter 'client' when calling archiveDataset");
}
// verify the required parameter 'project' is set
if (project == null) {
throw new ApiException(400, "Missing the required parameter 'project' when calling archiveDataset");
}
// verify the required parameter 'artifact' is set
if (artifact == null) {
throw new ApiException(400, "Missing the required parameter 'artifact' when calling archiveDataset");
}
// create path and map variables
String localVarPath = "/data/{client}/{project}/{artifact}/archives"
.replaceAll("\\{" + "client" + "\\}", apiClient.escapeString(client.toString()))
.replaceAll("\\{" + "project" + "\\}", apiClient.escapeString(project.toString()))
.replaceAll("\\{" + "artifact" + "\\}", apiClient.escapeString(artifact.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
localVarQueryParams.addAll(apiClient.parameterToPairs("", "v", v));
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "api", "jwt", "oauth2" };
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI("DataServicesApi.archiveDataset", localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Archive record
* Archive a record
* @param client Client name (required)
* @param project Project name (required)
* @param artifact Dataset name (required)
* @param id Record Id (required)
* @param v Dataset version (optional)
* @return Archive
* @throws ApiException if fails to make API call
* @http.response.details
Status Code
Description
Response Headers
200
Archived record
-
400
Bad request
-
401
Unauthorized
-
403
Forbidden
-
404
Not found
-
500
Backend Error
-
*/
public Archive archiveRecord(String client, String project, String artifact, String id, String v) throws ApiException {
return archiveRecordWithHttpInfo(client, project, artifact, id, v).getData();
}
/**
* Archive record
* Archive a record
* @param client Client name (required)
* @param project Project name (required)
* @param artifact Dataset name (required)
* @param id Record Id (required)
* @param v Dataset version (optional)
* @return ApiResponse<Archive>
* @throws ApiException if fails to make API call
* @http.response.details
Status Code
Description
Response Headers
200
Archived record
-
400
Bad request
-
401
Unauthorized
-
403
Forbidden
-
404
Not found
-
500
Backend Error
-
*/
public ApiResponse archiveRecordWithHttpInfo(String client, String project, String artifact, String id, String v) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'client' is set
if (client == null) {
throw new ApiException(400, "Missing the required parameter 'client' when calling archiveRecord");
}
// verify the required parameter 'project' is set
if (project == null) {
throw new ApiException(400, "Missing the required parameter 'project' when calling archiveRecord");
}
// verify the required parameter 'artifact' is set
if (artifact == null) {
throw new ApiException(400, "Missing the required parameter 'artifact' when calling archiveRecord");
}
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException(400, "Missing the required parameter 'id' when calling archiveRecord");
}
// create path and map variables
String localVarPath = "/data/{client}/{project}/{artifact}/rows/{id}/archives"
.replaceAll("\\{" + "client" + "\\}", apiClient.escapeString(client.toString()))
.replaceAll("\\{" + "project" + "\\}", apiClient.escapeString(project.toString()))
.replaceAll("\\{" + "artifact" + "\\}", apiClient.escapeString(artifact.toString()))
.replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
localVarQueryParams.addAll(apiClient.parameterToPairs("", "v", v));
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "api", "jwt", "oauth2" };
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI("DataServicesApi.archiveRecord", localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Delete dataset
*
* @param client Client name (required)
* @param project Project name (required)
* @param artifact Dataset name (required)
* @param v Dataset version (optional)
* @return ArtifactResponse
* @throws ApiException if fails to make API call
* @http.response.details
Status Code
Description
Response Headers
200
Results of the operation
-
400
Bad request
-
401
Unauthorized
-
403
Forbidden
-
404
Not found
-
500
Backend Error
-
*/
public ArtifactResponse deleteDataset(String client, String project, String artifact, String v) throws ApiException {
return deleteDatasetWithHttpInfo(client, project, artifact, v).getData();
}
/**
* Delete dataset
*
* @param client Client name (required)
* @param project Project name (required)
* @param artifact Dataset name (required)
* @param v Dataset version (optional)
* @return ApiResponse<ArtifactResponse>
* @throws ApiException if fails to make API call
* @http.response.details
Status Code
Description
Response Headers
200
Results of the operation
-
400
Bad request
-
401
Unauthorized
-
403
Forbidden
-
404
Not found
-
500
Backend Error
-
*/
public ApiResponse deleteDatasetWithHttpInfo(String client, String project, String artifact, String v) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'client' is set
if (client == null) {
throw new ApiException(400, "Missing the required parameter 'client' when calling deleteDataset");
}
// verify the required parameter 'project' is set
if (project == null) {
throw new ApiException(400, "Missing the required parameter 'project' when calling deleteDataset");
}
// verify the required parameter 'artifact' is set
if (artifact == null) {
throw new ApiException(400, "Missing the required parameter 'artifact' when calling deleteDataset");
}
// create path and map variables
String localVarPath = "/data/{client}/{project}/{artifact}"
.replaceAll("\\{" + "client" + "\\}", apiClient.escapeString(client.toString()))
.replaceAll("\\{" + "project" + "\\}", apiClient.escapeString(project.toString()))
.replaceAll("\\{" + "artifact" + "\\}", apiClient.escapeString(artifact.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
localVarQueryParams.addAll(apiClient.parameterToPairs("", "v", v));
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "api", "jwt", "oauth2" };
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI("DataServicesApi.deleteDataset", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Delete datasets
*
* @param client Client name (required)
* @param project Project name (required)
* @param deleteArtifactRequest Remove datasets by criteria (required)
* @return ArtifactResponse
* @throws ApiException if fails to make API call
* @http.response.details
Status Code
Description
Response Headers
200
Results of the operation
-
400
Bad request
-
401
Unauthorized
-
403
Forbidden
-
404
Not found
-
500
Backend Error
-
*/
public ArtifactResponse deleteDatasets(String client, String project, DeleteArtifactRequest deleteArtifactRequest) throws ApiException {
return deleteDatasetsWithHttpInfo(client, project, deleteArtifactRequest).getData();
}
/**
* Delete datasets
*
* @param client Client name (required)
* @param project Project name (required)
* @param deleteArtifactRequest Remove datasets by criteria (required)
* @return ApiResponse<ArtifactResponse>
* @throws ApiException if fails to make API call
* @http.response.details
Status Code
Description
Response Headers
200
Results of the operation
-
400
Bad request
-
401
Unauthorized
-
403
Forbidden
-
404
Not found
-
500
Backend Error
-
*/
public ApiResponse deleteDatasetsWithHttpInfo(String client, String project, DeleteArtifactRequest deleteArtifactRequest) throws ApiException {
Object localVarPostBody = deleteArtifactRequest;
// verify the required parameter 'client' is set
if (client == null) {
throw new ApiException(400, "Missing the required parameter 'client' when calling deleteDatasets");
}
// verify the required parameter 'project' is set
if (project == null) {
throw new ApiException(400, "Missing the required parameter 'project' when calling deleteDatasets");
}
// verify the required parameter 'deleteArtifactRequest' is set
if (deleteArtifactRequest == null) {
throw new ApiException(400, "Missing the required parameter 'deleteArtifactRequest' when calling deleteDatasets");
}
// create path and map variables
String localVarPath = "/data/{client}/{project}"
.replaceAll("\\{" + "client" + "\\}", apiClient.escapeString(client.toString()))
.replaceAll("\\{" + "project" + "\\}", apiClient.escapeString(project.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new 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[] { "api", "jwt", "oauth2" };
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI("DataServicesApi.deleteDatasets", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Delete record
*
* @param client Client name (required)
* @param project Project name (required)
* @param artifact Dataset name (required)
* @param id Record Id (required)
* @param v Dataset version (optional)
* @return DataResponse
* @throws ApiException if fails to make API call
* @http.response.details
Status Code
Description
Response Headers
200
Results of the operation
-
400
Bad request
-
401
Unauthorized
-
403
Forbidden
-
404
Not found
-
500
Backend Error
-
*/
public DataResponse deleteRecord(String client, String project, String artifact, String id, String v) throws ApiException {
return deleteRecordWithHttpInfo(client, project, artifact, id, v).getData();
}
/**
* Delete record
*
* @param client Client name (required)
* @param project Project name (required)
* @param artifact Dataset name (required)
* @param id Record Id (required)
* @param v Dataset version (optional)
* @return ApiResponse<DataResponse>
* @throws ApiException if fails to make API call
* @http.response.details
Status Code
Description
Response Headers
200
Results of the operation
-
400
Bad request
-
401
Unauthorized
-
403
Forbidden
-
404
Not found
-
500
Backend Error
-
*/
public ApiResponse deleteRecordWithHttpInfo(String client, String project, String artifact, String id, String v) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'client' is set
if (client == null) {
throw new ApiException(400, "Missing the required parameter 'client' when calling deleteRecord");
}
// verify the required parameter 'project' is set
if (project == null) {
throw new ApiException(400, "Missing the required parameter 'project' when calling deleteRecord");
}
// verify the required parameter 'artifact' is set
if (artifact == null) {
throw new ApiException(400, "Missing the required parameter 'artifact' when calling deleteRecord");
}
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException(400, "Missing the required parameter 'id' when calling deleteRecord");
}
// create path and map variables
String localVarPath = "/data/{client}/{project}/{artifact}/rows/{id}"
.replaceAll("\\{" + "client" + "\\}", apiClient.escapeString(client.toString()))
.replaceAll("\\{" + "project" + "\\}", apiClient.escapeString(project.toString()))
.replaceAll("\\{" + "artifact" + "\\}", apiClient.escapeString(artifact.toString()))
.replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
localVarQueryParams.addAll(apiClient.parameterToPairs("", "v", v));
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "api", "jwt", "oauth2" };
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI("DataServicesApi.deleteRecord", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Delete records
*
* @param client Client name (required)
* @param project Project name (required)
* @param artifact Dataset name (required)
* @param deleteDataRequest Remove records by criteria (required)
* @param v Dataset version (optional)
* @return DataResponse
* @throws ApiException if fails to make API call
* @http.response.details
Status Code
Description
Response Headers
200
Results of the operation
-
400
Bad request
-
401
Unauthorized
-
403
Forbidden
-
404
Not found
-
500
Backend Error
-
*/
public DataResponse deleteRecords(String client, String project, String artifact, DeleteDataRequest deleteDataRequest, String v) throws ApiException {
return deleteRecordsWithHttpInfo(client, project, artifact, deleteDataRequest, v).getData();
}
/**
* Delete records
*
* @param client Client name (required)
* @param project Project name (required)
* @param artifact Dataset name (required)
* @param deleteDataRequest Remove records by criteria (required)
* @param v Dataset version (optional)
* @return ApiResponse<DataResponse>
* @throws ApiException if fails to make API call
* @http.response.details
Status Code
Description
Response Headers
200
Results of the operation
-
400
Bad request
-
401
Unauthorized
-
403
Forbidden
-
404
Not found
-
500
Backend Error
-
*/
public ApiResponse deleteRecordsWithHttpInfo(String client, String project, String artifact, DeleteDataRequest deleteDataRequest, String v) throws ApiException {
Object localVarPostBody = deleteDataRequest;
// verify the required parameter 'client' is set
if (client == null) {
throw new ApiException(400, "Missing the required parameter 'client' when calling deleteRecords");
}
// verify the required parameter 'project' is set
if (project == null) {
throw new ApiException(400, "Missing the required parameter 'project' when calling deleteRecords");
}
// verify the required parameter 'artifact' is set
if (artifact == null) {
throw new ApiException(400, "Missing the required parameter 'artifact' when calling deleteRecords");
}
// verify the required parameter 'deleteDataRequest' is set
if (deleteDataRequest == null) {
throw new ApiException(400, "Missing the required parameter 'deleteDataRequest' when calling deleteRecords");
}
// create path and map variables
String localVarPath = "/data/{client}/{project}/{artifact}/rows"
.replaceAll("\\{" + "client" + "\\}", apiClient.escapeString(client.toString()))
.replaceAll("\\{" + "project" + "\\}", apiClient.escapeString(project.toString()))
.replaceAll("\\{" + "artifact" + "\\}", apiClient.escapeString(artifact.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
localVarQueryParams.addAll(apiClient.parameterToPairs("", "v", v));
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[] { "api", "jwt", "oauth2" };
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI("DataServicesApi.deleteRecords", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Get dataset
* Get a dataset
* @param client Client name (required)
* @param project Project name (required)
* @param artifact Dataset name (required)
* @param v Dataset version (optional)
* @param view Fields to return in the results (optional, default to new ArrayList<>())
* @return Dataset
* @throws ApiException if fails to make API call
* @http.response.details
Status Code
Description
Response Headers
200
Retrieved dataset
-
400
Bad request
-
401
Unauthorized
-
403
Forbidden
-
404
Not found
-
500
Backend Error
-
*/
public Dataset getDataset(String client, String project, String artifact, String v, List view) throws ApiException {
return getDatasetWithHttpInfo(client, project, artifact, v, view).getData();
}
/**
* Get dataset
* Get a dataset
* @param client Client name (required)
* @param project Project name (required)
* @param artifact Dataset name (required)
* @param v Dataset version (optional)
* @param view Fields to return in the results (optional, default to new ArrayList<>())
* @return ApiResponse<Dataset>
* @throws ApiException if fails to make API call
* @http.response.details
Status Code
Description
Response Headers
200
Retrieved dataset
-
400
Bad request
-
401
Unauthorized
-
403
Forbidden
-
404
Not found
-
500
Backend Error
-
*/
public ApiResponse getDatasetWithHttpInfo(String client, String project, String artifact, String v, List view) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'client' is set
if (client == null) {
throw new ApiException(400, "Missing the required parameter 'client' when calling getDataset");
}
// verify the required parameter 'project' is set
if (project == null) {
throw new ApiException(400, "Missing the required parameter 'project' when calling getDataset");
}
// verify the required parameter 'artifact' is set
if (artifact == null) {
throw new ApiException(400, "Missing the required parameter 'artifact' when calling getDataset");
}
// create path and map variables
String localVarPath = "/data/{client}/{project}/{artifact}"
.replaceAll("\\{" + "client" + "\\}", apiClient.escapeString(client.toString()))
.replaceAll("\\{" + "project" + "\\}", apiClient.escapeString(project.toString()))
.replaceAll("\\{" + "artifact" + "\\}", apiClient.escapeString(artifact.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
localVarQueryParams.addAll(apiClient.parameterToPairs("", "v", v));
localVarQueryParams.addAll(apiClient.parameterToPairs("csv", "view", view));
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "api", "jwt", "oauth2" };
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI("DataServicesApi.getDataset", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Get content
* Get dataset content using optional simple filters
* @param client Client name (required)
* @param project Project name (required)
* @param artifact Dataset name (required)
* @param v Dataset version (optional)
* @param view Fields to return in the results (optional, default to new ArrayList<>())
* @return Object
* @throws ApiException if fails to make API call
* @http.response.details
Status Code
Description
Response Headers
200
Retrieved content
-
400
Bad request
-
401
Unauthorized
-
403
Forbidden
-
404
Not found
-
500
Backend Error
-
*/
public Object getDatasetContent(String client, String project, String artifact, String v, List view) throws ApiException {
return getDatasetContentWithHttpInfo(client, project, artifact, v, view).getData();
}
/**
* Get content
* Get dataset content using optional simple filters
* @param client Client name (required)
* @param project Project name (required)
* @param artifact Dataset name (required)
* @param v Dataset version (optional)
* @param view Fields to return in the results (optional, default to new ArrayList<>())
* @return ApiResponse<Object>
* @throws ApiException if fails to make API call
* @http.response.details