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.
/*
* Feast Authorization Server
* Feast Authorization Server
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package feast.common.auth.providers.http.client.api;
import feast.common.auth.providers.http.client.invoker.ApiCallback;
import feast.common.auth.providers.http.client.invoker.ApiClient;
import feast.common.auth.providers.http.client.invoker.ApiException;
import feast.common.auth.providers.http.client.invoker.ApiResponse;
import feast.common.auth.providers.http.client.invoker.Configuration;
import feast.common.auth.providers.http.client.invoker.Pair;
import feast.common.auth.providers.http.client.invoker.ProgressRequestBody;
import feast.common.auth.providers.http.client.invoker.ProgressResponseBody;
import com.google.gson.reflect.TypeToken;
import java.io.IOException;
import feast.common.auth.providers.http.client.model.AuthorizationResult;
import feast.common.auth.providers.http.client.model.CheckAccessRequest;
import feast.common.auth.providers.http.client.model.InlineResponse500;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class DefaultApi {
private ApiClient localVarApiClient;
public DefaultApi() {
this(Configuration.getDefaultApiClient());
}
public DefaultApi(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
public ApiClient getApiClient() {
return localVarApiClient;
}
public void setApiClient(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
/**
* Build call for checkAccessPost
* @param body Request containing user, resource, and action information. Used to make an authorization decision. (required)
* @param authorization Auth token (optional)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Authorization passed response
-
403
Authorization failed response
-
500
The standard error format
-
*/
public okhttp3.Call checkAccessPostCall(CheckAccessRequest body, String authorization, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/checkAccess";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
if (authorization != null) {
localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization));
}
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { };
return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call checkAccessPostValidateBeforeCall(CheckAccessRequest body, String authorization, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling checkAccessPost(Async)");
}
okhttp3.Call localVarCall = checkAccessPostCall(body, authorization, _callback);
return localVarCall;
}
/**
* Check whether request is authorized to access a specific resource
*
* @param body Request containing user, resource, and action information. Used to make an authorization decision. (required)
* @param authorization Auth token (optional)
* @return AuthorizationResult
* @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
Authorization passed response
-
403
Authorization failed response
-
500
The standard error format
-
*/
public AuthorizationResult checkAccessPost(CheckAccessRequest body, String authorization) throws ApiException {
ApiResponse localVarResp = checkAccessPostWithHttpInfo(body, authorization);
return localVarResp.getData();
}
/**
* Check whether request is authorized to access a specific resource
*
* @param body Request containing user, resource, and action information. Used to make an authorization decision. (required)
* @param authorization Auth token (optional)
* @return ApiResponse<AuthorizationResult>
* @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
Authorization passed response
-
403
Authorization failed response
-
500
The standard error format
-
*/
public ApiResponse checkAccessPostWithHttpInfo(CheckAccessRequest body, String authorization) throws ApiException {
okhttp3.Call localVarCall = checkAccessPostValidateBeforeCall(body, authorization, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Check whether request is authorized to access a specific resource (asynchronously)
*
* @param body Request containing user, resource, and action information. Used to make an authorization decision. (required)
* @param authorization Auth token (optional)
* @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
Authorization passed response
-
403
Authorization failed response
-
500
The standard error format
-
*/
public okhttp3.Call checkAccessPostAsync(CheckAccessRequest body, String authorization, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = checkAccessPostValidateBeforeCall(body, authorization, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for healthzGet
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Online
-
500
Offline
-
*/
public okhttp3.Call healthzGetCall(final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/healthz";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { };
return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call healthzGetValidateBeforeCall(final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = healthzGetCall(_callback);
return localVarCall;
}
/**
*
*
* @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
Online
-
500
Offline
-
*/
public void healthzGet() throws ApiException {
healthzGetWithHttpInfo();
}
/**
*
*
* @return ApiResponse<Void>
* @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
Online
-
500
Offline
-
*/
public ApiResponse healthzGetWithHttpInfo() throws ApiException {
okhttp3.Call localVarCall = healthzGetValidateBeforeCall(null);
return localVarApiClient.execute(localVarCall);
}
/**
* (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
Online
-
500
Offline
-
*/
public okhttp3.Call healthzGetAsync(final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = healthzGetValidateBeforeCall(_callback);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
/**
* Build call for readinessGet
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Ready
-
500
Not Ready
-
*/
public okhttp3.Call readinessGetCall(final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/readiness";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { };
return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call readinessGetValidateBeforeCall(final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = readinessGetCall(_callback);
return localVarCall;
}
/**
*
*
* @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
Ready
-
500
Not Ready
-
*/
public void readinessGet() throws ApiException {
readinessGetWithHttpInfo();
}
/**
*
*
* @return ApiResponse<Void>
* @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
Ready
-
500
Not Ready
-
*/
public ApiResponse readinessGetWithHttpInfo() throws ApiException {
okhttp3.Call localVarCall = readinessGetValidateBeforeCall(null);
return localVarApiClient.execute(localVarCall);
}
/**
* (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