Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* FINBOURNE Luminesce Web API
*
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.finbourne.luminesce.api;
import com.finbourne.luminesce.ApiCallback;
import com.finbourne.luminesce.ApiClient;
import com.finbourne.luminesce.ApiException;
import com.finbourne.luminesce.ApiResponse;
import com.finbourne.luminesce.Configuration;
import com.finbourne.luminesce.Pair;
import com.finbourne.luminesce.ProgressRequestBody;
import com.finbourne.luminesce.ProgressResponseBody;
import com.finbourne.luminesce.extensions.ConfigurationOptions;
import com.google.gson.reflect.TypeToken;
import java.io.IOException;
import com.finbourne.luminesce.model.ConvertToViewData;
import com.finbourne.luminesce.model.ErrorHighlightRequest;
import com.finbourne.luminesce.model.ErrorHighlightResponse;
import com.finbourne.luminesce.model.FileReaderBuilderDef;
import com.finbourne.luminesce.model.FileReaderBuilderResponse;
import com.finbourne.luminesce.model.InlinedPropertyDesign;
import com.finbourne.luminesce.model.IntellisenseRequest;
import com.finbourne.luminesce.model.IntellisenseResponse;
import com.finbourne.luminesce.model.LusidProblemDetails;
import com.finbourne.luminesce.model.QueryDesign;
import com.finbourne.luminesce.model.ScalarParameter;
import com.finbourne.luminesce.model.WriterDesign;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class SqlDesignApi {
private ApiClient localVarApiClient;
private int localHostIndex;
private String localCustomBaseUrl;
public SqlDesignApi() {
this(Configuration.getDefaultApiClient());
}
public SqlDesignApi(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
public ApiClient getApiClient() {
return localVarApiClient;
}
public void setApiClient(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
public int getHostIndex() {
return localHostIndex;
}
public void setHostIndex(int hostIndex) {
this.localHostIndex = hostIndex;
}
public String getCustomBaseUrl() {
return localCustomBaseUrl;
}
public void setCustomBaseUrl(String customBaseUrl) {
this.localCustomBaseUrl = customBaseUrl;
}
private okhttp3.Call putFileReadDesignToSqlCall(FileReaderBuilderDef fileReaderBuilderDef, Boolean executeQuery, final ApiCallback _callback) throws ApiException {
return putFileReadDesignToSqlCall(fileReaderBuilderDef, executeQuery, _callback, new ConfigurationOptions());
}
private okhttp3.Call putFileReadDesignToSqlCall(FileReaderBuilderDef fileReaderBuilderDef, Boolean executeQuery, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = fileReaderBuilderDef;
// create path and map variables
String localVarPath = "/api/Sql/fromfilereaddesign";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (executeQuery != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("executeQuery", executeQuery));
}
final String[] localVarAccepts = {
"text/plain",
"application/json",
"text/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
"application/json-patch+json",
"application/json",
"text/json",
"application/*+json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "oauth2" };
return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback, opts);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call putFileReadDesignToSqlValidateBeforeCall(FileReaderBuilderDef fileReaderBuilderDef, Boolean executeQuery, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
// verify the required parameter 'fileReaderBuilderDef' is set
if (fileReaderBuilderDef == null) {
throw new ApiException("Missing the required parameter 'fileReaderBuilderDef' when calling putFileReadDesignToSql(Async)");
}
return putFileReadDesignToSqlCall(fileReaderBuilderDef, executeQuery, _callback, opts);
}
private ApiResponse putFileReadDesignToSqlWithHttpInfo(FileReaderBuilderDef fileReaderBuilderDef, Boolean executeQuery) throws ApiException {
okhttp3.Call localVarCall = putFileReadDesignToSqlValidateBeforeCall(fileReaderBuilderDef, executeQuery, null, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private ApiResponse putFileReadDesignToSqlWithHttpInfo(FileReaderBuilderDef fileReaderBuilderDef, Boolean executeQuery, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = putFileReadDesignToSqlValidateBeforeCall(fileReaderBuilderDef, executeQuery, null, opts);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call putFileReadDesignToSqlAsync(FileReaderBuilderDef fileReaderBuilderDef, Boolean executeQuery, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = putFileReadDesignToSqlValidateBeforeCall(fileReaderBuilderDef, executeQuery, _callback, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
private okhttp3.Call putFileReadDesignToSqlAsync(FileReaderBuilderDef fileReaderBuilderDef, Boolean executeQuery, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = putFileReadDesignToSqlValidateBeforeCall(fileReaderBuilderDef, executeQuery, _callback, opts);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APIputFileReadDesignToSqlRequest {
private final FileReaderBuilderDef fileReaderBuilderDef;
private Boolean executeQuery;
private APIputFileReadDesignToSqlRequest(FileReaderBuilderDef fileReaderBuilderDef) {
this.fileReaderBuilderDef = fileReaderBuilderDef;
}
/**
* Set executeQuery
* @param executeQuery Should the generated query be executed to build preview data or determine errors.> (optional, default to true)
* @return APIputFileReadDesignToSqlRequest
*/
public APIputFileReadDesignToSqlRequest executeQuery(Boolean executeQuery) {
this.executeQuery = executeQuery;
return this;
}
/**
* Build call for putFileReadDesignToSql
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return putFileReadDesignToSqlCall(fileReaderBuilderDef, executeQuery, _callback);
}
/**
* Execute putFileReadDesignToSql request
* @return FileReaderBuilderResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public FileReaderBuilderResponse execute() throws ApiException {
ApiResponse localVarResp = putFileReadDesignToSqlWithHttpInfo(fileReaderBuilderDef, executeQuery);
return localVarResp.getData();
}
/**
* Execute putFileReadDesignToSql request. Use any specified configuration options to override any other configuration for this request only.
* @return FileReaderBuilderResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public FileReaderBuilderResponse execute(ConfigurationOptions opts) throws ApiException {
ApiResponse localVarResp = putFileReadDesignToSqlWithHttpInfo(fileReaderBuilderDef, executeQuery, opts);
return localVarResp.getData();
}
/**
* Execute putFileReadDesignToSql request with HTTP info returned
* @return ApiResponse<FileReaderBuilderResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return putFileReadDesignToSqlWithHttpInfo(fileReaderBuilderDef, executeQuery);
}
/**
* Execute putFileReadDesignToSql request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only.
* @return ApiResponse<FileReaderBuilderResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public ApiResponse executeWithHttpInfo(ConfigurationOptions opts) throws ApiException {
return putFileReadDesignToSqlWithHttpInfo(fileReaderBuilderDef, executeQuery, opts);
}
/**
* Execute putFileReadDesignToSql request (asynchronously)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return putFileReadDesignToSqlAsync(fileReaderBuilderDef, executeQuery, _callback);
}
/**
* Execute putFileReadDesignToSql request (asynchronously). Use any specified configuration options to override any other configuration for this request only.
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
return putFileReadDesignToSqlAsync(fileReaderBuilderDef, executeQuery, _callback, opts);
}
}
/**
* [EXPERIMENTAL] PutFileReadDesignToSql: Generates file read SQL from a structured query design
* SQL Designer specification to generate SQL from
* @param fileReaderBuilderDef Structured file read design object to generate SQL from (required)
* @return APIputFileReadDesignToSqlRequest
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public APIputFileReadDesignToSqlRequest putFileReadDesignToSql(FileReaderBuilderDef fileReaderBuilderDef) {
return new APIputFileReadDesignToSqlRequest(fileReaderBuilderDef);
}
private okhttp3.Call putInlinedPropertiesDesignSqlToDesignCall(String body, final ApiCallback _callback) throws ApiException {
return putInlinedPropertiesDesignSqlToDesignCall(body, _callback, new ConfigurationOptions());
}
private okhttp3.Call putInlinedPropertiesDesignSqlToDesignCall(String body, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/api/Sql/toinlinedpropertiesdesign";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"text/plain",
"application/json",
"text/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
"text/plain"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "oauth2" };
return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback, opts);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call putInlinedPropertiesDesignSqlToDesignValidateBeforeCall(String body, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
return putInlinedPropertiesDesignSqlToDesignCall(body, _callback, opts);
}
private ApiResponse putInlinedPropertiesDesignSqlToDesignWithHttpInfo(String body) throws ApiException {
okhttp3.Call localVarCall = putInlinedPropertiesDesignSqlToDesignValidateBeforeCall(body, null, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private ApiResponse putInlinedPropertiesDesignSqlToDesignWithHttpInfo(String body, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = putInlinedPropertiesDesignSqlToDesignValidateBeforeCall(body, null, opts);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call putInlinedPropertiesDesignSqlToDesignAsync(String body, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = putInlinedPropertiesDesignSqlToDesignValidateBeforeCall(body, _callback, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
private okhttp3.Call putInlinedPropertiesDesignSqlToDesignAsync(String body, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = putInlinedPropertiesDesignSqlToDesignValidateBeforeCall(body, _callback, opts);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APIputInlinedPropertiesDesignSqlToDesignRequest {
private String body;
private APIputInlinedPropertiesDesignSqlToDesignRequest() {
}
/**
* Set body
* @param body SQL query to generate the inlined properties design object from (optional)
* @return APIputInlinedPropertiesDesignSqlToDesignRequest
*/
public APIputInlinedPropertiesDesignSqlToDesignRequest body(String body) {
this.body = body;
return this;
}
/**
* Build call for putInlinedPropertiesDesignSqlToDesign
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return putInlinedPropertiesDesignSqlToDesignCall(body, _callback);
}
/**
* Execute putInlinedPropertiesDesignSqlToDesign request
* @return InlinedPropertyDesign
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public InlinedPropertyDesign execute() throws ApiException {
ApiResponse localVarResp = putInlinedPropertiesDesignSqlToDesignWithHttpInfo(body);
return localVarResp.getData();
}
/**
* Execute putInlinedPropertiesDesignSqlToDesign request. Use any specified configuration options to override any other configuration for this request only.
* @return InlinedPropertyDesign
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public InlinedPropertyDesign execute(ConfigurationOptions opts) throws ApiException {
ApiResponse localVarResp = putInlinedPropertiesDesignSqlToDesignWithHttpInfo(body, opts);
return localVarResp.getData();
}
/**
* Execute putInlinedPropertiesDesignSqlToDesign request with HTTP info returned
* @return ApiResponse<InlinedPropertyDesign>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return putInlinedPropertiesDesignSqlToDesignWithHttpInfo(body);
}
/**
* Execute putInlinedPropertiesDesignSqlToDesign request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only.
* @return ApiResponse<InlinedPropertyDesign>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public ApiResponse executeWithHttpInfo(ConfigurationOptions opts) throws ApiException {
return putInlinedPropertiesDesignSqlToDesignWithHttpInfo(body, opts);
}
/**
* Execute putInlinedPropertiesDesignSqlToDesign request (asynchronously)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return putInlinedPropertiesDesignSqlToDesignAsync(body, _callback);
}
/**
* Execute putInlinedPropertiesDesignSqlToDesign request (asynchronously). Use any specified configuration options to override any other configuration for this request only.
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
return putInlinedPropertiesDesignSqlToDesignAsync(body, _callback, opts);
}
}
/**
* [EXPERIMENTAL] PutInlinedPropertiesDesignSqlToDesign: Generates a SQL-inlined-properties-design object from SQL string, if possible.
* SQL to attempt to create an inlined properties Design object from
* @return APIputInlinedPropertiesDesignSqlToDesignRequest
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public APIputInlinedPropertiesDesignSqlToDesignRequest putInlinedPropertiesDesignSqlToDesign() {
return new APIputInlinedPropertiesDesignSqlToDesignRequest();
}
private okhttp3.Call putInlinedPropertiesDesignToSqlCall(InlinedPropertyDesign inlinedPropertyDesign, final ApiCallback _callback) throws ApiException {
return putInlinedPropertiesDesignToSqlCall(inlinedPropertyDesign, _callback, new ConfigurationOptions());
}
private okhttp3.Call putInlinedPropertiesDesignToSqlCall(InlinedPropertyDesign inlinedPropertyDesign, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = inlinedPropertyDesign;
// create path and map variables
String localVarPath = "/api/Sql/frominlinedpropertiesdesign";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"text/plain",
"application/json",
"text/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
"application/json-patch+json",
"application/json",
"text/json",
"application/*+json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "oauth2" };
return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback, opts);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call putInlinedPropertiesDesignToSqlValidateBeforeCall(InlinedPropertyDesign inlinedPropertyDesign, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
// verify the required parameter 'inlinedPropertyDesign' is set
if (inlinedPropertyDesign == null) {
throw new ApiException("Missing the required parameter 'inlinedPropertyDesign' when calling putInlinedPropertiesDesignToSql(Async)");
}
return putInlinedPropertiesDesignToSqlCall(inlinedPropertyDesign, _callback, opts);
}
private ApiResponse putInlinedPropertiesDesignToSqlWithHttpInfo(InlinedPropertyDesign inlinedPropertyDesign) throws ApiException {
okhttp3.Call localVarCall = putInlinedPropertiesDesignToSqlValidateBeforeCall(inlinedPropertyDesign, null, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private ApiResponse putInlinedPropertiesDesignToSqlWithHttpInfo(InlinedPropertyDesign inlinedPropertyDesign, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = putInlinedPropertiesDesignToSqlValidateBeforeCall(inlinedPropertyDesign, null, opts);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call putInlinedPropertiesDesignToSqlAsync(InlinedPropertyDesign inlinedPropertyDesign, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = putInlinedPropertiesDesignToSqlValidateBeforeCall(inlinedPropertyDesign, _callback, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
private okhttp3.Call putInlinedPropertiesDesignToSqlAsync(InlinedPropertyDesign inlinedPropertyDesign, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = putInlinedPropertiesDesignToSqlValidateBeforeCall(inlinedPropertyDesign, _callback, opts);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APIputInlinedPropertiesDesignToSqlRequest {
private final InlinedPropertyDesign inlinedPropertyDesign;
private APIputInlinedPropertiesDesignToSqlRequest(InlinedPropertyDesign inlinedPropertyDesign) {
this.inlinedPropertyDesign = inlinedPropertyDesign;
}
/**
* Build call for putInlinedPropertiesDesignToSql
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return putInlinedPropertiesDesignToSqlCall(inlinedPropertyDesign, _callback);
}
/**
* Execute putInlinedPropertiesDesignToSql request
* @return String
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public String execute() throws ApiException {
ApiResponse localVarResp = putInlinedPropertiesDesignToSqlWithHttpInfo(inlinedPropertyDesign);
return localVarResp.getData();
}
/**
* Execute putInlinedPropertiesDesignToSql request. Use any specified configuration options to override any other configuration for this request only.
* @return String
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public String execute(ConfigurationOptions opts) throws ApiException {
ApiResponse localVarResp = putInlinedPropertiesDesignToSqlWithHttpInfo(inlinedPropertyDesign, opts);
return localVarResp.getData();
}
/**
* Execute putInlinedPropertiesDesignToSql request with HTTP info returned
* @return ApiResponse<String>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return putInlinedPropertiesDesignToSqlWithHttpInfo(inlinedPropertyDesign);
}
/**
* Execute putInlinedPropertiesDesignToSql request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only.
* @return ApiResponse<String>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public ApiResponse executeWithHttpInfo(ConfigurationOptions opts) throws ApiException {
return putInlinedPropertiesDesignToSqlWithHttpInfo(inlinedPropertyDesign, opts);
}
/**
* Execute putInlinedPropertiesDesignToSql request (asynchronously)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return putInlinedPropertiesDesignToSqlAsync(inlinedPropertyDesign, _callback);
}
/**
* Execute putInlinedPropertiesDesignToSql request (asynchronously). Use any specified configuration options to override any other configuration for this request only.
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
return putInlinedPropertiesDesignToSqlAsync(inlinedPropertyDesign, _callback, opts);
}
}
/**
* [EXPERIMENTAL] PutInlinedPropertiesDesignToSql: Generates inlined properties SQL from a structured design
* Inlined properties Designer specification to generate SQL from
* @param inlinedPropertyDesign Structured file read design object to generate SQL from (required)
* @return APIputInlinedPropertiesDesignToSqlRequest
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public APIputInlinedPropertiesDesignToSqlRequest putInlinedPropertiesDesignToSql(InlinedPropertyDesign inlinedPropertyDesign) {
return new APIputInlinedPropertiesDesignToSqlRequest(inlinedPropertyDesign);
}
private okhttp3.Call putIntellisenseCall(IntellisenseRequest intellisenseRequest, final ApiCallback _callback) throws ApiException {
return putIntellisenseCall(intellisenseRequest, _callback, new ConfigurationOptions());
}
private okhttp3.Call putIntellisenseCall(IntellisenseRequest intellisenseRequest, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = intellisenseRequest;
// create path and map variables
String localVarPath = "/api/Sql/intellisense";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"text/plain",
"application/json",
"text/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
"application/json-patch+json",
"application/json",
"text/json",
"application/*+json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "oauth2" };
return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback, opts);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call putIntellisenseValidateBeforeCall(IntellisenseRequest intellisenseRequest, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
// verify the required parameter 'intellisenseRequest' is set
if (intellisenseRequest == null) {
throw new ApiException("Missing the required parameter 'intellisenseRequest' when calling putIntellisense(Async)");
}
return putIntellisenseCall(intellisenseRequest, _callback, opts);
}
private ApiResponse putIntellisenseWithHttpInfo(IntellisenseRequest intellisenseRequest) throws ApiException {
okhttp3.Call localVarCall = putIntellisenseValidateBeforeCall(intellisenseRequest, null, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private ApiResponse putIntellisenseWithHttpInfo(IntellisenseRequest intellisenseRequest, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = putIntellisenseValidateBeforeCall(intellisenseRequest, null, opts);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call putIntellisenseAsync(IntellisenseRequest intellisenseRequest, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = putIntellisenseValidateBeforeCall(intellisenseRequest, _callback, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
private okhttp3.Call putIntellisenseAsync(IntellisenseRequest intellisenseRequest, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = putIntellisenseValidateBeforeCall(intellisenseRequest, _callback, opts);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APIputIntellisenseRequest {
private final IntellisenseRequest intellisenseRequest;
private APIputIntellisenseRequest(IntellisenseRequest intellisenseRequest) {
this.intellisenseRequest = intellisenseRequest;
}
/**
* Build call for putIntellisense
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return putIntellisenseCall(intellisenseRequest, _callback);
}
/**
* Execute putIntellisense request
* @return IntellisenseResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public IntellisenseResponse execute() throws ApiException {
ApiResponse localVarResp = putIntellisenseWithHttpInfo(intellisenseRequest);
return localVarResp.getData();
}
/**
* Execute putIntellisense request. Use any specified configuration options to override any other configuration for this request only.
* @return IntellisenseResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public IntellisenseResponse execute(ConfigurationOptions opts) throws ApiException {
ApiResponse localVarResp = putIntellisenseWithHttpInfo(intellisenseRequest, opts);
return localVarResp.getData();
}
/**
* Execute putIntellisense request with HTTP info returned
* @return ApiResponse<IntellisenseResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return putIntellisenseWithHttpInfo(intellisenseRequest);
}
/**
* Execute putIntellisense request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only.
* @return ApiResponse<IntellisenseResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public ApiResponse executeWithHttpInfo(ConfigurationOptions opts) throws ApiException {
return putIntellisenseWithHttpInfo(intellisenseRequest, opts);
}
/**
* Execute putIntellisense request (asynchronously)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return putIntellisenseAsync(intellisenseRequest, _callback);
}
/**
* Execute putIntellisense request (asynchronously). Use any specified configuration options to override any other configuration for this request only.
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
return putIntellisenseAsync(intellisenseRequest, _callback, opts);
}
}
/**
* PutIntellisense: Generate a set of possible intellisense prompts given a SQL snip-it (in need not yet be valid) and cursor location
* SQL and a row/colum position within it from which to determine intellisense options for the user to potentially choose from.
* @param intellisenseRequest (required)
* @return APIputIntellisenseRequest
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public APIputIntellisenseRequest putIntellisense(IntellisenseRequest intellisenseRequest) {
return new APIputIntellisenseRequest(intellisenseRequest);
}
private okhttp3.Call putIntellisenseErrorCall(ErrorHighlightRequest errorHighlightRequest, final ApiCallback _callback) throws ApiException {
return putIntellisenseErrorCall(errorHighlightRequest, _callback, new ConfigurationOptions());
}
private okhttp3.Call putIntellisenseErrorCall(ErrorHighlightRequest errorHighlightRequest, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = errorHighlightRequest;
// create path and map variables
String localVarPath = "/api/Sql/intellisenseError";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"text/plain",
"application/json",
"text/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
"application/json-patch+json",
"application/json",
"text/json",
"application/*+json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "oauth2" };
return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback, opts);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call putIntellisenseErrorValidateBeforeCall(ErrorHighlightRequest errorHighlightRequest, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
// verify the required parameter 'errorHighlightRequest' is set
if (errorHighlightRequest == null) {
throw new ApiException("Missing the required parameter 'errorHighlightRequest' when calling putIntellisenseError(Async)");
}
return putIntellisenseErrorCall(errorHighlightRequest, _callback, opts);
}
private ApiResponse putIntellisenseErrorWithHttpInfo(ErrorHighlightRequest errorHighlightRequest) throws ApiException {
okhttp3.Call localVarCall = putIntellisenseErrorValidateBeforeCall(errorHighlightRequest, null, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private ApiResponse putIntellisenseErrorWithHttpInfo(ErrorHighlightRequest errorHighlightRequest, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = putIntellisenseErrorValidateBeforeCall(errorHighlightRequest, null, opts);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call putIntellisenseErrorAsync(ErrorHighlightRequest errorHighlightRequest, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = putIntellisenseErrorValidateBeforeCall(errorHighlightRequest, _callback, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
private okhttp3.Call putIntellisenseErrorAsync(ErrorHighlightRequest errorHighlightRequest, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = putIntellisenseErrorValidateBeforeCall(errorHighlightRequest, _callback, opts);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APIputIntellisenseErrorRequest {
private final ErrorHighlightRequest errorHighlightRequest;
private APIputIntellisenseErrorRequest(ErrorHighlightRequest errorHighlightRequest) {
this.errorHighlightRequest = errorHighlightRequest;
}
/**
* Build call for putIntellisenseError
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return putIntellisenseErrorCall(errorHighlightRequest, _callback);
}
/**
* Execute putIntellisenseError request
* @return ErrorHighlightResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public ErrorHighlightResponse execute() throws ApiException {
ApiResponse localVarResp = putIntellisenseErrorWithHttpInfo(errorHighlightRequest);
return localVarResp.getData();
}
/**
* Execute putIntellisenseError request. Use any specified configuration options to override any other configuration for this request only.
* @return ErrorHighlightResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public ErrorHighlightResponse execute(ConfigurationOptions opts) throws ApiException {
ApiResponse localVarResp = putIntellisenseErrorWithHttpInfo(errorHighlightRequest, opts);
return localVarResp.getData();
}
/**
* Execute putIntellisenseError request with HTTP info returned
* @return ApiResponse<ErrorHighlightResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return putIntellisenseErrorWithHttpInfo(errorHighlightRequest);
}
/**
* Execute putIntellisenseError request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only.
* @return ApiResponse<ErrorHighlightResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public ApiResponse executeWithHttpInfo(ConfigurationOptions opts) throws ApiException {
return putIntellisenseErrorWithHttpInfo(errorHighlightRequest, opts);
}
/**
* Execute putIntellisenseError request (asynchronously)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return putIntellisenseErrorAsync(errorHighlightRequest, _callback);
}
/**
* Execute putIntellisenseError request (asynchronously). Use any specified configuration options to override any other configuration for this request only.
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
return putIntellisenseErrorAsync(errorHighlightRequest, _callback, opts);
}
}
/**
* PutIntellisenseError: Generate a set of error ranges, if any, in the given SQL (expressed as Lines)
* SQL (by line) to syntax check and return error ranges from within, if any.
* @param errorHighlightRequest (required)
* @return APIputIntellisenseErrorRequest
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public APIputIntellisenseErrorRequest putIntellisenseError(ErrorHighlightRequest errorHighlightRequest) {
return new APIputIntellisenseErrorRequest(errorHighlightRequest);
}
private okhttp3.Call putQueryDesignToSqlCall(QueryDesign queryDesign, final ApiCallback _callback) throws ApiException {
return putQueryDesignToSqlCall(queryDesign, _callback, new ConfigurationOptions());
}
private okhttp3.Call putQueryDesignToSqlCall(QueryDesign queryDesign, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = queryDesign;
// create path and map variables
String localVarPath = "/api/Sql/fromdesign";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"text/plain",
"application/json",
"text/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
"application/json-patch+json",
"application/json",
"text/json",
"application/*+json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "oauth2" };
return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback, opts);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call putQueryDesignToSqlValidateBeforeCall(QueryDesign queryDesign, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
// verify the required parameter 'queryDesign' is set
if (queryDesign == null) {
throw new ApiException("Missing the required parameter 'queryDesign' when calling putQueryDesignToSql(Async)");
}
return putQueryDesignToSqlCall(queryDesign, _callback, opts);
}
private ApiResponse putQueryDesignToSqlWithHttpInfo(QueryDesign queryDesign) throws ApiException {
okhttp3.Call localVarCall = putQueryDesignToSqlValidateBeforeCall(queryDesign, null, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private ApiResponse putQueryDesignToSqlWithHttpInfo(QueryDesign queryDesign, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = putQueryDesignToSqlValidateBeforeCall(queryDesign, null, opts);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call putQueryDesignToSqlAsync(QueryDesign queryDesign, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = putQueryDesignToSqlValidateBeforeCall(queryDesign, _callback, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
private okhttp3.Call putQueryDesignToSqlAsync(QueryDesign queryDesign, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = putQueryDesignToSqlValidateBeforeCall(queryDesign, _callback, opts);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APIputQueryDesignToSqlRequest {
private final QueryDesign queryDesign;
private APIputQueryDesignToSqlRequest(QueryDesign queryDesign) {
this.queryDesign = queryDesign;
}
/**
* Build call for putQueryDesignToSql
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return putQueryDesignToSqlCall(queryDesign, _callback);
}
/**
* Execute putQueryDesignToSql request
* @return String
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public String execute() throws ApiException {
ApiResponse localVarResp = putQueryDesignToSqlWithHttpInfo(queryDesign);
return localVarResp.getData();
}
/**
* Execute putQueryDesignToSql request. Use any specified configuration options to override any other configuration for this request only.
* @return String
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public String execute(ConfigurationOptions opts) throws ApiException {
ApiResponse localVarResp = putQueryDesignToSqlWithHttpInfo(queryDesign, opts);
return localVarResp.getData();
}
/**
* Execute putQueryDesignToSql request with HTTP info returned
* @return ApiResponse<String>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return putQueryDesignToSqlWithHttpInfo(queryDesign);
}
/**
* Execute putQueryDesignToSql request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only.
* @return ApiResponse<String>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public ApiResponse executeWithHttpInfo(ConfigurationOptions opts) throws ApiException {
return putQueryDesignToSqlWithHttpInfo(queryDesign, opts);
}
/**
* Execute putQueryDesignToSql request (asynchronously)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return putQueryDesignToSqlAsync(queryDesign, _callback);
}
/**
* Execute putQueryDesignToSql request (asynchronously). Use any specified configuration options to override any other configuration for this request only.
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
return putQueryDesignToSqlAsync(queryDesign, _callback, opts);
}
}
/**
* [EXPERIMENTAL] PutQueryDesignToSql: Generates SQL from a structured query design
* SQL Designer specification to generate SQL from
* @param queryDesign Structured Query design object to generate SQL from (required)
* @return APIputQueryDesignToSqlRequest
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public APIputQueryDesignToSqlRequest putQueryDesignToSql(QueryDesign queryDesign) {
return new APIputQueryDesignToSqlRequest(queryDesign);
}
private okhttp3.Call putQueryToFormatCall(String body, Boolean trailingCommas, Boolean uppercaseKeywords, Boolean breakJoinOnSections, Boolean spaceAfterExpandedComma, Boolean keywordStandardization, Boolean expandCommaLists, Boolean expandInLists, Boolean expandBooleanExpressions, Boolean expandBetweenConditions, Boolean expandCaseStatements, Integer maxLineWidth, Boolean spaceBeforeTrailingSingleLineComments, Boolean multilineCommentExtraLineBreak, final ApiCallback _callback) throws ApiException {
return putQueryToFormatCall(body, trailingCommas, uppercaseKeywords, breakJoinOnSections, spaceAfterExpandedComma, keywordStandardization, expandCommaLists, expandInLists, expandBooleanExpressions, expandBetweenConditions, expandCaseStatements, maxLineWidth, spaceBeforeTrailingSingleLineComments, multilineCommentExtraLineBreak, _callback, new ConfigurationOptions());
}
private okhttp3.Call putQueryToFormatCall(String body, Boolean trailingCommas, Boolean uppercaseKeywords, Boolean breakJoinOnSections, Boolean spaceAfterExpandedComma, Boolean keywordStandardization, Boolean expandCommaLists, Boolean expandInLists, Boolean expandBooleanExpressions, Boolean expandBetweenConditions, Boolean expandCaseStatements, Integer maxLineWidth, Boolean spaceBeforeTrailingSingleLineComments, Boolean multilineCommentExtraLineBreak, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/api/Sql/pretty";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (trailingCommas != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("trailingCommas", trailingCommas));
}
if (uppercaseKeywords != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("uppercaseKeywords", uppercaseKeywords));
}
if (breakJoinOnSections != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("breakJoinOnSections", breakJoinOnSections));
}
if (spaceAfterExpandedComma != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("spaceAfterExpandedComma", spaceAfterExpandedComma));
}
if (keywordStandardization != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("keywordStandardization", keywordStandardization));
}
if (expandCommaLists != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("expandCommaLists", expandCommaLists));
}
if (expandInLists != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("expandInLists", expandInLists));
}
if (expandBooleanExpressions != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("expandBooleanExpressions", expandBooleanExpressions));
}
if (expandBetweenConditions != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("expandBetweenConditions", expandBetweenConditions));
}
if (expandCaseStatements != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("expandCaseStatements", expandCaseStatements));
}
if (maxLineWidth != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("maxLineWidth", maxLineWidth));
}
if (spaceBeforeTrailingSingleLineComments != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("spaceBeforeTrailingSingleLineComments", spaceBeforeTrailingSingleLineComments));
}
if (multilineCommentExtraLineBreak != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("multilineCommentExtraLineBreak", multilineCommentExtraLineBreak));
}
final String[] localVarAccepts = {
"text/plain",
"application/json",
"text/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
"text/plain"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "oauth2" };
return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback, opts);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call putQueryToFormatValidateBeforeCall(String body, Boolean trailingCommas, Boolean uppercaseKeywords, Boolean breakJoinOnSections, Boolean spaceAfterExpandedComma, Boolean keywordStandardization, Boolean expandCommaLists, Boolean expandInLists, Boolean expandBooleanExpressions, Boolean expandBetweenConditions, Boolean expandCaseStatements, Integer maxLineWidth, Boolean spaceBeforeTrailingSingleLineComments, Boolean multilineCommentExtraLineBreak, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling putQueryToFormat(Async)");
}
return putQueryToFormatCall(body, trailingCommas, uppercaseKeywords, breakJoinOnSections, spaceAfterExpandedComma, keywordStandardization, expandCommaLists, expandInLists, expandBooleanExpressions, expandBetweenConditions, expandCaseStatements, maxLineWidth, spaceBeforeTrailingSingleLineComments, multilineCommentExtraLineBreak, _callback, opts);
}
private ApiResponse putQueryToFormatWithHttpInfo(String body, Boolean trailingCommas, Boolean uppercaseKeywords, Boolean breakJoinOnSections, Boolean spaceAfterExpandedComma, Boolean keywordStandardization, Boolean expandCommaLists, Boolean expandInLists, Boolean expandBooleanExpressions, Boolean expandBetweenConditions, Boolean expandCaseStatements, Integer maxLineWidth, Boolean spaceBeforeTrailingSingleLineComments, Boolean multilineCommentExtraLineBreak) throws ApiException {
okhttp3.Call localVarCall = putQueryToFormatValidateBeforeCall(body, trailingCommas, uppercaseKeywords, breakJoinOnSections, spaceAfterExpandedComma, keywordStandardization, expandCommaLists, expandInLists, expandBooleanExpressions, expandBetweenConditions, expandCaseStatements, maxLineWidth, spaceBeforeTrailingSingleLineComments, multilineCommentExtraLineBreak, null, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private ApiResponse putQueryToFormatWithHttpInfo(String body, Boolean trailingCommas, Boolean uppercaseKeywords, Boolean breakJoinOnSections, Boolean spaceAfterExpandedComma, Boolean keywordStandardization, Boolean expandCommaLists, Boolean expandInLists, Boolean expandBooleanExpressions, Boolean expandBetweenConditions, Boolean expandCaseStatements, Integer maxLineWidth, Boolean spaceBeforeTrailingSingleLineComments, Boolean multilineCommentExtraLineBreak, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = putQueryToFormatValidateBeforeCall(body, trailingCommas, uppercaseKeywords, breakJoinOnSections, spaceAfterExpandedComma, keywordStandardization, expandCommaLists, expandInLists, expandBooleanExpressions, expandBetweenConditions, expandCaseStatements, maxLineWidth, spaceBeforeTrailingSingleLineComments, multilineCommentExtraLineBreak, null, opts);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call putQueryToFormatAsync(String body, Boolean trailingCommas, Boolean uppercaseKeywords, Boolean breakJoinOnSections, Boolean spaceAfterExpandedComma, Boolean keywordStandardization, Boolean expandCommaLists, Boolean expandInLists, Boolean expandBooleanExpressions, Boolean expandBetweenConditions, Boolean expandCaseStatements, Integer maxLineWidth, Boolean spaceBeforeTrailingSingleLineComments, Boolean multilineCommentExtraLineBreak, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = putQueryToFormatValidateBeforeCall(body, trailingCommas, uppercaseKeywords, breakJoinOnSections, spaceAfterExpandedComma, keywordStandardization, expandCommaLists, expandInLists, expandBooleanExpressions, expandBetweenConditions, expandCaseStatements, maxLineWidth, spaceBeforeTrailingSingleLineComments, multilineCommentExtraLineBreak, _callback, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
private okhttp3.Call putQueryToFormatAsync(String body, Boolean trailingCommas, Boolean uppercaseKeywords, Boolean breakJoinOnSections, Boolean spaceAfterExpandedComma, Boolean keywordStandardization, Boolean expandCommaLists, Boolean expandInLists, Boolean expandBooleanExpressions, Boolean expandBetweenConditions, Boolean expandCaseStatements, Integer maxLineWidth, Boolean spaceBeforeTrailingSingleLineComments, Boolean multilineCommentExtraLineBreak, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = putQueryToFormatValidateBeforeCall(body, trailingCommas, uppercaseKeywords, breakJoinOnSections, spaceAfterExpandedComma, keywordStandardization, expandCommaLists, expandInLists, expandBooleanExpressions, expandBetweenConditions, expandCaseStatements, maxLineWidth, spaceBeforeTrailingSingleLineComments, multilineCommentExtraLineBreak, _callback, opts);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APIputQueryToFormatRequest {
private final String body;
private Boolean trailingCommas;
private Boolean uppercaseKeywords;
private Boolean breakJoinOnSections;
private Boolean spaceAfterExpandedComma;
private Boolean keywordStandardization;
private Boolean expandCommaLists;
private Boolean expandInLists;
private Boolean expandBooleanExpressions;
private Boolean expandBetweenConditions;
private Boolean expandCaseStatements;
private Integer maxLineWidth;
private Boolean spaceBeforeTrailingSingleLineComments;
private Boolean multilineCommentExtraLineBreak;
private APIputQueryToFormatRequest(String body) {
this.body = body;
}
/**
* Set trailingCommas
* @param trailingCommas Should commas be after an expression (as opposed to before) (optional, default to true)
* @return APIputQueryToFormatRequest
*/
public APIputQueryToFormatRequest trailingCommas(Boolean trailingCommas) {
this.trailingCommas = trailingCommas;
return this;
}
/**
* Set uppercaseKeywords
* @param uppercaseKeywords Should key words be capitalized (optional, default to false)
* @return APIputQueryToFormatRequest
*/
public APIputQueryToFormatRequest uppercaseKeywords(Boolean uppercaseKeywords) {
this.uppercaseKeywords = uppercaseKeywords;
return this;
}
/**
* Set breakJoinOnSections
* @param breakJoinOnSections Should clauses on joins be given line breaks? (optional, default to true)
* @return APIputQueryToFormatRequest
*/
public APIputQueryToFormatRequest breakJoinOnSections(Boolean breakJoinOnSections) {
this.breakJoinOnSections = breakJoinOnSections;
return this;
}
/**
* Set spaceAfterExpandedComma
* @param spaceAfterExpandedComma Should comma-lists have spaces after the commas? (optional, default to true)
* @return APIputQueryToFormatRequest
*/
public APIputQueryToFormatRequest spaceAfterExpandedComma(Boolean spaceAfterExpandedComma) {
this.spaceAfterExpandedComma = spaceAfterExpandedComma;
return this;
}
/**
* Set keywordStandardization
* @param keywordStandardization Should the \"nicest\" key words be used? (e.g. JOIN -> INNER JOIN) (optional, default to true)
* @return APIputQueryToFormatRequest
*/
public APIputQueryToFormatRequest keywordStandardization(Boolean keywordStandardization) {
this.keywordStandardization = keywordStandardization;
return this;
}
/**
* Set expandCommaLists
* @param expandCommaLists Should comma-lists (e.g. select a,b,c) have line breaks added? (optional, default to false)
* @return APIputQueryToFormatRequest
*/
public APIputQueryToFormatRequest expandCommaLists(Boolean expandCommaLists) {
this.expandCommaLists = expandCommaLists;
return this;
}
/**
* Set expandInLists
* @param expandInLists Should IN-lists have line breaks added? (optional, default to false)
* @return APIputQueryToFormatRequest
*/
public APIputQueryToFormatRequest expandInLists(Boolean expandInLists) {
this.expandInLists = expandInLists;
return this;
}
/**
* Set expandBooleanExpressions
* @param expandBooleanExpressions Should boolean expressions have line breaks added? (optional, default to true)
* @return APIputQueryToFormatRequest
*/
public APIputQueryToFormatRequest expandBooleanExpressions(Boolean expandBooleanExpressions) {
this.expandBooleanExpressions = expandBooleanExpressions;
return this;
}
/**
* Set expandBetweenConditions
* @param expandBetweenConditions Should between conditions have line breaks added? (optional, default to true)
* @return APIputQueryToFormatRequest
*/
public APIputQueryToFormatRequest expandBetweenConditions(Boolean expandBetweenConditions) {
this.expandBetweenConditions = expandBetweenConditions;
return this;
}
/**
* Set expandCaseStatements
* @param expandCaseStatements Should case-statements have line breaks added? (optional, default to true)
* @return APIputQueryToFormatRequest
*/
public APIputQueryToFormatRequest expandCaseStatements(Boolean expandCaseStatements) {
this.expandCaseStatements = expandCaseStatements;
return this;
}
/**
* Set maxLineWidth
* @param maxLineWidth Maximum number of characters to allow on one line (if possible) (optional, default to 120)
* @return APIputQueryToFormatRequest
*/
public APIputQueryToFormatRequest maxLineWidth(Integer maxLineWidth) {
this.maxLineWidth = maxLineWidth;
return this;
}
/**
* Set spaceBeforeTrailingSingleLineComments
* @param spaceBeforeTrailingSingleLineComments Should the be a space before trailing single line comments? (optional, default to true)
* @return APIputQueryToFormatRequest
*/
public APIputQueryToFormatRequest spaceBeforeTrailingSingleLineComments(Boolean spaceBeforeTrailingSingleLineComments) {
this.spaceBeforeTrailingSingleLineComments = spaceBeforeTrailingSingleLineComments;
return this;
}
/**
* Set multilineCommentExtraLineBreak
* @param multilineCommentExtraLineBreak Should an additional line break be added after multi-line comments? (optional, default to false)
* @return APIputQueryToFormatRequest
*/
public APIputQueryToFormatRequest multilineCommentExtraLineBreak(Boolean multilineCommentExtraLineBreak) {
this.multilineCommentExtraLineBreak = multilineCommentExtraLineBreak;
return this;
}
/**
* Build call for putQueryToFormat
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return putQueryToFormatCall(body, trailingCommas, uppercaseKeywords, breakJoinOnSections, spaceAfterExpandedComma, keywordStandardization, expandCommaLists, expandInLists, expandBooleanExpressions, expandBetweenConditions, expandCaseStatements, maxLineWidth, spaceBeforeTrailingSingleLineComments, multilineCommentExtraLineBreak, _callback);
}
/**
* Execute putQueryToFormat request
* @return String
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public String execute() throws ApiException {
ApiResponse localVarResp = putQueryToFormatWithHttpInfo(body, trailingCommas, uppercaseKeywords, breakJoinOnSections, spaceAfterExpandedComma, keywordStandardization, expandCommaLists, expandInLists, expandBooleanExpressions, expandBetweenConditions, expandCaseStatements, maxLineWidth, spaceBeforeTrailingSingleLineComments, multilineCommentExtraLineBreak);
return localVarResp.getData();
}
/**
* Execute putQueryToFormat request. Use any specified configuration options to override any other configuration for this request only.
* @return String
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public String execute(ConfigurationOptions opts) throws ApiException {
ApiResponse localVarResp = putQueryToFormatWithHttpInfo(body, trailingCommas, uppercaseKeywords, breakJoinOnSections, spaceAfterExpandedComma, keywordStandardization, expandCommaLists, expandInLists, expandBooleanExpressions, expandBetweenConditions, expandCaseStatements, maxLineWidth, spaceBeforeTrailingSingleLineComments, multilineCommentExtraLineBreak, opts);
return localVarResp.getData();
}
/**
* Execute putQueryToFormat request with HTTP info returned
* @return ApiResponse<String>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return putQueryToFormatWithHttpInfo(body, trailingCommas, uppercaseKeywords, breakJoinOnSections, spaceAfterExpandedComma, keywordStandardization, expandCommaLists, expandInLists, expandBooleanExpressions, expandBetweenConditions, expandCaseStatements, maxLineWidth, spaceBeforeTrailingSingleLineComments, multilineCommentExtraLineBreak);
}
/**
* Execute putQueryToFormat request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only.
* @return ApiResponse<String>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public ApiResponse executeWithHttpInfo(ConfigurationOptions opts) throws ApiException {
return putQueryToFormatWithHttpInfo(body, trailingCommas, uppercaseKeywords, breakJoinOnSections, spaceAfterExpandedComma, keywordStandardization, expandCommaLists, expandInLists, expandBooleanExpressions, expandBetweenConditions, expandCaseStatements, maxLineWidth, spaceBeforeTrailingSingleLineComments, multilineCommentExtraLineBreak, opts);
}
/**
* Execute putQueryToFormat request (asynchronously)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return putQueryToFormatAsync(body, trailingCommas, uppercaseKeywords, breakJoinOnSections, spaceAfterExpandedComma, keywordStandardization, expandCommaLists, expandInLists, expandBooleanExpressions, expandBetweenConditions, expandCaseStatements, maxLineWidth, spaceBeforeTrailingSingleLineComments, multilineCommentExtraLineBreak, _callback);
}
/**
* Execute putQueryToFormat request (asynchronously). Use any specified configuration options to override any other configuration for this request only.
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
return putQueryToFormatAsync(body, trailingCommas, uppercaseKeywords, breakJoinOnSections, spaceAfterExpandedComma, keywordStandardization, expandCommaLists, expandInLists, expandBooleanExpressions, expandBetweenConditions, expandCaseStatements, maxLineWidth, spaceBeforeTrailingSingleLineComments, multilineCommentExtraLineBreak, _callback, opts);
}
}
/**
* PutQueryToFormat: Formats SQL into a more readable form, a.k.a. Pretty-Print the SQL.
* This formats SQL (given a set of options as to how to do so). It takes some SQL (or a fragment thereof, it need not fully parse as yet and certainly need not execute correctly) and returns the reformatted version. e.g. ```sql select x,y,z from a inner join b on a.x=b.x where x>y or y!=z ``` becomes ```sql select x, y, z from a inner join b on a.x = b.x where x > y or y != z ```
* @param body LuminesceSql to Pretty-Print. Even if it doesn't parse an attempt will be made to format it (required)
* @return APIputQueryToFormatRequest
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public APIputQueryToFormatRequest putQueryToFormat(String body) {
return new APIputQueryToFormatRequest(body);
}
private okhttp3.Call putSqlToExtractScalarParametersCall(String body, final ApiCallback _callback) throws ApiException {
return putSqlToExtractScalarParametersCall(body, _callback, new ConfigurationOptions());
}
private okhttp3.Call putSqlToExtractScalarParametersCall(String body, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/api/Sql/extractscalarparameters";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"text/plain",
"application/json",
"text/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
"text/plain"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "oauth2" };
return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback, opts);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call putSqlToExtractScalarParametersValidateBeforeCall(String body, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling putSqlToExtractScalarParameters(Async)");
}
return putSqlToExtractScalarParametersCall(body, _callback, opts);
}
private ApiResponse> putSqlToExtractScalarParametersWithHttpInfo(String body) throws ApiException {
okhttp3.Call localVarCall = putSqlToExtractScalarParametersValidateBeforeCall(body, null, new ConfigurationOptions());
Type localVarReturnType = new TypeToken>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private ApiResponse> putSqlToExtractScalarParametersWithHttpInfo(String body, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = putSqlToExtractScalarParametersValidateBeforeCall(body, null, opts);
Type localVarReturnType = new TypeToken>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call putSqlToExtractScalarParametersAsync(String body, final ApiCallback> _callback) throws ApiException {
okhttp3.Call localVarCall = putSqlToExtractScalarParametersValidateBeforeCall(body, _callback, new ConfigurationOptions());
Type localVarReturnType = new TypeToken>(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
private okhttp3.Call putSqlToExtractScalarParametersAsync(String body, final ApiCallback> _callback, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = putSqlToExtractScalarParametersValidateBeforeCall(body, _callback, opts);
Type localVarReturnType = new TypeToken>(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APIputSqlToExtractScalarParametersRequest {
private final String body;
private APIputSqlToExtractScalarParametersRequest(String body) {
this.body = body;
}
/**
* Build call for putSqlToExtractScalarParameters
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return putSqlToExtractScalarParametersCall(body, _callback);
}
/**
* Execute putSqlToExtractScalarParameters request
* @return List<ScalarParameter>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public List execute() throws ApiException {
ApiResponse> localVarResp = putSqlToExtractScalarParametersWithHttpInfo(body);
return localVarResp.getData();
}
/**
* Execute putSqlToExtractScalarParameters request. Use any specified configuration options to override any other configuration for this request only.
* @return List<ScalarParameter>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public List execute(ConfigurationOptions opts) throws ApiException {
ApiResponse> localVarResp = putSqlToExtractScalarParametersWithHttpInfo(body, opts);
return localVarResp.getData();
}
/**
* Execute putSqlToExtractScalarParameters request with HTTP info returned
* @return ApiResponse<List<ScalarParameter>>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public ApiResponse> executeWithHttpInfo() throws ApiException {
return putSqlToExtractScalarParametersWithHttpInfo(body);
}
/**
* Execute putSqlToExtractScalarParameters request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only.
* @return ApiResponse<List<ScalarParameter>>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public ApiResponse> executeWithHttpInfo(ConfigurationOptions opts) throws ApiException {
return putSqlToExtractScalarParametersWithHttpInfo(body, opts);
}
/**
* Execute putSqlToExtractScalarParameters request (asynchronously)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public okhttp3.Call executeAsync(final ApiCallback> _callback) throws ApiException {
return putSqlToExtractScalarParametersAsync(body, _callback);
}
/**
* Execute putSqlToExtractScalarParameters request (asynchronously). Use any specified configuration options to override any other configuration for this request only.
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public okhttp3.Call executeAsync(final ApiCallback> _callback, ConfigurationOptions opts) throws ApiException {
return putSqlToExtractScalarParametersAsync(body, _callback, opts);
}
}
/**
* [EXPERIMENTAL] PutSqlToExtractScalarParameters: Generates information about all the scalar parameters defined in the given SQL statement
* SQL to extract scalar parameters from
* @param body SQL query to generate the design object from (required)
* @return APIputSqlToExtractScalarParametersRequest
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public APIputSqlToExtractScalarParametersRequest putSqlToExtractScalarParameters(String body) {
return new APIputSqlToExtractScalarParametersRequest(body);
}
private okhttp3.Call putSqlToFileReadDesignCall(Boolean determineAvailableSources, String body, final ApiCallback _callback) throws ApiException {
return putSqlToFileReadDesignCall(determineAvailableSources, body, _callback, new ConfigurationOptions());
}
private okhttp3.Call putSqlToFileReadDesignCall(Boolean determineAvailableSources, String body, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/api/Sql/tofilereaddesign";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (determineAvailableSources != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("determineAvailableSources", determineAvailableSources));
}
final String[] localVarAccepts = {
"text/plain",
"application/json",
"text/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
"text/plain"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "oauth2" };
return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback, opts);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call putSqlToFileReadDesignValidateBeforeCall(Boolean determineAvailableSources, String body, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
return putSqlToFileReadDesignCall(determineAvailableSources, body, _callback, opts);
}
private ApiResponse putSqlToFileReadDesignWithHttpInfo(Boolean determineAvailableSources, String body) throws ApiException {
okhttp3.Call localVarCall = putSqlToFileReadDesignValidateBeforeCall(determineAvailableSources, body, null, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private ApiResponse putSqlToFileReadDesignWithHttpInfo(Boolean determineAvailableSources, String body, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = putSqlToFileReadDesignValidateBeforeCall(determineAvailableSources, body, null, opts);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call putSqlToFileReadDesignAsync(Boolean determineAvailableSources, String body, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = putSqlToFileReadDesignValidateBeforeCall(determineAvailableSources, body, _callback, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
private okhttp3.Call putSqlToFileReadDesignAsync(Boolean determineAvailableSources, String body, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = putSqlToFileReadDesignValidateBeforeCall(determineAvailableSources, body, _callback, opts);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APIputSqlToFileReadDesignRequest {
private Boolean determineAvailableSources;
private String body;
private APIputSqlToFileReadDesignRequest() {
}
/**
* Set determineAvailableSources
* @param determineAvailableSources Should the available sources be determined from `Sys.Registration` (optional, default to true)
* @return APIputSqlToFileReadDesignRequest
*/
public APIputSqlToFileReadDesignRequest determineAvailableSources(Boolean determineAvailableSources) {
this.determineAvailableSources = determineAvailableSources;
return this;
}
/**
* Set body
* @param body SQL query to generate the file read design object from (optional)
* @return APIputSqlToFileReadDesignRequest
*/
public APIputSqlToFileReadDesignRequest body(String body) {
this.body = body;
return this;
}
/**
* Build call for putSqlToFileReadDesign
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return putSqlToFileReadDesignCall(determineAvailableSources, body, _callback);
}
/**
* Execute putSqlToFileReadDesign request
* @return FileReaderBuilderDef
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public FileReaderBuilderDef execute() throws ApiException {
ApiResponse localVarResp = putSqlToFileReadDesignWithHttpInfo(determineAvailableSources, body);
return localVarResp.getData();
}
/**
* Execute putSqlToFileReadDesign request. Use any specified configuration options to override any other configuration for this request only.
* @return FileReaderBuilderDef
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public FileReaderBuilderDef execute(ConfigurationOptions opts) throws ApiException {
ApiResponse localVarResp = putSqlToFileReadDesignWithHttpInfo(determineAvailableSources, body, opts);
return localVarResp.getData();
}
/**
* Execute putSqlToFileReadDesign request with HTTP info returned
* @return ApiResponse<FileReaderBuilderDef>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return putSqlToFileReadDesignWithHttpInfo(determineAvailableSources, body);
}
/**
* Execute putSqlToFileReadDesign request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only.
* @return ApiResponse<FileReaderBuilderDef>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public ApiResponse executeWithHttpInfo(ConfigurationOptions opts) throws ApiException {
return putSqlToFileReadDesignWithHttpInfo(determineAvailableSources, body, opts);
}
/**
* Execute putSqlToFileReadDesign request (asynchronously)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return putSqlToFileReadDesignAsync(determineAvailableSources, body, _callback);
}
/**
* Execute putSqlToFileReadDesign request (asynchronously). Use any specified configuration options to override any other configuration for this request only.
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
return putSqlToFileReadDesignAsync(determineAvailableSources, body, _callback, opts);
}
}
/**
* [EXPERIMENTAL] PutSqlToFileReadDesign: Generates a SQL-file-read-design object from SQL string, if possible.
* SQL to attempt to create a Design object from
* @return APIputSqlToFileReadDesignRequest
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public APIputSqlToFileReadDesignRequest putSqlToFileReadDesign() {
return new APIputSqlToFileReadDesignRequest();
}
private okhttp3.Call putSqlToQueryDesignCall(String body, Boolean validateWithMetadata, final ApiCallback _callback) throws ApiException {
return putSqlToQueryDesignCall(body, validateWithMetadata, _callback, new ConfigurationOptions());
}
private okhttp3.Call putSqlToQueryDesignCall(String body, Boolean validateWithMetadata, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/api/Sql/todesign";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (validateWithMetadata != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("validateWithMetadata", validateWithMetadata));
}
final String[] localVarAccepts = {
"text/plain",
"application/json",
"text/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
"text/plain"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "oauth2" };
return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback, opts);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call putSqlToQueryDesignValidateBeforeCall(String body, Boolean validateWithMetadata, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling putSqlToQueryDesign(Async)");
}
return putSqlToQueryDesignCall(body, validateWithMetadata, _callback, opts);
}
private ApiResponse putSqlToQueryDesignWithHttpInfo(String body, Boolean validateWithMetadata) throws ApiException {
okhttp3.Call localVarCall = putSqlToQueryDesignValidateBeforeCall(body, validateWithMetadata, null, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private ApiResponse putSqlToQueryDesignWithHttpInfo(String body, Boolean validateWithMetadata, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = putSqlToQueryDesignValidateBeforeCall(body, validateWithMetadata, null, opts);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call putSqlToQueryDesignAsync(String body, Boolean validateWithMetadata, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = putSqlToQueryDesignValidateBeforeCall(body, validateWithMetadata, _callback, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
private okhttp3.Call putSqlToQueryDesignAsync(String body, Boolean validateWithMetadata, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = putSqlToQueryDesignValidateBeforeCall(body, validateWithMetadata, _callback, opts);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APIputSqlToQueryDesignRequest {
private final String body;
private Boolean validateWithMetadata;
private APIputSqlToQueryDesignRequest(String body) {
this.body = body;
}
/**
* Set validateWithMetadata
* @param validateWithMetadata Should the table be validated against the users' view of Sys.Field to fill in DataTypes, etc.? (optional, default to true)
* @return APIputSqlToQueryDesignRequest
*/
public APIputSqlToQueryDesignRequest validateWithMetadata(Boolean validateWithMetadata) {
this.validateWithMetadata = validateWithMetadata;
return this;
}
/**
* Build call for putSqlToQueryDesign
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return putSqlToQueryDesignCall(body, validateWithMetadata, _callback);
}
/**
* Execute putSqlToQueryDesign request
* @return QueryDesign
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public QueryDesign execute() throws ApiException {
ApiResponse localVarResp = putSqlToQueryDesignWithHttpInfo(body, validateWithMetadata);
return localVarResp.getData();
}
/**
* Execute putSqlToQueryDesign request. Use any specified configuration options to override any other configuration for this request only.
* @return QueryDesign
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public QueryDesign execute(ConfigurationOptions opts) throws ApiException {
ApiResponse localVarResp = putSqlToQueryDesignWithHttpInfo(body, validateWithMetadata, opts);
return localVarResp.getData();
}
/**
* Execute putSqlToQueryDesign request with HTTP info returned
* @return ApiResponse<QueryDesign>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return putSqlToQueryDesignWithHttpInfo(body, validateWithMetadata);
}
/**
* Execute putSqlToQueryDesign request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only.
* @return ApiResponse<QueryDesign>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public ApiResponse executeWithHttpInfo(ConfigurationOptions opts) throws ApiException {
return putSqlToQueryDesignWithHttpInfo(body, validateWithMetadata, opts);
}
/**
* Execute putSqlToQueryDesign request (asynchronously)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return putSqlToQueryDesignAsync(body, validateWithMetadata, _callback);
}
/**
* Execute putSqlToQueryDesign request (asynchronously). Use any specified configuration options to override any other configuration for this request only.
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
return putSqlToQueryDesignAsync(body, validateWithMetadata, _callback, opts);
}
}
/**
* [EXPERIMENTAL] PutSqlToQueryDesign: Generates a SQL-design object from SQL string, if possible.
* SQL to attempt to create a Design object from
* @param body SQL query to generate the design object from (required)
* @return APIputSqlToQueryDesignRequest
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public APIputSqlToQueryDesignRequest putSqlToQueryDesign(String body) {
return new APIputSqlToQueryDesignRequest(body);
}
private okhttp3.Call putSqlToViewDesignCall(String body, final ApiCallback _callback) throws ApiException {
return putSqlToViewDesignCall(body, _callback, new ConfigurationOptions());
}
private okhttp3.Call putSqlToViewDesignCall(String body, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/api/Sql/toviewdesign";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap