Please wait. This can take some minutes ...
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.
io.logicdrop.openapi.jersey.api.QueryServicesApi Maven / Gradle / Ivy
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.ArtifactResponse;
import io.logicdrop.openapi.models.DeleteArtifactRequest;
import io.logicdrop.openapi.models.QueryExecuteRequest;
import io.logicdrop.openapi.models.UpdateArtifactRequest;
import io.logicdrop.openapi.models.UserQuery;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class QueryServicesApi {
private ApiClient apiClient;
public QueryServicesApi() {
this(Configuration.getDefaultApiClient());
}
public QueryServicesApi(ApiClient apiClient) {
this.apiClient = apiClient;
}
public ApiClient getApiClient() {
return apiClient;
}
public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient;
}
/**
* Delete queries
*
* @param client Client name (required)
* @param project Project name (required)
* @param deleteArtifactRequest Remove queries 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 deleteQueries(String client, String project, DeleteArtifactRequest deleteArtifactRequest) throws ApiException {
return deleteQueriesWithHttpInfo(client, project, deleteArtifactRequest).getData();
}
/**
* Delete queries
*
* @param client Client name (required)
* @param project Project name (required)
* @param deleteArtifactRequest Remove queries 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 deleteQueriesWithHttpInfo(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 deleteQueries");
}
// verify the required parameter 'project' is set
if (project == null) {
throw new ApiException(400, "Missing the required parameter 'project' when calling deleteQueries");
}
// verify the required parameter 'deleteArtifactRequest' is set
if (deleteArtifactRequest == null) {
throw new ApiException(400, "Missing the required parameter 'deleteArtifactRequest' when calling deleteQueries");
}
// create path and map variables
String localVarPath = "/query/{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("QueryServicesApi.deleteQueries", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Delete query
*
* @param client Client name (required)
* @param project Project name (required)
* @param artifact Query name (required)
* @param v Query 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 deleteQuery(String client, String project, String artifact, String v) throws ApiException {
return deleteQueryWithHttpInfo(client, project, artifact, v).getData();
}
/**
* Delete query
*
* @param client Client name (required)
* @param project Project name (required)
* @param artifact Query name (required)
* @param v Query 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 deleteQueryWithHttpInfo(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 deleteQuery");
}
// verify the required parameter 'project' is set
if (project == null) {
throw new ApiException(400, "Missing the required parameter 'project' when calling deleteQuery");
}
// verify the required parameter 'artifact' is set
if (artifact == null) {
throw new ApiException(400, "Missing the required parameter 'artifact' when calling deleteQuery");
}
// create path and map variables
String localVarPath = "/query/{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("QueryServicesApi.deleteQuery", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Execute live query
* Execute a live query
* @param client Client name (required)
* @param queryExecuteRequest Query to execute (required)
* @return Object
* @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 Object executeQuery(String client, QueryExecuteRequest queryExecuteRequest) throws ApiException {
return executeQueryWithHttpInfo(client, queryExecuteRequest).getData();
}
/**
* Execute live query
* Execute a live query
* @param client Client name (required)
* @param queryExecuteRequest Query to execute (required)
* @return ApiResponse<Object>
* @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 executeQueryWithHttpInfo(String client, QueryExecuteRequest queryExecuteRequest) throws ApiException {
Object localVarPostBody = queryExecuteRequest;
// verify the required parameter 'client' is set
if (client == null) {
throw new ApiException(400, "Missing the required parameter 'client' when calling executeQuery");
}
// verify the required parameter 'queryExecuteRequest' is set
if (queryExecuteRequest == null) {
throw new ApiException(400, "Missing the required parameter 'queryExecuteRequest' when calling executeQuery");
}
// create path and map variables
String localVarPath = "/query/{client}/execute"
.replaceAll("\\{" + "client" + "\\}", apiClient.escapeString(client.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("QueryServicesApi.executeQuery", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Get query
* Get a query
* @param client Client name (required)
* @param project Project name (required)
* @param artifact Query name (required)
* @param v Query version (optional)
* @param view Fields to return in the results (optional, default to new ArrayList<>())
* @return UserQuery
* @throws ApiException if fails to make API call
* @http.response.details
Status Code Description Response Headers
200 Retrieved query -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/
public UserQuery getQuery(String client, String project, String artifact, String v, List view) throws ApiException {
return getQueryWithHttpInfo(client, project, artifact, v, view).getData();
}
/**
* Get query
* Get a query
* @param client Client name (required)
* @param project Project name (required)
* @param artifact Query name (required)
* @param v Query version (optional)
* @param view Fields to return in the results (optional, default to new ArrayList<>())
* @return ApiResponse<UserQuery>
* @throws ApiException if fails to make API call
* @http.response.details
Status Code Description Response Headers
200 Retrieved query -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/
public ApiResponse getQueryWithHttpInfo(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 getQuery");
}
// verify the required parameter 'project' is set
if (project == null) {
throw new ApiException(400, "Missing the required parameter 'project' when calling getQuery");
}
// verify the required parameter 'artifact' is set
if (artifact == null) {
throw new ApiException(400, "Missing the required parameter 'artifact' when calling getQuery");
}
// create path and map variables
String localVarPath = "/query/{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("QueryServicesApi.getQuery", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* List queries
* Get queries using optional simple filters
* @param client Client name (required)
* @param project Project name (required)
* @param view Fields to return in the results (optional, default to new ArrayList<>())
* @return List<UserQuery>
* @throws ApiException if fails to make API call
* @http.response.details
Status Code Description Response Headers
200 Retrieved queries -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/
public List listQueries(String client, String project, List view) throws ApiException {
return listQueriesWithHttpInfo(client, project, view).getData();
}
/**
* List queries
* Get queries using optional simple filters
* @param client Client name (required)
* @param project Project name (required)
* @param view Fields to return in the results (optional, default to new ArrayList<>())
* @return ApiResponse<List<UserQuery>>
* @throws ApiException if fails to make API call
* @http.response.details
Status Code Description Response Headers
200 Retrieved queries -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/
public ApiResponse> listQueriesWithHttpInfo(String client, String project, 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 listQueries");
}
// verify the required parameter 'project' is set
if (project == null) {
throw new ApiException(400, "Missing the required parameter 'project' when calling listQueries");
}
// create path and map variables
String localVarPath = "/query/{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();
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("QueryServicesApi.listQueries", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Execute saved query
* Execute a saved query
* @param client Client name (required)
* @param project Project name (required)
* @param artifact Query name (required)
* @param v Query version (optional)
* @return Object
* @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 Object runQuery(String client, String project, String artifact, String v) throws ApiException {
return runQueryWithHttpInfo(client, project, artifact, v).getData();
}
/**
* Execute saved query
* Execute a saved query
* @param client Client name (required)
* @param project Project name (required)
* @param artifact Query name (required)
* @param v Query version (optional)
* @return ApiResponse<Object>
* @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 runQueryWithHttpInfo(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 runQuery");
}
// verify the required parameter 'project' is set
if (project == null) {
throw new ApiException(400, "Missing the required parameter 'project' when calling runQuery");
}
// verify the required parameter 'artifact' is set
if (artifact == null) {
throw new ApiException(400, "Missing the required parameter 'artifact' when calling runQuery");
}
// create path and map variables
String localVarPath = "/query/{client}/{project}/{artifact}/run"
.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("QueryServicesApi.runQuery", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Save query
* Saves or creates a query (overwrite)
* @param client Client name (required)
* @param project Project name (required)
* @param userQuery Query to persist (required)
* @return UserQuery
* @throws ApiException if fails to make API call
* @http.response.details
Status Code Description Response Headers
200 The saved query -
400 Bad request -
401 Unauthorized -
403 Forbidden -
409 Version Conflict -
500 Backend Error -
*/
public UserQuery saveQuery(String client, String project, UserQuery userQuery) throws ApiException {
return saveQueryWithHttpInfo(client, project, userQuery).getData();
}
/**
* Save query
* Saves or creates a query (overwrite)
* @param client Client name (required)
* @param project Project name (required)
* @param userQuery Query to persist (required)
* @return ApiResponse<UserQuery>
* @throws ApiException if fails to make API call
* @http.response.details
Status Code Description Response Headers
200 The saved query -
400 Bad request -
401 Unauthorized -
403 Forbidden -
409 Version Conflict -
500 Backend Error -
*/
public ApiResponse saveQueryWithHttpInfo(String client, String project, UserQuery userQuery) throws ApiException {
Object localVarPostBody = userQuery;
// verify the required parameter 'client' is set
if (client == null) {
throw new ApiException(400, "Missing the required parameter 'client' when calling saveQuery");
}
// verify the required parameter 'project' is set
if (project == null) {
throw new ApiException(400, "Missing the required parameter 'project' when calling saveQuery");
}
// verify the required parameter 'userQuery' is set
if (userQuery == null) {
throw new ApiException(400, "Missing the required parameter 'userQuery' when calling saveQuery");
}
// create path and map variables
String localVarPath = "/query/{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("QueryServicesApi.saveQuery", localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Update queries
* Updates multiple queries
* @param client Client name (required)
* @param project Project name (required)
* @param updateArtifactRequest Queries to update (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 updateQueries(String client, String project, UpdateArtifactRequest updateArtifactRequest) throws ApiException {
return updateQueriesWithHttpInfo(client, project, updateArtifactRequest).getData();
}
/**
* Update queries
* Updates multiple queries
* @param client Client name (required)
* @param project Project name (required)
* @param updateArtifactRequest Queries to update (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 updateQueriesWithHttpInfo(String client, String project, UpdateArtifactRequest updateArtifactRequest) throws ApiException {
Object localVarPostBody = updateArtifactRequest;
// verify the required parameter 'client' is set
if (client == null) {
throw new ApiException(400, "Missing the required parameter 'client' when calling updateQueries");
}
// verify the required parameter 'project' is set
if (project == null) {
throw new ApiException(400, "Missing the required parameter 'project' when calling updateQueries");
}
// verify the required parameter 'updateArtifactRequest' is set
if (updateArtifactRequest == null) {
throw new ApiException(400, "Missing the required parameter 'updateArtifactRequest' when calling updateQueries");
}
// create path and map variables
String localVarPath = "/query/{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("QueryServicesApi.updateQueries", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Update query
* Updates one query
* @param client Client name (required)
* @param project Project name (required)
* @param updateArtifactRequest Query to update (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 updateQuery(String client, String project, UpdateArtifactRequest updateArtifactRequest) throws ApiException {
return updateQueryWithHttpInfo(client, project, updateArtifactRequest).getData();
}
/**
* Update query
* Updates one query
* @param client Client name (required)
* @param project Project name (required)
* @param updateArtifactRequest Query to update (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 updateQueryWithHttpInfo(String client, String project, UpdateArtifactRequest updateArtifactRequest) throws ApiException {
Object localVarPostBody = updateArtifactRequest;
// verify the required parameter 'client' is set
if (client == null) {
throw new ApiException(400, "Missing the required parameter 'client' when calling updateQuery");
}
// verify the required parameter 'project' is set
if (project == null) {
throw new ApiException(400, "Missing the required parameter 'project' when calling updateQuery");
}
// verify the required parameter 'updateArtifactRequest' is set
if (updateArtifactRequest == null) {
throw new ApiException(400, "Missing the required parameter 'updateArtifactRequest' when calling updateQuery");
}
// create path and map variables
String localVarPath = "/query/{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("QueryServicesApi.updateQuery", localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
}