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

io.logicdrop.openapi.jersey.api.ComputeServicesApi 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.ActivateRulesetResponse;
import io.logicdrop.openapi.models.AnalyzeRequest;
import io.logicdrop.openapi.models.ArtifactResponse;
import io.logicdrop.openapi.models.ComputeRule;
import io.logicdrop.openapi.models.ComputeRuleset;
import io.logicdrop.openapi.models.ContainerResponse;
import io.logicdrop.openapi.models.DataResponse;
import io.logicdrop.openapi.models.DeleteArtifactRequest;
import io.logicdrop.openapi.models.DeleteDataRequest;
import io.logicdrop.openapi.models.DesignerResult;
import java.io.File;
import io.logicdrop.openapi.models.GenerateAllRequest;
import io.logicdrop.openapi.models.GenerateOneRequest;
import io.logicdrop.openapi.models.ProcessorRequest;
import io.logicdrop.openapi.models.ProcessorResult;
import io.logicdrop.openapi.models.RuleContainer;
import io.logicdrop.openapi.models.SampleRequest;
import io.logicdrop.openapi.models.UpdateArtifactRequest;
import io.logicdrop.openapi.models.UpdateRuleTypesRequest;
import io.logicdrop.openapi.models.UpdateRulesetResponse;
import io.logicdrop.openapi.models.UploadResponse;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;


public class ComputeServicesApi {
  private ApiClient apiClient;

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

  public ComputeServicesApi(ApiClient apiClient) {
    this.apiClient = apiClient;
  }

  public ApiClient getApiClient() {
    return apiClient;
  }

  public void setApiClient(ApiClient apiClient) {
    this.apiClient = apiClient;
  }
  /**
   * Activate ruleset
   * Activate a ruleset
   * @param client Client name (required)
   * @param project Project name (required)
   * @param artifact Ruleset name (required)
   * @param v Ruleset version (optional)
   * @return ActivateRulesetResponse
   * @throws ApiException if fails to make API call
   * @http.response.details
     
Status Code Description Response Headers
200 Ruleset state -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public ActivateRulesetResponse activateRuleset(String client, String project, String artifact, String v) throws ApiException { return activateRulesetWithHttpInfo(client, project, artifact, v).getData(); } /** * Activate ruleset * Activate a ruleset * @param client Client name (required) * @param project Project name (required) * @param artifact Ruleset name (required) * @param v Ruleset version (optional) * @return ApiResponse<ActivateRulesetResponse> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Ruleset state -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public ApiResponse activateRulesetWithHttpInfo(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 activateRuleset"); } // verify the required parameter 'project' is set if (project == null) { throw new ApiException(400, "Missing the required parameter 'project' when calling activateRuleset"); } // verify the required parameter 'artifact' is set if (artifact == null) { throw new ApiException(400, "Missing the required parameter 'artifact' when calling activateRuleset"); } // create path and map variables String localVarPath = "/compute/{client}/{project}/{artifact}/activate" .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("ComputeServicesApi.activateRuleset", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Analyze ruleset * Analyze ruleset * @param client Client (required) * @param analyzeRequest Analysis execute request (required) * @return DesignerResult * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Analysis results -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
503 Container unavailable -
*/ public DesignerResult analyzeRuleset(String client, AnalyzeRequest analyzeRequest) throws ApiException { return analyzeRulesetWithHttpInfo(client, analyzeRequest).getData(); } /** * Analyze ruleset * Analyze ruleset * @param client Client (required) * @param analyzeRequest Analysis execute request (required) * @return ApiResponse<DesignerResult> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Analysis results -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
503 Container unavailable -
*/ public ApiResponse analyzeRulesetWithHttpInfo(String client, AnalyzeRequest analyzeRequest) throws ApiException { Object localVarPostBody = analyzeRequest; // verify the required parameter 'client' is set if (client == null) { throw new ApiException(400, "Missing the required parameter 'client' when calling analyzeRuleset"); } // verify the required parameter 'analyzeRequest' is set if (analyzeRequest == null) { throw new ApiException(400, "Missing the required parameter 'analyzeRequest' when calling analyzeRuleset"); } // create path and map variables String localVarPath = "/compute/{client}/analyze" .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("ComputeServicesApi.analyzeRuleset", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Deactivate ruleset * Deactivate a ruleset * @param client Client name (required) * @param project Project name (required) * @param artifact Ruleset name (required) * @param v Ruleset version (optional) * @return ActivateRulesetResponse * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Ruleset state -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public ActivateRulesetResponse deactivateRuleset(String client, String project, String artifact, String v) throws ApiException { return deactivateRulesetWithHttpInfo(client, project, artifact, v).getData(); } /** * Deactivate ruleset * Deactivate a ruleset * @param client Client name (required) * @param project Project name (required) * @param artifact Ruleset name (required) * @param v Ruleset version (optional) * @return ApiResponse<ActivateRulesetResponse> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Ruleset state -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public ApiResponse deactivateRulesetWithHttpInfo(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 deactivateRuleset"); } // verify the required parameter 'project' is set if (project == null) { throw new ApiException(400, "Missing the required parameter 'project' when calling deactivateRuleset"); } // verify the required parameter 'artifact' is set if (artifact == null) { throw new ApiException(400, "Missing the required parameter 'artifact' when calling deactivateRuleset"); } // create path and map variables String localVarPath = "/compute/{client}/{project}/{artifact}/activate" .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("ComputeServicesApi.deactivateRuleset", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Delete rule * * @param client Client name (required) * @param project Project name (required) * @param artifact Ruleset name (required) * @param id Rule Id (required) * @param v Ruleset 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 deleteRule(String client, String project, String artifact, String id, String v) throws ApiException { return deleteRuleWithHttpInfo(client, project, artifact, id, v).getData(); } /** * Delete rule * * @param client Client name (required) * @param project Project name (required) * @param artifact Ruleset name (required) * @param id Rule Id (required) * @param v Ruleset 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 deleteRuleWithHttpInfo(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 deleteRule"); } // verify the required parameter 'project' is set if (project == null) { throw new ApiException(400, "Missing the required parameter 'project' when calling deleteRule"); } // verify the required parameter 'artifact' is set if (artifact == null) { throw new ApiException(400, "Missing the required parameter 'artifact' when calling deleteRule"); } // verify the required parameter 'id' is set if (id == null) { throw new ApiException(400, "Missing the required parameter 'id' when calling deleteRule"); } // create path and map variables String localVarPath = "/compute/{client}/{project}/{artifact}/rules/{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("ComputeServicesApi.deleteRule", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Delete rules * * @param client Client name (required) * @param project Project name (required) * @param artifact Ruleset name (required) * @param deleteDataRequest Remove rules by criteria (required) * @param v Ruleset 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 deleteRules(String client, String project, String artifact, DeleteDataRequest deleteDataRequest, String v) throws ApiException { return deleteRulesWithHttpInfo(client, project, artifact, deleteDataRequest, v).getData(); } /** * Delete rules * * @param client Client name (required) * @param project Project name (required) * @param artifact Ruleset name (required) * @param deleteDataRequest Remove rules by criteria (required) * @param v Ruleset 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 deleteRulesWithHttpInfo(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 deleteRules"); } // verify the required parameter 'project' is set if (project == null) { throw new ApiException(400, "Missing the required parameter 'project' when calling deleteRules"); } // verify the required parameter 'artifact' is set if (artifact == null) { throw new ApiException(400, "Missing the required parameter 'artifact' when calling deleteRules"); } // verify the required parameter 'deleteDataRequest' is set if (deleteDataRequest == null) { throw new ApiException(400, "Missing the required parameter 'deleteDataRequest' when calling deleteRules"); } // create path and map variables String localVarPath = "/compute/{client}/{project}/{artifact}/rules" .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("ComputeServicesApi.deleteRules", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Delete ruleset * * @param client Client name (required) * @param project Project name (required) * @param artifact Ruleset name (required) * @param v Ruleset 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 deleteRuleset(String client, String project, String artifact, String v) throws ApiException { return deleteRulesetWithHttpInfo(client, project, artifact, v).getData(); } /** * Delete ruleset * * @param client Client name (required) * @param project Project name (required) * @param artifact Ruleset name (required) * @param v Ruleset 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 deleteRulesetWithHttpInfo(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 deleteRuleset"); } // verify the required parameter 'project' is set if (project == null) { throw new ApiException(400, "Missing the required parameter 'project' when calling deleteRuleset"); } // verify the required parameter 'artifact' is set if (artifact == null) { throw new ApiException(400, "Missing the required parameter 'artifact' when calling deleteRuleset"); } // create path and map variables String localVarPath = "/compute/{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("ComputeServicesApi.deleteRuleset", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Delete rulesets * * @param client Client name (required) * @param project Project name (required) * @param deleteArtifactRequest Remove ruleset 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 deleteRulesets(String client, String project, DeleteArtifactRequest deleteArtifactRequest) throws ApiException { return deleteRulesetsWithHttpInfo(client, project, deleteArtifactRequest).getData(); } /** * Delete rulesets * * @param client Client name (required) * @param project Project name (required) * @param deleteArtifactRequest Remove ruleset 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 deleteRulesetsWithHttpInfo(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 deleteRulesets"); } // verify the required parameter 'project' is set if (project == null) { throw new ApiException(400, "Missing the required parameter 'project' when calling deleteRulesets"); } // verify the required parameter 'deleteArtifactRequest' is set if (deleteArtifactRequest == null) { throw new ApiException(400, "Missing the required parameter 'deleteArtifactRequest' when calling deleteRulesets"); } // create path and map variables String localVarPath = "/compute/{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("ComputeServicesApi.deleteRulesets", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Execute ruleset * Process rules using a simple input/output request * @param client Client (required) * @param processorRequest Processor Request (required) * @return ProcessorResult * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Processed results -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
503 Container unavailable -
*/ public ProcessorResult executeRules(String client, ProcessorRequest processorRequest) throws ApiException { return executeRulesWithHttpInfo(client, processorRequest).getData(); } /** * Execute ruleset * Process rules using a simple input/output request * @param client Client (required) * @param processorRequest Processor Request (required) * @return ApiResponse<ProcessorResult> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Processed results -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
503 Container unavailable -
*/ public ApiResponse executeRulesWithHttpInfo(String client, ProcessorRequest processorRequest) throws ApiException { Object localVarPostBody = processorRequest; // verify the required parameter 'client' is set if (client == null) { throw new ApiException(400, "Missing the required parameter 'client' when calling executeRules"); } // verify the required parameter 'processorRequest' is set if (processorRequest == null) { throw new ApiException(400, "Missing the required parameter 'processorRequest' when calling executeRules"); } // create path and map variables String localVarPath = "/compute/{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("ComputeServicesApi.executeRules", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Generate ruleset * Generate ruleset * @param client Client name (required) * @param project Project name (required) * @param artifact Ruleset name (required) * @param v Ruleset version (optional) * @param type Compiler Type (optional, default to "drl") * @return String * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Generated rules -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public String generateRuleset(String client, String project, String artifact, String v, String type) throws ApiException { return generateRulesetWithHttpInfo(client, project, artifact, v, type).getData(); } /** * Generate ruleset * Generate ruleset * @param client Client name (required) * @param project Project name (required) * @param artifact Ruleset name (required) * @param v Ruleset version (optional) * @param type Compiler Type (optional, default to "drl") * @return ApiResponse<String> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Generated rules -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public ApiResponse generateRulesetWithHttpInfo(String client, String project, String artifact, String v, String type) 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 generateRuleset"); } // verify the required parameter 'project' is set if (project == null) { throw new ApiException(400, "Missing the required parameter 'project' when calling generateRuleset"); } // verify the required parameter 'artifact' is set if (artifact == null) { throw new ApiException(400, "Missing the required parameter 'artifact' when calling generateRuleset"); } // create path and map variables String localVarPath = "/compute/{client}/{project}/{artifact}/generate" .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("", "type", type)); final String[] localVarAccepts = { "text/plain" }; 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("ComputeServicesApi.generateRuleset", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Get rule * Get a rule * @param client Client name (required) * @param project Project name (required) * @param artifact Ruleset name (required) * @param id Rule Id (required) * @param v Ruleset version (optional) * @param view Fields to return in the results (optional, default to new ArrayList<>()) * @return ComputeRule * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Retrieved rules -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public ComputeRule getRule(String client, String project, String artifact, String id, String v, List view) throws ApiException { return getRuleWithHttpInfo(client, project, artifact, id, v, view).getData(); } /** * Get rule * Get a rule * @param client Client name (required) * @param project Project name (required) * @param artifact Ruleset name (required) * @param id Rule Id (required) * @param v Ruleset version (optional) * @param view Fields to return in the results (optional, default to new ArrayList<>()) * @return ApiResponse<ComputeRule> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Retrieved rules -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public ApiResponse getRuleWithHttpInfo(String client, String project, String artifact, String id, 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 getRule"); } // verify the required parameter 'project' is set if (project == null) { throw new ApiException(400, "Missing the required parameter 'project' when calling getRule"); } // verify the required parameter 'artifact' is set if (artifact == null) { throw new ApiException(400, "Missing the required parameter 'artifact' when calling getRule"); } // verify the required parameter 'id' is set if (id == null) { throw new ApiException(400, "Missing the required parameter 'id' when calling getRule"); } // create path and map variables String localVarPath = "/compute/{client}/{project}/{artifact}/rules/{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)); 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("ComputeServicesApi.getRule", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Get ruleset * Get an ruleset * @param client Client name (required) * @param project Project name (required) * @param artifact Ruleset name (required) * @param v Ruleset version (optional) * @param view Fields to return in the results (optional, default to new ArrayList<>()) * @return ComputeRuleset * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Retrieved ruleset -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public ComputeRuleset getRuleset(String client, String project, String artifact, String v, List view) throws ApiException { return getRulesetWithHttpInfo(client, project, artifact, v, view).getData(); } /** * Get ruleset * Get an ruleset * @param client Client name (required) * @param project Project name (required) * @param artifact Ruleset name (required) * @param v Ruleset version (optional) * @param view Fields to return in the results (optional, default to new ArrayList<>()) * @return ApiResponse<ComputeRuleset> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Retrieved ruleset -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public ApiResponse getRulesetWithHttpInfo(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 getRuleset"); } // verify the required parameter 'project' is set if (project == null) { throw new ApiException(400, "Missing the required parameter 'project' when calling getRuleset"); } // verify the required parameter 'artifact' is set if (artifact == null) { throw new ApiException(400, "Missing the required parameter 'artifact' when calling getRuleset"); } // create path and map variables String localVarPath = "/compute/{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("ComputeServicesApi.getRuleset", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Get content * Get ruleset content * @param client Client name (required) * @param project Project name (required) * @param artifact Ruleset name (required) * @param v Ruleset version (optional) * @return String * @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 String getRulesetContent(String client, String project, String artifact, String v) throws ApiException { return getRulesetContentWithHttpInfo(client, project, artifact, v).getData(); } /** * Get content * Get ruleset content * @param client Client name (required) * @param project Project name (required) * @param artifact Ruleset name (required) * @param v Ruleset version (optional) * @return ApiResponse<String> * @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 ApiResponse getRulesetContentWithHttpInfo(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 getRulesetContent"); } // verify the required parameter 'project' is set if (project == null) { throw new ApiException(400, "Missing the required parameter 'project' when calling getRulesetContent"); } // verify the required parameter 'artifact' is set if (artifact == null) { throw new ApiException(400, "Missing the required parameter 'artifact' when calling getRulesetContent"); } // create path and map variables String localVarPath = "/compute/{client}/{project}/{artifact}/content" .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 = { "text/plain" }; 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("ComputeServicesApi.getRulesetContent", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Get example request * Get ruleset request example * @param client Client name (required) * @param project Project name (required) * @param artifact Ruleset name (required) * @param v Ruleset version (optional) * @return String * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Retrieved example -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public String getRulesetExample(String client, String project, String artifact, String v) throws ApiException { return getRulesetExampleWithHttpInfo(client, project, artifact, v).getData(); } /** * Get example request * Get ruleset request example * @param client Client name (required) * @param project Project name (required) * @param artifact Ruleset name (required) * @param v Ruleset version (optional) * @return ApiResponse<String> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Retrieved example -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public ApiResponse getRulesetExampleWithHttpInfo(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 getRulesetExample"); } // verify the required parameter 'project' is set if (project == null) { throw new ApiException(400, "Missing the required parameter 'project' when calling getRulesetExample"); } // verify the required parameter 'artifact' is set if (artifact == null) { throw new ApiException(400, "Missing the required parameter 'artifact' when calling getRulesetExample"); } // create path and map variables String localVarPath = "/compute/{client}/{project}/{artifact}/example" .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 = { "text/plain" }; 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("ComputeServicesApi.getRulesetExample", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Get types * Get ruleset types * @param client Client name (required) * @param project Project name (required) * @param artifact Ruleset name (required) * @param v Ruleset version (optional) * @return String * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Retrieved types -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public String getRulesetTypes(String client, String project, String artifact, String v) throws ApiException { return getRulesetTypesWithHttpInfo(client, project, artifact, v).getData(); } /** * Get types * Get ruleset types * @param client Client name (required) * @param project Project name (required) * @param artifact Ruleset name (required) * @param v Ruleset version (optional) * @return ApiResponse<String> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Retrieved types -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public ApiResponse getRulesetTypesWithHttpInfo(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 getRulesetTypes"); } // verify the required parameter 'project' is set if (project == null) { throw new ApiException(400, "Missing the required parameter 'project' when calling getRulesetTypes"); } // verify the required parameter 'artifact' is set if (artifact == null) { throw new ApiException(400, "Missing the required parameter 'artifact' when calling getRulesetTypes"); } // create path and map variables String localVarPath = "/compute/{client}/{project}/{artifact}/types" .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("ComputeServicesApi.getRulesetTypes", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * List containers * Get containers possibly filtered by project and/or ruleset * @param client Client name (required) * @param project Filter by project containers (optional) * @param ruleset Filter by ruleset containers (optional) * @param status Container status (optional) * @return ContainerResponse * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Compute containers -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public ContainerResponse listContainers(String client, String project, String ruleset, String status) throws ApiException { return listContainersWithHttpInfo(client, project, ruleset, status).getData(); } /** * List containers * Get containers possibly filtered by project and/or ruleset * @param client Client name (required) * @param project Filter by project containers (optional) * @param ruleset Filter by ruleset containers (optional) * @param status Container status (optional) * @return ApiResponse<ContainerResponse> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Compute containers -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public ApiResponse listContainersWithHttpInfo(String client, String project, String ruleset, String status) 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 listContainers"); } // create path and map variables String localVarPath = "/compute/{client}/containers" .replaceAll("\\{" + "client" + "\\}", apiClient.escapeString(client.toString())); // query params List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); localVarQueryParams.addAll(apiClient.parameterToPairs("", "project", project)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "ruleset", ruleset)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "status", status)); 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("ComputeServicesApi.listContainers", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * List rules * Get rules using optional simple filters * @param client Client name (required) * @param project Project name (required) * @param artifact Ruleset name (required) * @param v Ruleset version (optional) * @param criteria Criteria (optional) * @param type Rule types (optional, default to user) * @param fields Any fields that match the single value only (requires a value) (optional, default to new ArrayList<>()) * @param value Value to find in any fields (requires fields) (optional) * @param view Fields to return in the results (optional, default to new ArrayList<>()) * @param filter Filters to apply (optional, default to new ArrayList<>()) * @param order Fields to order by (optional, default to new ArrayList<>()) * @param tags Tags to filter by (optional, default to new ArrayList<>()) * @param ignoreCase Ignore case (optional, default to false) * @return List<ComputeRule> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Retrieved rules -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public List listRules(String client, String project, String artifact, String v, String criteria, String type, List fields, String value, List view, List filter, List order, List tags, Boolean ignoreCase) throws ApiException { return listRulesWithHttpInfo(client, project, artifact, v, criteria, type, fields, value, view, filter, order, tags, ignoreCase).getData(); } /** * List rules * Get rules using optional simple filters * @param client Client name (required) * @param project Project name (required) * @param artifact Ruleset name (required) * @param v Ruleset version (optional) * @param criteria Criteria (optional) * @param type Rule types (optional, default to user) * @param fields Any fields that match the single value only (requires a value) (optional, default to new ArrayList<>()) * @param value Value to find in any fields (requires fields) (optional) * @param view Fields to return in the results (optional, default to new ArrayList<>()) * @param filter Filters to apply (optional, default to new ArrayList<>()) * @param order Fields to order by (optional, default to new ArrayList<>()) * @param tags Tags to filter by (optional, default to new ArrayList<>()) * @param ignoreCase Ignore case (optional, default to false) * @return ApiResponse<List<ComputeRule>> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Retrieved rules -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public ApiResponse> listRulesWithHttpInfo(String client, String project, String artifact, String v, String criteria, String type, List fields, String value, List view, List filter, List order, List tags, Boolean ignoreCase) 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 listRules"); } // verify the required parameter 'project' is set if (project == null) { throw new ApiException(400, "Missing the required parameter 'project' when calling listRules"); } // verify the required parameter 'artifact' is set if (artifact == null) { throw new ApiException(400, "Missing the required parameter 'artifact' when calling listRules"); } // create path and map variables String localVarPath = "/compute/{client}/{project}/{artifact}/rules" .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("", "criteria", criteria)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "type", type)); localVarQueryParams.addAll(apiClient.parameterToPairs("csv", "fields", fields)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "value", value)); localVarQueryParams.addAll(apiClient.parameterToPairs("csv", "view", view)); localVarQueryParams.addAll(apiClient.parameterToPairs("csv", "filter", filter)); localVarQueryParams.addAll(apiClient.parameterToPairs("csv", "order", order)); localVarQueryParams.addAll(apiClient.parameterToPairs("csv", "tags", tags)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "ignoreCase", ignoreCase)); 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("ComputeServicesApi.listRules", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * List rules by key * Get rules using a single key/value * @param client Client name (required) * @param project Project name (required) * @param artifact Ruleset name (required) * @param key Field name (required) * @param value Field value (required) * @param v Ruleset version (optional) * @param view Fields to return in the results (optional, default to new ArrayList<>()) * @return List<ComputeRule> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Retrieved record(s) -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public List listRulesBy(String client, String project, String artifact, String key, String value, String v, List view) throws ApiException { return listRulesByWithHttpInfo(client, project, artifact, key, value, v, view).getData(); } /** * List rules by key * Get rules using a single key/value * @param client Client name (required) * @param project Project name (required) * @param artifact Ruleset name (required) * @param key Field name (required) * @param value Field value (required) * @param v Ruleset version (optional) * @param view Fields to return in the results (optional, default to new ArrayList<>()) * @return ApiResponse<List<ComputeRule>> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Retrieved record(s) -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public ApiResponse> listRulesByWithHttpInfo(String client, String project, String artifact, String key, String value, 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 listRulesBy"); } // verify the required parameter 'project' is set if (project == null) { throw new ApiException(400, "Missing the required parameter 'project' when calling listRulesBy"); } // verify the required parameter 'artifact' is set if (artifact == null) { throw new ApiException(400, "Missing the required parameter 'artifact' when calling listRulesBy"); } // verify the required parameter 'key' is set if (key == null) { throw new ApiException(400, "Missing the required parameter 'key' when calling listRulesBy"); } // verify the required parameter 'value' is set if (value == null) { throw new ApiException(400, "Missing the required parameter 'value' when calling listRulesBy"); } // create path and map variables String localVarPath = "/compute/{client}/{project}/{artifact}/rules/by/{key}/{value}" .replaceAll("\\{" + "client" + "\\}", apiClient.escapeString(client.toString())) .replaceAll("\\{" + "project" + "\\}", apiClient.escapeString(project.toString())) .replaceAll("\\{" + "artifact" + "\\}", apiClient.escapeString(artifact.toString())) .replaceAll("\\{" + "key" + "\\}", apiClient.escapeString(key.toString())) .replaceAll("\\{" + "value" + "\\}", apiClient.escapeString(value.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("ComputeServicesApi.listRulesBy", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * List rulesets * Get rulesets 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<ComputeRuleset> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Retrieved rulesets -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public List listRulesets(String client, String project, List view) throws ApiException { return listRulesetsWithHttpInfo(client, project, view).getData(); } /** * List rulesets * Get rulesets 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<ComputeRuleset>> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Retrieved rulesets -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public ApiResponse> listRulesetsWithHttpInfo(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 listRulesets"); } // verify the required parameter 'project' is set if (project == null) { throw new ApiException(400, "Missing the required parameter 'project' when calling listRulesets"); } // create path and map variables String localVarPath = "/compute/{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("ComputeServicesApi.listRulesets", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Manage containers * Start/Update/Stop/Remove/Rebuild containers * @param client Client (required) * @param action Action to perform (required) * @param ruleContainer Container (required) * @return RuleContainer * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Container status -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
503 Container unavailable -
*/ public RuleContainer manageContainer(String client, String action, RuleContainer ruleContainer) throws ApiException { return manageContainerWithHttpInfo(client, action, ruleContainer).getData(); } /** * Manage containers * Start/Update/Stop/Remove/Rebuild containers * @param client Client (required) * @param action Action to perform (required) * @param ruleContainer Container (required) * @return ApiResponse<RuleContainer> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Container status -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
503 Container unavailable -
*/ public ApiResponse manageContainerWithHttpInfo(String client, String action, RuleContainer ruleContainer) throws ApiException { Object localVarPostBody = ruleContainer; // verify the required parameter 'client' is set if (client == null) { throw new ApiException(400, "Missing the required parameter 'client' when calling manageContainer"); } // verify the required parameter 'action' is set if (action == null) { throw new ApiException(400, "Missing the required parameter 'action' when calling manageContainer"); } // verify the required parameter 'ruleContainer' is set if (ruleContainer == null) { throw new ApiException(400, "Missing the required parameter 'ruleContainer' when calling manageContainer"); } // create path and map variables String localVarPath = "/compute/{client}/containers" .replaceAll("\\{" + "client" + "\\}", apiClient.escapeString(client.toString())); // query params List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); localVarQueryParams.addAll(apiClient.parameterToPairs("", "action", action)); 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("ComputeServicesApi.manageContainer", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Sample ruleset * Sample ruleset using a simple input/output request * @param client Client (required) * @param sampleRequest Sampling Request (required) * @return DesignerResult * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Analysis results -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
503 Container unavailable -
*/ public DesignerResult sampleRuleset(String client, SampleRequest sampleRequest) throws ApiException { return sampleRulesetWithHttpInfo(client, sampleRequest).getData(); } /** * Sample ruleset * Sample ruleset using a simple input/output request * @param client Client (required) * @param sampleRequest Sampling Request (required) * @return ApiResponse<DesignerResult> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Analysis results -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
503 Container unavailable -
*/ public ApiResponse sampleRulesetWithHttpInfo(String client, SampleRequest sampleRequest) throws ApiException { Object localVarPostBody = sampleRequest; // verify the required parameter 'client' is set if (client == null) { throw new ApiException(400, "Missing the required parameter 'client' when calling sampleRuleset"); } // verify the required parameter 'sampleRequest' is set if (sampleRequest == null) { throw new ApiException(400, "Missing the required parameter 'sampleRequest' when calling sampleRuleset"); } // create path and map variables String localVarPath = "/compute/{client}/sample" .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("ComputeServicesApi.sampleRuleset", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Save rule * Saves or create a rule (overwrite) * @param client Client name (required) * @param project Project name (required) * @param artifact Ruleset name (required) * @param computeRule Rule to persist (required) * @param v Ruleset version (optional) * @return ComputeRule * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 The saved rule -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
409 Version Conflict -
500 Backend Error -
*/ public ComputeRule saveRule(String client, String project, String artifact, ComputeRule computeRule, String v) throws ApiException { return saveRuleWithHttpInfo(client, project, artifact, computeRule, v).getData(); } /** * Save rule * Saves or create a rule (overwrite) * @param client Client name (required) * @param project Project name (required) * @param artifact Ruleset name (required) * @param computeRule Rule to persist (required) * @param v Ruleset version (optional) * @return ApiResponse<ComputeRule> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 The saved rule -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
409 Version Conflict -
500 Backend Error -
*/ public ApiResponse saveRuleWithHttpInfo(String client, String project, String artifact, ComputeRule computeRule, String v) throws ApiException { Object localVarPostBody = computeRule; // verify the required parameter 'client' is set if (client == null) { throw new ApiException(400, "Missing the required parameter 'client' when calling saveRule"); } // verify the required parameter 'project' is set if (project == null) { throw new ApiException(400, "Missing the required parameter 'project' when calling saveRule"); } // verify the required parameter 'artifact' is set if (artifact == null) { throw new ApiException(400, "Missing the required parameter 'artifact' when calling saveRule"); } // verify the required parameter 'computeRule' is set if (computeRule == null) { throw new ApiException(400, "Missing the required parameter 'computeRule' when calling saveRule"); } // create path and map variables String localVarPath = "/compute/{client}/{project}/{artifact}/rules" .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("ComputeServicesApi.saveRule", localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Save ruleset * Saves or creates an ruleset (overwrite) * @param client Client name (required) * @param project Project name (required) * @param computeRuleset Ruleset to persist (required) * @return ComputeRuleset * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 The saved ruleset -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
409 Version Conflict -
500 Backend Error -
*/ public ComputeRuleset saveRuleset(String client, String project, ComputeRuleset computeRuleset) throws ApiException { return saveRulesetWithHttpInfo(client, project, computeRuleset).getData(); } /** * Save ruleset * Saves or creates an ruleset (overwrite) * @param client Client name (required) * @param project Project name (required) * @param computeRuleset Ruleset to persist (required) * @return ApiResponse<ComputeRuleset> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 The saved ruleset -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
409 Version Conflict -
500 Backend Error -
*/ public ApiResponse saveRulesetWithHttpInfo(String client, String project, ComputeRuleset computeRuleset) throws ApiException { Object localVarPostBody = computeRuleset; // verify the required parameter 'client' is set if (client == null) { throw new ApiException(400, "Missing the required parameter 'client' when calling saveRuleset"); } // verify the required parameter 'project' is set if (project == null) { throw new ApiException(400, "Missing the required parameter 'project' when calling saveRuleset"); } // verify the required parameter 'computeRuleset' is set if (computeRuleset == null) { throw new ApiException(400, "Missing the required parameter 'computeRuleset' when calling saveRuleset"); } // create path and map variables String localVarPath = "/compute/{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("ComputeServicesApi.saveRuleset", localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Update ruleset * Updates one ruleset * @param client Client name (required) * @param project Project name (required) * @param updateArtifactRequest ruleset 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 updateRuleset(String client, String project, UpdateArtifactRequest updateArtifactRequest) throws ApiException { return updateRulesetWithHttpInfo(client, project, updateArtifactRequest).getData(); } /** * Update ruleset * Updates one ruleset * @param client Client name (required) * @param project Project name (required) * @param updateArtifactRequest ruleset 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 updateRulesetWithHttpInfo(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 updateRuleset"); } // verify the required parameter 'project' is set if (project == null) { throw new ApiException(400, "Missing the required parameter 'project' when calling updateRuleset"); } // verify the required parameter 'updateArtifactRequest' is set if (updateArtifactRequest == null) { throw new ApiException(400, "Missing the required parameter 'updateArtifactRequest' when calling updateRuleset"); } // create path and map variables String localVarPath = "/compute/{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("ComputeServicesApi.updateRuleset", localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Update content using file * Update the ruleset with custom rules using a file * @param client Client name (required) * @param project Project name (required) * @param artifact Ruleset name (required) * @param v Ruleset version (optional) * @param file File (optional) * @return UpdateRulesetResponse * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 The uploaded custom files -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public UpdateRulesetResponse updateRulesetContentFile(String client, String project, String artifact, String v, File file) throws ApiException { return updateRulesetContentFileWithHttpInfo(client, project, artifact, v, file).getData(); } /** * Update content using file * Update the ruleset with custom rules using a file * @param client Client name (required) * @param project Project name (required) * @param artifact Ruleset name (required) * @param v Ruleset version (optional) * @param file File (optional) * @return ApiResponse<UpdateRulesetResponse> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 The uploaded custom files -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public ApiResponse updateRulesetContentFileWithHttpInfo(String client, String project, String artifact, String v, File file) 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 updateRulesetContentFile"); } // verify the required parameter 'project' is set if (project == null) { throw new ApiException(400, "Missing the required parameter 'project' when calling updateRulesetContentFile"); } // verify the required parameter 'artifact' is set if (artifact == null) { throw new ApiException(400, "Missing the required parameter 'artifact' when calling updateRulesetContentFile"); } // create path and map variables String localVarPath = "/compute/{client}/{project}/{artifact}/content" .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)); if (file != null) localVarFormParams.put("file", file); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { "multipart/form-data" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "api", "jwt", "oauth2" }; GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("ComputeServicesApi.updateRulesetContentFile", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Update content using string * Update the ruleset with custom rules using a string * @param client Client name (required) * @param project Project name (required) * @param artifact Ruleset name (required) * @param v Ruleset version (optional) * @param body (optional) * @return UpdateRulesetResponse * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 The update results -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public UpdateRulesetResponse updateRulesetContentText(String client, String project, String artifact, String v, String body) throws ApiException { return updateRulesetContentTextWithHttpInfo(client, project, artifact, v, body).getData(); } /** * Update content using string * Update the ruleset with custom rules using a string * @param client Client name (required) * @param project Project name (required) * @param artifact Ruleset name (required) * @param v Ruleset version (optional) * @param body (optional) * @return ApiResponse<UpdateRulesetResponse> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 The update results -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public ApiResponse updateRulesetContentTextWithHttpInfo(String client, String project, String artifact, String v, String body) throws ApiException { Object localVarPostBody = body; // verify the required parameter 'client' is set if (client == null) { throw new ApiException(400, "Missing the required parameter 'client' when calling updateRulesetContentText"); } // verify the required parameter 'project' is set if (project == null) { throw new ApiException(400, "Missing the required parameter 'project' when calling updateRulesetContentText"); } // verify the required parameter 'artifact' is set if (artifact == null) { throw new ApiException(400, "Missing the required parameter 'artifact' when calling updateRulesetContentText"); } // create path and map variables String localVarPath = "/compute/{client}/{project}/{artifact}/content" .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 = { "text/plain" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "api", "jwt", "oauth2" }; GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("ComputeServicesApi.updateRulesetContentText", localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Update example request * Update the ruleset with an example request * @param client Client name (required) * @param project Project name (required) * @param artifact Ruleset name (required) * @param v Ruleset version (optional) * @param body (optional) * @return UpdateRulesetResponse * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 The update results -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public UpdateRulesetResponse updateRulesetExample(String client, String project, String artifact, String v, String body) throws ApiException { return updateRulesetExampleWithHttpInfo(client, project, artifact, v, body).getData(); } /** * Update example request * Update the ruleset with an example request * @param client Client name (required) * @param project Project name (required) * @param artifact Ruleset name (required) * @param v Ruleset version (optional) * @param body (optional) * @return ApiResponse<UpdateRulesetResponse> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 The update results -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public ApiResponse updateRulesetExampleWithHttpInfo(String client, String project, String artifact, String v, String body) throws ApiException { Object localVarPostBody = body; // verify the required parameter 'client' is set if (client == null) { throw new ApiException(400, "Missing the required parameter 'client' when calling updateRulesetExample"); } // verify the required parameter 'project' is set if (project == null) { throw new ApiException(400, "Missing the required parameter 'project' when calling updateRulesetExample"); } // verify the required parameter 'artifact' is set if (artifact == null) { throw new ApiException(400, "Missing the required parameter 'artifact' when calling updateRulesetExample"); } // create path and map variables String localVarPath = "/compute/{client}/{project}/{artifact}/example" .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 = { "text/plain" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "api", "jwt", "oauth2" }; GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("ComputeServicesApi.updateRulesetExample", localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Update ruleset types * Saves or creates an ruleset types (overwrite) * @param client Client name (required) * @param project Project name (required) * @param artifact Ruleset name (required) * @param updateRuleTypesRequest Rule types to persist (required) * @param v Ruleset version (optional) * @return ComputeRuleset * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 The saved ruleset -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
409 Version Conflict -
500 Backend Error -
*/ public ComputeRuleset updateRulesetTypes(String client, String project, String artifact, UpdateRuleTypesRequest updateRuleTypesRequest, String v) throws ApiException { return updateRulesetTypesWithHttpInfo(client, project, artifact, updateRuleTypesRequest, v).getData(); } /** * Update ruleset types * Saves or creates an ruleset types (overwrite) * @param client Client name (required) * @param project Project name (required) * @param artifact Ruleset name (required) * @param updateRuleTypesRequest Rule types to persist (required) * @param v Ruleset version (optional) * @return ApiResponse<ComputeRuleset> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 The saved ruleset -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
409 Version Conflict -
500 Backend Error -
*/ public ApiResponse updateRulesetTypesWithHttpInfo(String client, String project, String artifact, UpdateRuleTypesRequest updateRuleTypesRequest, String v) throws ApiException { Object localVarPostBody = updateRuleTypesRequest; // verify the required parameter 'client' is set if (client == null) { throw new ApiException(400, "Missing the required parameter 'client' when calling updateRulesetTypes"); } // verify the required parameter 'project' is set if (project == null) { throw new ApiException(400, "Missing the required parameter 'project' when calling updateRulesetTypes"); } // verify the required parameter 'artifact' is set if (artifact == null) { throw new ApiException(400, "Missing the required parameter 'artifact' when calling updateRulesetTypes"); } // verify the required parameter 'updateRuleTypesRequest' is set if (updateRuleTypesRequest == null) { throw new ApiException(400, "Missing the required parameter 'updateRuleTypesRequest' when calling updateRulesetTypes"); } // create path and map variables String localVarPath = "/compute/{client}/{project}/{artifact}/types" .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("ComputeServicesApi.updateRulesetTypes", localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Update rulesets * Updates multiple rules * @param client Client name (required) * @param project Project name (required) * @param updateArtifactRequest Rules 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 updateRulesets(String client, String project, UpdateArtifactRequest updateArtifactRequest) throws ApiException { return updateRulesetsWithHttpInfo(client, project, updateArtifactRequest).getData(); } /** * Update rulesets * Updates multiple rules * @param client Client name (required) * @param project Project name (required) * @param updateArtifactRequest Rules 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 updateRulesetsWithHttpInfo(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 updateRulesets"); } // verify the required parameter 'project' is set if (project == null) { throw new ApiException(400, "Missing the required parameter 'project' when calling updateRulesets"); } // verify the required parameter 'updateArtifactRequest' is set if (updateArtifactRequest == null) { throw new ApiException(400, "Missing the required parameter 'updateArtifactRequest' when calling updateRulesets"); } // create path and map variables String localVarPath = "/compute/{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("ComputeServicesApi.updateRulesets", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Upload dataset * Upload rule data (Excel workbook and CSVs) * @param client Client name (required) * @param project Project name (required) * @param file File (optional) * @return UploadResponse * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 The saved data -
400 Bad request -
401 Unauthorized -
403 Forbidden -
409 Version Conflict -
500 Backend Error -
*/ public UploadResponse uploadDatasets(String client, String project, File file) throws ApiException { return uploadDatasetsWithHttpInfo(client, project, file).getData(); } /** * Upload dataset * Upload rule data (Excel workbook and CSVs) * @param client Client name (required) * @param project Project name (required) * @param file File (optional) * @return ApiResponse<UploadResponse> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 The saved data -
400 Bad request -
401 Unauthorized -
403 Forbidden -
409 Version Conflict -
500 Backend Error -
*/ public ApiResponse uploadDatasetsWithHttpInfo(String client, String project, File file) 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 uploadDatasets"); } // verify the required parameter 'project' is set if (project == null) { throw new ApiException(400, "Missing the required parameter 'project' when calling uploadDatasets"); } // create path and map variables String localVarPath = "/compute/{client}/{project}/upload" .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(); if (file != null) localVarFormParams.put("file", file); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { "multipart/form-data" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "api", "jwt", "oauth2" }; GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("ComputeServicesApi.uploadDatasets", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Upload workbook * Upload a decision table (Excel workbook) * @param client Client name (required) * @param project Project name (required) * @param artifact Ruleset name (required) * @param v Ruleset version (optional) * @param merge Merge or replace rules (optional, default to false) * @param file File (optional) * @return UploadResponse * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 The saved rules -
400 Bad request -
401 Unauthorized -
403 Forbidden -
409 Version Conflict -
500 Backend Error -
*/ public UploadResponse uploadWorkbook(String client, String project, String artifact, String v, Boolean merge, File file) throws ApiException { return uploadWorkbookWithHttpInfo(client, project, artifact, v, merge, file).getData(); } /** * Upload workbook * Upload a decision table (Excel workbook) * @param client Client name (required) * @param project Project name (required) * @param artifact Ruleset name (required) * @param v Ruleset version (optional) * @param merge Merge or replace rules (optional, default to false) * @param file File (optional) * @return ApiResponse<UploadResponse> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 The saved rules -
400 Bad request -
401 Unauthorized -
403 Forbidden -
409 Version Conflict -
500 Backend Error -
*/ public ApiResponse uploadWorkbookWithHttpInfo(String client, String project, String artifact, String v, Boolean merge, File file) 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 uploadWorkbook"); } // verify the required parameter 'project' is set if (project == null) { throw new ApiException(400, "Missing the required parameter 'project' when calling uploadWorkbook"); } // verify the required parameter 'artifact' is set if (artifact == null) { throw new ApiException(400, "Missing the required parameter 'artifact' when calling uploadWorkbook"); } // create path and map variables String localVarPath = "/compute/{client}/{project}/{artifact}/upload" .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("", "merge", merge)); if (file != null) localVarFormParams.put("file", file); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { "multipart/form-data" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "api", "jwt", "oauth2" }; GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("ComputeServicesApi.uploadWorkbook", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * View ruleset source * Generate ruleset source for analysis * @param client Client (required) * @param generateAllRequest Analysis source request (required) * @return String * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Generated rules -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public String viewRuleset(String client, GenerateAllRequest generateAllRequest) throws ApiException { return viewRulesetWithHttpInfo(client, generateAllRequest).getData(); } /** * View ruleset source * Generate ruleset source for analysis * @param client Client (required) * @param generateAllRequest Analysis source request (required) * @return ApiResponse<String> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Generated rules -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public ApiResponse viewRulesetWithHttpInfo(String client, GenerateAllRequest generateAllRequest) throws ApiException { Object localVarPostBody = generateAllRequest; // verify the required parameter 'client' is set if (client == null) { throw new ApiException(400, "Missing the required parameter 'client' when calling viewRuleset"); } // verify the required parameter 'generateAllRequest' is set if (generateAllRequest == null) { throw new ApiException(400, "Missing the required parameter 'generateAllRequest' when calling viewRuleset"); } // create path and map variables String localVarPath = "/compute/{client}/analyze/source" .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 = { "text/plain" }; 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("ComputeServicesApi.viewRuleset", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * View single source * Generate a single ruleset source for analysis * @param client Client (required) * @param typeOrId ID or type (required) * @param generateOneRequest Analysis source request (required) * @return String * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Generated rules -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public String viewSource(String client, String typeOrId, GenerateOneRequest generateOneRequest) throws ApiException { return viewSourceWithHttpInfo(client, typeOrId, generateOneRequest).getData(); } /** * View single source * Generate a single ruleset source for analysis * @param client Client (required) * @param typeOrId ID or type (required) * @param generateOneRequest Analysis source request (required) * @return ApiResponse<String> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Generated rules -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public ApiResponse viewSourceWithHttpInfo(String client, String typeOrId, GenerateOneRequest generateOneRequest) throws ApiException { Object localVarPostBody = generateOneRequest; // verify the required parameter 'client' is set if (client == null) { throw new ApiException(400, "Missing the required parameter 'client' when calling viewSource"); } // verify the required parameter 'typeOrId' is set if (typeOrId == null) { throw new ApiException(400, "Missing the required parameter 'typeOrId' when calling viewSource"); } // verify the required parameter 'generateOneRequest' is set if (generateOneRequest == null) { throw new ApiException(400, "Missing the required parameter 'generateOneRequest' when calling viewSource"); } // create path and map variables String localVarPath = "/compute/{client}/analyze/source/{typeOrId}" .replaceAll("\\{" + "client" + "\\}", apiClient.escapeString(client.toString())) .replaceAll("\\{" + "typeOrId" + "\\}", apiClient.escapeString(typeOrId.toString())); // query params List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "text/plain" }; 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("ComputeServicesApi.viewSource", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy