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.
/*
Copyright 2021 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package io.kubernetes.client.openapi.apis;
import io.kubernetes.client.openapi.ApiCallback;
import io.kubernetes.client.openapi.ApiClient;
import io.kubernetes.client.openapi.ApiException;
import io.kubernetes.client.openapi.ApiResponse;
import io.kubernetes.client.openapi.Configuration;
import io.kubernetes.client.openapi.Pair;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class LogsApi {
private ApiClient localVarApiClient;
public LogsApi() {
this(Configuration.getDefaultApiClient());
}
public LogsApi(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
public ApiClient getApiClient() {
return localVarApiClient;
}
public void setApiClient(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
/**
* Build call for logFileHandler
*
* @param logpath path to the log (required)
* @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
*
401
Unauthorized
-
*
*/
public okhttp3.Call logFileHandlerCall(String logpath, final ApiCallback _callback)
throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath =
"/logs/{logpath}"
.replaceAll(
"\\{" + "logpath" + "\\}", localVarApiClient.escapeString(logpath.toString()));
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[] {"BearerToken"};
return localVarApiClient.buildCall(
localVarPath,
"GET",
localVarQueryParams,
localVarCollectionQueryParams,
localVarPostBody,
localVarHeaderParams,
localVarCookieParams,
localVarFormParams,
localVarAuthNames,
_callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call logFileHandlerValidateBeforeCall(String logpath, final ApiCallback _callback)
throws ApiException {
// verify the required parameter 'logpath' is set
if (logpath == null) {
throw new ApiException(
"Missing the required parameter 'logpath' when calling logFileHandler(Async)");
}
okhttp3.Call localVarCall = logFileHandlerCall(logpath, _callback);
return localVarCall;
}
/**
* @param logpath path to the log (required)
* @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
*
401
Unauthorized
-
*
*/
public void logFileHandler(String logpath) throws ApiException {
logFileHandlerWithHttpInfo(logpath);
}
/**
* @param logpath path to the log (required)
* @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
*
401
Unauthorized
-
*
*/
public ApiResponse logFileHandlerWithHttpInfo(String logpath) throws ApiException {
okhttp3.Call localVarCall = logFileHandlerValidateBeforeCall(logpath, null);
return localVarApiClient.execute(localVarCall);
}
/**
* (asynchronously)
*
* @param logpath path to the log (required)
* @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
*
401
Unauthorized
-
*
*/
public okhttp3.Call logFileHandlerAsync(String logpath, final ApiCallback _callback)
throws ApiException {
okhttp3.Call localVarCall = logFileHandlerValidateBeforeCall(logpath, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
/**
* Build call for logFileListHandler
*
* @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
*
401
Unauthorized
-
*
*/
public okhttp3.Call logFileListHandlerCall(final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/logs/";
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[] {"BearerToken"};
return localVarApiClient.buildCall(
localVarPath,
"GET",
localVarQueryParams,
localVarCollectionQueryParams,
localVarPostBody,
localVarHeaderParams,
localVarCookieParams,
localVarFormParams,
localVarAuthNames,
_callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call logFileListHandlerValidateBeforeCall(final ApiCallback _callback)
throws ApiException {
okhttp3.Call localVarCall = logFileListHandlerCall(_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
*
401
Unauthorized
-
*
*/
public void logFileListHandler() throws ApiException {
logFileListHandlerWithHttpInfo();
}
/**
* @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
*
401
Unauthorized
-
*
*/
public ApiResponse logFileListHandlerWithHttpInfo() throws ApiException {
okhttp3.Call localVarCall = logFileListHandlerValidateBeforeCall(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
*