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 2024 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 io.kubernetes.client.openapi.ProgressRequestBody;
import io.kubernetes.client.openapi.ProgressResponseBody;
import com.google.gson.reflect.TypeToken;
import java.io.IOException;
import io.kubernetes.client.openapi.models.AuthenticationV1TokenRequest;
import io.kubernetes.client.openapi.models.CoreV1Event;
import io.kubernetes.client.openapi.models.CoreV1EventList;
import io.kubernetes.client.openapi.models.V1APIResourceList;
import io.kubernetes.client.openapi.models.V1Binding;
import io.kubernetes.client.openapi.models.V1ComponentStatus;
import io.kubernetes.client.openapi.models.V1ComponentStatusList;
import io.kubernetes.client.openapi.models.V1ConfigMap;
import io.kubernetes.client.openapi.models.V1ConfigMapList;
import io.kubernetes.client.openapi.models.V1DeleteOptions;
import io.kubernetes.client.openapi.models.V1Endpoints;
import io.kubernetes.client.openapi.models.V1EndpointsList;
import io.kubernetes.client.openapi.models.V1Eviction;
import io.kubernetes.client.openapi.models.V1LimitRange;
import io.kubernetes.client.openapi.models.V1LimitRangeList;
import io.kubernetes.client.openapi.models.V1Namespace;
import io.kubernetes.client.openapi.models.V1NamespaceList;
import io.kubernetes.client.openapi.models.V1Node;
import io.kubernetes.client.openapi.models.V1NodeList;
import io.kubernetes.client.custom.V1Patch;
import io.kubernetes.client.openapi.models.V1PersistentVolume;
import io.kubernetes.client.openapi.models.V1PersistentVolumeClaim;
import io.kubernetes.client.openapi.models.V1PersistentVolumeClaimList;
import io.kubernetes.client.openapi.models.V1PersistentVolumeList;
import io.kubernetes.client.openapi.models.V1Pod;
import io.kubernetes.client.openapi.models.V1PodList;
import io.kubernetes.client.openapi.models.V1PodTemplate;
import io.kubernetes.client.openapi.models.V1PodTemplateList;
import io.kubernetes.client.openapi.models.V1ReplicationController;
import io.kubernetes.client.openapi.models.V1ReplicationControllerList;
import io.kubernetes.client.openapi.models.V1ResourceQuota;
import io.kubernetes.client.openapi.models.V1ResourceQuotaList;
import io.kubernetes.client.openapi.models.V1Scale;
import io.kubernetes.client.openapi.models.V1Secret;
import io.kubernetes.client.openapi.models.V1SecretList;
import io.kubernetes.client.openapi.models.V1Service;
import io.kubernetes.client.openapi.models.V1ServiceAccount;
import io.kubernetes.client.openapi.models.V1ServiceAccountList;
import io.kubernetes.client.openapi.models.V1ServiceList;
import io.kubernetes.client.openapi.models.V1Status;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class CoreV1Api {
private ApiClient localVarApiClient;
private int localHostIndex;
private String localCustomBaseUrl;
public CoreV1Api() {
this(Configuration.getDefaultApiClient());
}
public CoreV1Api(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 connectDeleteNamespacedPodProxyCall(String name, String namespace, String path, final ApiCallback _callback) 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 = null;
// create path and map variables
String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy"
.replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString()))
.replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (path != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path));
}
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);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "BearerToken" };
return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call connectDeleteNamespacedPodProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'name' is set
if (name == null) {
throw new ApiException("Missing the required parameter 'name' when calling connectDeleteNamespacedPodProxy(Async)");
}
// verify the required parameter 'namespace' is set
if (namespace == null) {
throw new ApiException("Missing the required parameter 'namespace' when calling connectDeleteNamespacedPodProxy(Async)");
}
return connectDeleteNamespacedPodProxyCall(name, namespace, path, _callback);
}
private ApiResponse connectDeleteNamespacedPodProxyWithHttpInfo(String name, String namespace, String path) throws ApiException {
okhttp3.Call localVarCall = connectDeleteNamespacedPodProxyValidateBeforeCall(name, namespace, path, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call connectDeleteNamespacedPodProxyAsync(String name, String namespace, String path, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = connectDeleteNamespacedPodProxyValidateBeforeCall(name, namespace, path, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APIconnectDeleteNamespacedPodProxyRequest {
private final String name;
private final String namespace;
private String path;
private APIconnectDeleteNamespacedPodProxyRequest(String name, String namespace) {
this.name = name;
this.namespace = namespace;
}
/**
* Set path
* @param path Path is the URL path to use for the current proxy request to pod. (optional)
* @return APIconnectDeleteNamespacedPodProxyRequest
*/
public APIconnectDeleteNamespacedPodProxyRequest path(String path) {
this.path = path;
return this;
}
/**
* Build call for connectDeleteNamespacedPodProxy
* @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
OK
-
401
Unauthorized
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return connectDeleteNamespacedPodProxyCall(name, namespace, path, _callback);
}
/**
* Execute connectDeleteNamespacedPodProxy 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
OK
-
401
Unauthorized
-
*/
public String execute() throws ApiException {
ApiResponse localVarResp = connectDeleteNamespacedPodProxyWithHttpInfo(name, namespace, path);
return localVarResp.getData();
}
/**
* Execute connectDeleteNamespacedPodProxy 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
OK
-
401
Unauthorized
-
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return connectDeleteNamespacedPodProxyWithHttpInfo(name, namespace, path);
}
/**
* Execute connectDeleteNamespacedPodProxy 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
OK
-
401
Unauthorized
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return connectDeleteNamespacedPodProxyAsync(name, namespace, path, _callback);
}
}
/**
*
* connect DELETE requests to proxy of Pod
* @param name name of the PodProxyOptions (required)
* @param namespace object name and auth scope, such as for teams and projects (required)
* @return APIconnectDeleteNamespacedPodProxyRequest
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
401
Unauthorized
-
*/
public APIconnectDeleteNamespacedPodProxyRequest connectDeleteNamespacedPodProxy(String name, String namespace) {
return new APIconnectDeleteNamespacedPodProxyRequest(name, namespace);
}
private okhttp3.Call connectDeleteNamespacedPodProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) 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 = null;
// create path and map variables
String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}"
.replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString()))
.replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString()))
.replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (path2 != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2));
}
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);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "BearerToken" };
return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call connectDeleteNamespacedPodProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'name' is set
if (name == null) {
throw new ApiException("Missing the required parameter 'name' when calling connectDeleteNamespacedPodProxyWithPath(Async)");
}
// verify the required parameter 'namespace' is set
if (namespace == null) {
throw new ApiException("Missing the required parameter 'namespace' when calling connectDeleteNamespacedPodProxyWithPath(Async)");
}
// verify the required parameter 'path' is set
if (path == null) {
throw new ApiException("Missing the required parameter 'path' when calling connectDeleteNamespacedPodProxyWithPath(Async)");
}
return connectDeleteNamespacedPodProxyWithPathCall(name, namespace, path, path2, _callback);
}
private ApiResponse connectDeleteNamespacedPodProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException {
okhttp3.Call localVarCall = connectDeleteNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call connectDeleteNamespacedPodProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = connectDeleteNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APIconnectDeleteNamespacedPodProxyWithPathRequest {
private final String name;
private final String namespace;
private final String path;
private String path2;
private APIconnectDeleteNamespacedPodProxyWithPathRequest(String name, String namespace, String path) {
this.name = name;
this.namespace = namespace;
this.path = path;
}
/**
* Set path2
* @param path2 Path is the URL path to use for the current proxy request to pod. (optional)
* @return APIconnectDeleteNamespacedPodProxyWithPathRequest
*/
public APIconnectDeleteNamespacedPodProxyWithPathRequest path2(String path2) {
this.path2 = path2;
return this;
}
/**
* Build call for connectDeleteNamespacedPodProxyWithPath
* @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
OK
-
401
Unauthorized
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return connectDeleteNamespacedPodProxyWithPathCall(name, namespace, path, path2, _callback);
}
/**
* Execute connectDeleteNamespacedPodProxyWithPath 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
OK
-
401
Unauthorized
-
*/
public String execute() throws ApiException {
ApiResponse localVarResp = connectDeleteNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2);
return localVarResp.getData();
}
/**
* Execute connectDeleteNamespacedPodProxyWithPath 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
OK
-
401
Unauthorized
-
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return connectDeleteNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2);
}
/**
* Execute connectDeleteNamespacedPodProxyWithPath 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
OK
-
401
Unauthorized
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return connectDeleteNamespacedPodProxyWithPathAsync(name, namespace, path, path2, _callback);
}
}
/**
*
* connect DELETE requests to proxy of Pod
* @param name name of the PodProxyOptions (required)
* @param namespace object name and auth scope, such as for teams and projects (required)
* @param path path to the resource (required)
* @return APIconnectDeleteNamespacedPodProxyWithPathRequest
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
401
Unauthorized
-
*/
public APIconnectDeleteNamespacedPodProxyWithPathRequest connectDeleteNamespacedPodProxyWithPath(String name, String namespace, String path) {
return new APIconnectDeleteNamespacedPodProxyWithPathRequest(name, namespace, path);
}
private okhttp3.Call connectDeleteNamespacedServiceProxyCall(String name, String namespace, String path, final ApiCallback _callback) 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 = null;
// create path and map variables
String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy"
.replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString()))
.replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (path != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path));
}
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);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "BearerToken" };
return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call connectDeleteNamespacedServiceProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'name' is set
if (name == null) {
throw new ApiException("Missing the required parameter 'name' when calling connectDeleteNamespacedServiceProxy(Async)");
}
// verify the required parameter 'namespace' is set
if (namespace == null) {
throw new ApiException("Missing the required parameter 'namespace' when calling connectDeleteNamespacedServiceProxy(Async)");
}
return connectDeleteNamespacedServiceProxyCall(name, namespace, path, _callback);
}
private ApiResponse connectDeleteNamespacedServiceProxyWithHttpInfo(String name, String namespace, String path) throws ApiException {
okhttp3.Call localVarCall = connectDeleteNamespacedServiceProxyValidateBeforeCall(name, namespace, path, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call connectDeleteNamespacedServiceProxyAsync(String name, String namespace, String path, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = connectDeleteNamespacedServiceProxyValidateBeforeCall(name, namespace, path, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APIconnectDeleteNamespacedServiceProxyRequest {
private final String name;
private final String namespace;
private String path;
private APIconnectDeleteNamespacedServiceProxyRequest(String name, String namespace) {
this.name = name;
this.namespace = namespace;
}
/**
* Set path
* @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional)
* @return APIconnectDeleteNamespacedServiceProxyRequest
*/
public APIconnectDeleteNamespacedServiceProxyRequest path(String path) {
this.path = path;
return this;
}
/**
* Build call for connectDeleteNamespacedServiceProxy
* @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
OK
-
401
Unauthorized
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return connectDeleteNamespacedServiceProxyCall(name, namespace, path, _callback);
}
/**
* Execute connectDeleteNamespacedServiceProxy 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
OK
-
401
Unauthorized
-
*/
public String execute() throws ApiException {
ApiResponse localVarResp = connectDeleteNamespacedServiceProxyWithHttpInfo(name, namespace, path);
return localVarResp.getData();
}
/**
* Execute connectDeleteNamespacedServiceProxy 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
OK
-
401
Unauthorized
-
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return connectDeleteNamespacedServiceProxyWithHttpInfo(name, namespace, path);
}
/**
* Execute connectDeleteNamespacedServiceProxy 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
OK
-
401
Unauthorized
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return connectDeleteNamespacedServiceProxyAsync(name, namespace, path, _callback);
}
}
/**
*
* connect DELETE requests to proxy of Service
* @param name name of the ServiceProxyOptions (required)
* @param namespace object name and auth scope, such as for teams and projects (required)
* @return APIconnectDeleteNamespacedServiceProxyRequest
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
401
Unauthorized
-
*/
public APIconnectDeleteNamespacedServiceProxyRequest connectDeleteNamespacedServiceProxy(String name, String namespace) {
return new APIconnectDeleteNamespacedServiceProxyRequest(name, namespace);
}
private okhttp3.Call connectDeleteNamespacedServiceProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) 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 = null;
// create path and map variables
String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}"
.replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString()))
.replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString()))
.replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (path2 != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2));
}
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);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "BearerToken" };
return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call connectDeleteNamespacedServiceProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'name' is set
if (name == null) {
throw new ApiException("Missing the required parameter 'name' when calling connectDeleteNamespacedServiceProxyWithPath(Async)");
}
// verify the required parameter 'namespace' is set
if (namespace == null) {
throw new ApiException("Missing the required parameter 'namespace' when calling connectDeleteNamespacedServiceProxyWithPath(Async)");
}
// verify the required parameter 'path' is set
if (path == null) {
throw new ApiException("Missing the required parameter 'path' when calling connectDeleteNamespacedServiceProxyWithPath(Async)");
}
return connectDeleteNamespacedServiceProxyWithPathCall(name, namespace, path, path2, _callback);
}
private ApiResponse connectDeleteNamespacedServiceProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException {
okhttp3.Call localVarCall = connectDeleteNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call connectDeleteNamespacedServiceProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = connectDeleteNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APIconnectDeleteNamespacedServiceProxyWithPathRequest {
private final String name;
private final String namespace;
private final String path;
private String path2;
private APIconnectDeleteNamespacedServiceProxyWithPathRequest(String name, String namespace, String path) {
this.name = name;
this.namespace = namespace;
this.path = path;
}
/**
* Set path2
* @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional)
* @return APIconnectDeleteNamespacedServiceProxyWithPathRequest
*/
public APIconnectDeleteNamespacedServiceProxyWithPathRequest path2(String path2) {
this.path2 = path2;
return this;
}
/**
* Build call for connectDeleteNamespacedServiceProxyWithPath
* @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
OK
-
401
Unauthorized
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return connectDeleteNamespacedServiceProxyWithPathCall(name, namespace, path, path2, _callback);
}
/**
* Execute connectDeleteNamespacedServiceProxyWithPath 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
OK
-
401
Unauthorized
-
*/
public String execute() throws ApiException {
ApiResponse localVarResp = connectDeleteNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2);
return localVarResp.getData();
}
/**
* Execute connectDeleteNamespacedServiceProxyWithPath 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
OK
-
401
Unauthorized
-
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return connectDeleteNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2);
}
/**
* Execute connectDeleteNamespacedServiceProxyWithPath 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
OK
-
401
Unauthorized
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return connectDeleteNamespacedServiceProxyWithPathAsync(name, namespace, path, path2, _callback);
}
}
/**
*
* connect DELETE requests to proxy of Service
* @param name name of the ServiceProxyOptions (required)
* @param namespace object name and auth scope, such as for teams and projects (required)
* @param path path to the resource (required)
* @return APIconnectDeleteNamespacedServiceProxyWithPathRequest
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
401
Unauthorized
-
*/
public APIconnectDeleteNamespacedServiceProxyWithPathRequest connectDeleteNamespacedServiceProxyWithPath(String name, String namespace, String path) {
return new APIconnectDeleteNamespacedServiceProxyWithPathRequest(name, namespace, path);
}
private okhttp3.Call connectDeleteNodeProxyCall(String name, String path, final ApiCallback _callback) 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 = null;
// create path and map variables
String localVarPath = "/api/v1/nodes/{name}/proxy"
.replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (path != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path));
}
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);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "BearerToken" };
return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call connectDeleteNodeProxyValidateBeforeCall(String name, String path, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'name' is set
if (name == null) {
throw new ApiException("Missing the required parameter 'name' when calling connectDeleteNodeProxy(Async)");
}
return connectDeleteNodeProxyCall(name, path, _callback);
}
private ApiResponse connectDeleteNodeProxyWithHttpInfo(String name, String path) throws ApiException {
okhttp3.Call localVarCall = connectDeleteNodeProxyValidateBeforeCall(name, path, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call connectDeleteNodeProxyAsync(String name, String path, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = connectDeleteNodeProxyValidateBeforeCall(name, path, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APIconnectDeleteNodeProxyRequest {
private final String name;
private String path;
private APIconnectDeleteNodeProxyRequest(String name) {
this.name = name;
}
/**
* Set path
* @param path Path is the URL path to use for the current proxy request to node. (optional)
* @return APIconnectDeleteNodeProxyRequest
*/
public APIconnectDeleteNodeProxyRequest path(String path) {
this.path = path;
return this;
}
/**
* Build call for connectDeleteNodeProxy
* @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
OK
-
401
Unauthorized
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return connectDeleteNodeProxyCall(name, path, _callback);
}
/**
* Execute connectDeleteNodeProxy 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
OK
-
401
Unauthorized
-
*/
public String execute() throws ApiException {
ApiResponse localVarResp = connectDeleteNodeProxyWithHttpInfo(name, path);
return localVarResp.getData();
}
/**
* Execute connectDeleteNodeProxy 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
OK
-
401
Unauthorized
-
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return connectDeleteNodeProxyWithHttpInfo(name, path);
}
/**
* Execute connectDeleteNodeProxy 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
OK
-
401
Unauthorized
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return connectDeleteNodeProxyAsync(name, path, _callback);
}
}
/**
*
* connect DELETE requests to proxy of Node
* @param name name of the NodeProxyOptions (required)
* @return APIconnectDeleteNodeProxyRequest
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
401
Unauthorized
-
*/
public APIconnectDeleteNodeProxyRequest connectDeleteNodeProxy(String name) {
return new APIconnectDeleteNodeProxyRequest(name);
}
private okhttp3.Call connectDeleteNodeProxyWithPathCall(String name, String path, String path2, final ApiCallback _callback) 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 = null;
// create path and map variables
String localVarPath = "/api/v1/nodes/{name}/proxy/{path}"
.replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString()))
.replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (path2 != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2));
}
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);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "BearerToken" };
return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call connectDeleteNodeProxyWithPathValidateBeforeCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'name' is set
if (name == null) {
throw new ApiException("Missing the required parameter 'name' when calling connectDeleteNodeProxyWithPath(Async)");
}
// verify the required parameter 'path' is set
if (path == null) {
throw new ApiException("Missing the required parameter 'path' when calling connectDeleteNodeProxyWithPath(Async)");
}
return connectDeleteNodeProxyWithPathCall(name, path, path2, _callback);
}
private ApiResponse connectDeleteNodeProxyWithPathWithHttpInfo(String name, String path, String path2) throws ApiException {
okhttp3.Call localVarCall = connectDeleteNodeProxyWithPathValidateBeforeCall(name, path, path2, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call connectDeleteNodeProxyWithPathAsync(String name, String path, String path2, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = connectDeleteNodeProxyWithPathValidateBeforeCall(name, path, path2, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APIconnectDeleteNodeProxyWithPathRequest {
private final String name;
private final String path;
private String path2;
private APIconnectDeleteNodeProxyWithPathRequest(String name, String path) {
this.name = name;
this.path = path;
}
/**
* Set path2
* @param path2 Path is the URL path to use for the current proxy request to node. (optional)
* @return APIconnectDeleteNodeProxyWithPathRequest
*/
public APIconnectDeleteNodeProxyWithPathRequest path2(String path2) {
this.path2 = path2;
return this;
}
/**
* Build call for connectDeleteNodeProxyWithPath
* @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
OK
-
401
Unauthorized
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return connectDeleteNodeProxyWithPathCall(name, path, path2, _callback);
}
/**
* Execute connectDeleteNodeProxyWithPath 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
OK
-
401
Unauthorized
-
*/
public String execute() throws ApiException {
ApiResponse localVarResp = connectDeleteNodeProxyWithPathWithHttpInfo(name, path, path2);
return localVarResp.getData();
}
/**
* Execute connectDeleteNodeProxyWithPath 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
OK
-
401
Unauthorized
-
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return connectDeleteNodeProxyWithPathWithHttpInfo(name, path, path2);
}
/**
* Execute connectDeleteNodeProxyWithPath 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
OK
-
401
Unauthorized
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return connectDeleteNodeProxyWithPathAsync(name, path, path2, _callback);
}
}
/**
*
* connect DELETE requests to proxy of Node
* @param name name of the NodeProxyOptions (required)
* @param path path to the resource (required)
* @return APIconnectDeleteNodeProxyWithPathRequest
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
401
Unauthorized
-
*/
public APIconnectDeleteNodeProxyWithPathRequest connectDeleteNodeProxyWithPath(String name, String path) {
return new APIconnectDeleteNodeProxyWithPathRequest(name, path);
}
private okhttp3.Call connectGetNamespacedPodAttachCall(String name, String namespace, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) 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 = null;
// create path and map variables
String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/attach"
.replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString()))
.replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (container != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("container", container));
}
if (stderr != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("stderr", stderr));
}
if (stdin != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("stdin", stdin));
}
if (stdout != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("stdout", stdout));
}
if (tty != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("tty", tty));
}
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);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "BearerToken" };
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call connectGetNamespacedPodAttachValidateBeforeCall(String name, String namespace, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'name' is set
if (name == null) {
throw new ApiException("Missing the required parameter 'name' when calling connectGetNamespacedPodAttach(Async)");
}
// verify the required parameter 'namespace' is set
if (namespace == null) {
throw new ApiException("Missing the required parameter 'namespace' when calling connectGetNamespacedPodAttach(Async)");
}
return connectGetNamespacedPodAttachCall(name, namespace, container, stderr, stdin, stdout, tty, _callback);
}
private ApiResponse connectGetNamespacedPodAttachWithHttpInfo(String name, String namespace, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty) throws ApiException {
okhttp3.Call localVarCall = connectGetNamespacedPodAttachValidateBeforeCall(name, namespace, container, stderr, stdin, stdout, tty, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call connectGetNamespacedPodAttachAsync(String name, String namespace, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = connectGetNamespacedPodAttachValidateBeforeCall(name, namespace, container, stderr, stdin, stdout, tty, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APIconnectGetNamespacedPodAttachRequest {
private final String name;
private final String namespace;
private String container;
private Boolean stderr;
private Boolean stdin;
private Boolean stdout;
private Boolean tty;
private APIconnectGetNamespacedPodAttachRequest(String name, String namespace) {
this.name = name;
this.namespace = namespace;
}
/**
* Set container
* @param container The container in which to execute the command. Defaults to only container if there is only one container in the pod. (optional)
* @return APIconnectGetNamespacedPodAttachRequest
*/
public APIconnectGetNamespacedPodAttachRequest container(String container) {
this.container = container;
return this;
}
/**
* Set stderr
* @param stderr Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. (optional)
* @return APIconnectGetNamespacedPodAttachRequest
*/
public APIconnectGetNamespacedPodAttachRequest stderr(Boolean stderr) {
this.stderr = stderr;
return this;
}
/**
* Set stdin
* @param stdin Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. (optional)
* @return APIconnectGetNamespacedPodAttachRequest
*/
public APIconnectGetNamespacedPodAttachRequest stdin(Boolean stdin) {
this.stdin = stdin;
return this;
}
/**
* Set stdout
* @param stdout Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. (optional)
* @return APIconnectGetNamespacedPodAttachRequest
*/
public APIconnectGetNamespacedPodAttachRequest stdout(Boolean stdout) {
this.stdout = stdout;
return this;
}
/**
* Set tty
* @param tty TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. (optional)
* @return APIconnectGetNamespacedPodAttachRequest
*/
public APIconnectGetNamespacedPodAttachRequest tty(Boolean tty) {
this.tty = tty;
return this;
}
/**
* Build call for connectGetNamespacedPodAttach
* @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
OK
-
401
Unauthorized
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return connectGetNamespacedPodAttachCall(name, namespace, container, stderr, stdin, stdout, tty, _callback);
}
/**
* Execute connectGetNamespacedPodAttach 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
OK
-
401
Unauthorized
-
*/
public String execute() throws ApiException {
ApiResponse localVarResp = connectGetNamespacedPodAttachWithHttpInfo(name, namespace, container, stderr, stdin, stdout, tty);
return localVarResp.getData();
}
/**
* Execute connectGetNamespacedPodAttach 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
OK
-
401
Unauthorized
-
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return connectGetNamespacedPodAttachWithHttpInfo(name, namespace, container, stderr, stdin, stdout, tty);
}
/**
* Execute connectGetNamespacedPodAttach 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
OK
-
401
Unauthorized
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return connectGetNamespacedPodAttachAsync(name, namespace, container, stderr, stdin, stdout, tty, _callback);
}
}
/**
*
* connect GET requests to attach of Pod
* @param name name of the PodAttachOptions (required)
* @param namespace object name and auth scope, such as for teams and projects (required)
* @return APIconnectGetNamespacedPodAttachRequest
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
401
Unauthorized
-
*/
public APIconnectGetNamespacedPodAttachRequest connectGetNamespacedPodAttach(String name, String namespace) {
return new APIconnectGetNamespacedPodAttachRequest(name, namespace);
}
private okhttp3.Call connectGetNamespacedPodExecCall(String name, String namespace, String command, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) 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 = null;
// create path and map variables
String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/exec"
.replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString()))
.replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (command != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("command", command));
}
if (container != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("container", container));
}
if (stderr != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("stderr", stderr));
}
if (stdin != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("stdin", stdin));
}
if (stdout != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("stdout", stdout));
}
if (tty != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("tty", tty));
}
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);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "BearerToken" };
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call connectGetNamespacedPodExecValidateBeforeCall(String name, String namespace, String command, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'name' is set
if (name == null) {
throw new ApiException("Missing the required parameter 'name' when calling connectGetNamespacedPodExec(Async)");
}
// verify the required parameter 'namespace' is set
if (namespace == null) {
throw new ApiException("Missing the required parameter 'namespace' when calling connectGetNamespacedPodExec(Async)");
}
return connectGetNamespacedPodExecCall(name, namespace, command, container, stderr, stdin, stdout, tty, _callback);
}
private ApiResponse connectGetNamespacedPodExecWithHttpInfo(String name, String namespace, String command, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty) throws ApiException {
okhttp3.Call localVarCall = connectGetNamespacedPodExecValidateBeforeCall(name, namespace, command, container, stderr, stdin, stdout, tty, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call connectGetNamespacedPodExecAsync(String name, String namespace, String command, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = connectGetNamespacedPodExecValidateBeforeCall(name, namespace, command, container, stderr, stdin, stdout, tty, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APIconnectGetNamespacedPodExecRequest {
private final String name;
private final String namespace;
private String command;
private String container;
private Boolean stderr;
private Boolean stdin;
private Boolean stdout;
private Boolean tty;
private APIconnectGetNamespacedPodExecRequest(String name, String namespace) {
this.name = name;
this.namespace = namespace;
}
/**
* Set command
* @param command Command is the remote command to execute. argv array. Not executed within a shell. (optional)
* @return APIconnectGetNamespacedPodExecRequest
*/
public APIconnectGetNamespacedPodExecRequest command(String command) {
this.command = command;
return this;
}
/**
* Set container
* @param container Container in which to execute the command. Defaults to only container if there is only one container in the pod. (optional)
* @return APIconnectGetNamespacedPodExecRequest
*/
public APIconnectGetNamespacedPodExecRequest container(String container) {
this.container = container;
return this;
}
/**
* Set stderr
* @param stderr Redirect the standard error stream of the pod for this call. (optional)
* @return APIconnectGetNamespacedPodExecRequest
*/
public APIconnectGetNamespacedPodExecRequest stderr(Boolean stderr) {
this.stderr = stderr;
return this;
}
/**
* Set stdin
* @param stdin Redirect the standard input stream of the pod for this call. Defaults to false. (optional)
* @return APIconnectGetNamespacedPodExecRequest
*/
public APIconnectGetNamespacedPodExecRequest stdin(Boolean stdin) {
this.stdin = stdin;
return this;
}
/**
* Set stdout
* @param stdout Redirect the standard output stream of the pod for this call. (optional)
* @return APIconnectGetNamespacedPodExecRequest
*/
public APIconnectGetNamespacedPodExecRequest stdout(Boolean stdout) {
this.stdout = stdout;
return this;
}
/**
* Set tty
* @param tty TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. (optional)
* @return APIconnectGetNamespacedPodExecRequest
*/
public APIconnectGetNamespacedPodExecRequest tty(Boolean tty) {
this.tty = tty;
return this;
}
/**
* Build call for connectGetNamespacedPodExec
* @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
OK
-
401
Unauthorized
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return connectGetNamespacedPodExecCall(name, namespace, command, container, stderr, stdin, stdout, tty, _callback);
}
/**
* Execute connectGetNamespacedPodExec 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
OK
-
401
Unauthorized
-
*/
public String execute() throws ApiException {
ApiResponse localVarResp = connectGetNamespacedPodExecWithHttpInfo(name, namespace, command, container, stderr, stdin, stdout, tty);
return localVarResp.getData();
}
/**
* Execute connectGetNamespacedPodExec 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
OK
-
401
Unauthorized
-
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return connectGetNamespacedPodExecWithHttpInfo(name, namespace, command, container, stderr, stdin, stdout, tty);
}
/**
* Execute connectGetNamespacedPodExec 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
OK
-
401
Unauthorized
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return connectGetNamespacedPodExecAsync(name, namespace, command, container, stderr, stdin, stdout, tty, _callback);
}
}
/**
*
* connect GET requests to exec of Pod
* @param name name of the PodExecOptions (required)
* @param namespace object name and auth scope, such as for teams and projects (required)
* @return APIconnectGetNamespacedPodExecRequest
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
401
Unauthorized
-
*/
public APIconnectGetNamespacedPodExecRequest connectGetNamespacedPodExec(String name, String namespace) {
return new APIconnectGetNamespacedPodExecRequest(name, namespace);
}
private okhttp3.Call connectGetNamespacedPodPortforwardCall(String name, String namespace, Integer ports, final ApiCallback _callback) 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 = null;
// create path and map variables
String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/portforward"
.replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString()))
.replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (ports != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("ports", ports));
}
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);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "BearerToken" };
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call connectGetNamespacedPodPortforwardValidateBeforeCall(String name, String namespace, Integer ports, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'name' is set
if (name == null) {
throw new ApiException("Missing the required parameter 'name' when calling connectGetNamespacedPodPortforward(Async)");
}
// verify the required parameter 'namespace' is set
if (namespace == null) {
throw new ApiException("Missing the required parameter 'namespace' when calling connectGetNamespacedPodPortforward(Async)");
}
return connectGetNamespacedPodPortforwardCall(name, namespace, ports, _callback);
}
private ApiResponse connectGetNamespacedPodPortforwardWithHttpInfo(String name, String namespace, Integer ports) throws ApiException {
okhttp3.Call localVarCall = connectGetNamespacedPodPortforwardValidateBeforeCall(name, namespace, ports, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call connectGetNamespacedPodPortforwardAsync(String name, String namespace, Integer ports, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = connectGetNamespacedPodPortforwardValidateBeforeCall(name, namespace, ports, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APIconnectGetNamespacedPodPortforwardRequest {
private final String name;
private final String namespace;
private Integer ports;
private APIconnectGetNamespacedPodPortforwardRequest(String name, String namespace) {
this.name = name;
this.namespace = namespace;
}
/**
* Set ports
* @param ports List of ports to forward Required when using WebSockets (optional)
* @return APIconnectGetNamespacedPodPortforwardRequest
*/
public APIconnectGetNamespacedPodPortforwardRequest ports(Integer ports) {
this.ports = ports;
return this;
}
/**
* Build call for connectGetNamespacedPodPortforward
* @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
OK
-
401
Unauthorized
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return connectGetNamespacedPodPortforwardCall(name, namespace, ports, _callback);
}
/**
* Execute connectGetNamespacedPodPortforward 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
OK
-
401
Unauthorized
-
*/
public String execute() throws ApiException {
ApiResponse localVarResp = connectGetNamespacedPodPortforwardWithHttpInfo(name, namespace, ports);
return localVarResp.getData();
}
/**
* Execute connectGetNamespacedPodPortforward 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
OK
-
401
Unauthorized
-
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return connectGetNamespacedPodPortforwardWithHttpInfo(name, namespace, ports);
}
/**
* Execute connectGetNamespacedPodPortforward 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
OK
-
401
Unauthorized
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return connectGetNamespacedPodPortforwardAsync(name, namespace, ports, _callback);
}
}
/**
*
* connect GET requests to portforward of Pod
* @param name name of the PodPortForwardOptions (required)
* @param namespace object name and auth scope, such as for teams and projects (required)
* @return APIconnectGetNamespacedPodPortforwardRequest
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
401
Unauthorized
-
*/
public APIconnectGetNamespacedPodPortforwardRequest connectGetNamespacedPodPortforward(String name, String namespace) {
return new APIconnectGetNamespacedPodPortforwardRequest(name, namespace);
}
private okhttp3.Call connectGetNamespacedPodProxyCall(String name, String namespace, String path, final ApiCallback _callback) 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 = null;
// create path and map variables
String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy"
.replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString()))
.replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (path != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path));
}
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);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "BearerToken" };
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call connectGetNamespacedPodProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'name' is set
if (name == null) {
throw new ApiException("Missing the required parameter 'name' when calling connectGetNamespacedPodProxy(Async)");
}
// verify the required parameter 'namespace' is set
if (namespace == null) {
throw new ApiException("Missing the required parameter 'namespace' when calling connectGetNamespacedPodProxy(Async)");
}
return connectGetNamespacedPodProxyCall(name, namespace, path, _callback);
}
private ApiResponse connectGetNamespacedPodProxyWithHttpInfo(String name, String namespace, String path) throws ApiException {
okhttp3.Call localVarCall = connectGetNamespacedPodProxyValidateBeforeCall(name, namespace, path, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call connectGetNamespacedPodProxyAsync(String name, String namespace, String path, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = connectGetNamespacedPodProxyValidateBeforeCall(name, namespace, path, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APIconnectGetNamespacedPodProxyRequest {
private final String name;
private final String namespace;
private String path;
private APIconnectGetNamespacedPodProxyRequest(String name, String namespace) {
this.name = name;
this.namespace = namespace;
}
/**
* Set path
* @param path Path is the URL path to use for the current proxy request to pod. (optional)
* @return APIconnectGetNamespacedPodProxyRequest
*/
public APIconnectGetNamespacedPodProxyRequest path(String path) {
this.path = path;
return this;
}
/**
* Build call for connectGetNamespacedPodProxy
* @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
OK
-
401
Unauthorized
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return connectGetNamespacedPodProxyCall(name, namespace, path, _callback);
}
/**
* Execute connectGetNamespacedPodProxy 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
OK
-
401
Unauthorized
-
*/
public String execute() throws ApiException {
ApiResponse localVarResp = connectGetNamespacedPodProxyWithHttpInfo(name, namespace, path);
return localVarResp.getData();
}
/**
* Execute connectGetNamespacedPodProxy 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
OK
-
401
Unauthorized
-
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return connectGetNamespacedPodProxyWithHttpInfo(name, namespace, path);
}
/**
* Execute connectGetNamespacedPodProxy 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
OK
-
401
Unauthorized
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return connectGetNamespacedPodProxyAsync(name, namespace, path, _callback);
}
}
/**
*
* connect GET requests to proxy of Pod
* @param name name of the PodProxyOptions (required)
* @param namespace object name and auth scope, such as for teams and projects (required)
* @return APIconnectGetNamespacedPodProxyRequest
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
401
Unauthorized
-
*/
public APIconnectGetNamespacedPodProxyRequest connectGetNamespacedPodProxy(String name, String namespace) {
return new APIconnectGetNamespacedPodProxyRequest(name, namespace);
}
private okhttp3.Call connectGetNamespacedPodProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) 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 = null;
// create path and map variables
String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}"
.replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString()))
.replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString()))
.replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (path2 != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2));
}
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);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "BearerToken" };
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call connectGetNamespacedPodProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'name' is set
if (name == null) {
throw new ApiException("Missing the required parameter 'name' when calling connectGetNamespacedPodProxyWithPath(Async)");
}
// verify the required parameter 'namespace' is set
if (namespace == null) {
throw new ApiException("Missing the required parameter 'namespace' when calling connectGetNamespacedPodProxyWithPath(Async)");
}
// verify the required parameter 'path' is set
if (path == null) {
throw new ApiException("Missing the required parameter 'path' when calling connectGetNamespacedPodProxyWithPath(Async)");
}
return connectGetNamespacedPodProxyWithPathCall(name, namespace, path, path2, _callback);
}
private ApiResponse connectGetNamespacedPodProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException {
okhttp3.Call localVarCall = connectGetNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call connectGetNamespacedPodProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = connectGetNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APIconnectGetNamespacedPodProxyWithPathRequest {
private final String name;
private final String namespace;
private final String path;
private String path2;
private APIconnectGetNamespacedPodProxyWithPathRequest(String name, String namespace, String path) {
this.name = name;
this.namespace = namespace;
this.path = path;
}
/**
* Set path2
* @param path2 Path is the URL path to use for the current proxy request to pod. (optional)
* @return APIconnectGetNamespacedPodProxyWithPathRequest
*/
public APIconnectGetNamespacedPodProxyWithPathRequest path2(String path2) {
this.path2 = path2;
return this;
}
/**
* Build call for connectGetNamespacedPodProxyWithPath
* @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
OK
-
401
Unauthorized
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return connectGetNamespacedPodProxyWithPathCall(name, namespace, path, path2, _callback);
}
/**
* Execute connectGetNamespacedPodProxyWithPath 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
OK
-
401
Unauthorized
-
*/
public String execute() throws ApiException {
ApiResponse localVarResp = connectGetNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2);
return localVarResp.getData();
}
/**
* Execute connectGetNamespacedPodProxyWithPath 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
OK
-
401
Unauthorized
-
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return connectGetNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2);
}
/**
* Execute connectGetNamespacedPodProxyWithPath 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
OK
-
401
Unauthorized
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return connectGetNamespacedPodProxyWithPathAsync(name, namespace, path, path2, _callback);
}
}
/**
*
* connect GET requests to proxy of Pod
* @param name name of the PodProxyOptions (required)
* @param namespace object name and auth scope, such as for teams and projects (required)
* @param path path to the resource (required)
* @return APIconnectGetNamespacedPodProxyWithPathRequest
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
401
Unauthorized
-
*/
public APIconnectGetNamespacedPodProxyWithPathRequest connectGetNamespacedPodProxyWithPath(String name, String namespace, String path) {
return new APIconnectGetNamespacedPodProxyWithPathRequest(name, namespace, path);
}
private okhttp3.Call connectGetNamespacedServiceProxyCall(String name, String namespace, String path, final ApiCallback _callback) 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 = null;
// create path and map variables
String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy"
.replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString()))
.replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (path != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path));
}
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);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "BearerToken" };
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call connectGetNamespacedServiceProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'name' is set
if (name == null) {
throw new ApiException("Missing the required parameter 'name' when calling connectGetNamespacedServiceProxy(Async)");
}
// verify the required parameter 'namespace' is set
if (namespace == null) {
throw new ApiException("Missing the required parameter 'namespace' when calling connectGetNamespacedServiceProxy(Async)");
}
return connectGetNamespacedServiceProxyCall(name, namespace, path, _callback);
}
private ApiResponse connectGetNamespacedServiceProxyWithHttpInfo(String name, String namespace, String path) throws ApiException {
okhttp3.Call localVarCall = connectGetNamespacedServiceProxyValidateBeforeCall(name, namespace, path, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call connectGetNamespacedServiceProxyAsync(String name, String namespace, String path, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = connectGetNamespacedServiceProxyValidateBeforeCall(name, namespace, path, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APIconnectGetNamespacedServiceProxyRequest {
private final String name;
private final String namespace;
private String path;
private APIconnectGetNamespacedServiceProxyRequest(String name, String namespace) {
this.name = name;
this.namespace = namespace;
}
/**
* Set path
* @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional)
* @return APIconnectGetNamespacedServiceProxyRequest
*/
public APIconnectGetNamespacedServiceProxyRequest path(String path) {
this.path = path;
return this;
}
/**
* Build call for connectGetNamespacedServiceProxy
* @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
OK
-
401
Unauthorized
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return connectGetNamespacedServiceProxyCall(name, namespace, path, _callback);
}
/**
* Execute connectGetNamespacedServiceProxy 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
OK
-
401
Unauthorized
-
*/
public String execute() throws ApiException {
ApiResponse localVarResp = connectGetNamespacedServiceProxyWithHttpInfo(name, namespace, path);
return localVarResp.getData();
}
/**
* Execute connectGetNamespacedServiceProxy 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
OK
-
401
Unauthorized
-
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return connectGetNamespacedServiceProxyWithHttpInfo(name, namespace, path);
}
/**
* Execute connectGetNamespacedServiceProxy 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
OK
-
401
Unauthorized
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return connectGetNamespacedServiceProxyAsync(name, namespace, path, _callback);
}
}
/**
*
* connect GET requests to proxy of Service
* @param name name of the ServiceProxyOptions (required)
* @param namespace object name and auth scope, such as for teams and projects (required)
* @return APIconnectGetNamespacedServiceProxyRequest
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
401
Unauthorized
-
*/
public APIconnectGetNamespacedServiceProxyRequest connectGetNamespacedServiceProxy(String name, String namespace) {
return new APIconnectGetNamespacedServiceProxyRequest(name, namespace);
}
private okhttp3.Call connectGetNamespacedServiceProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) 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 = null;
// create path and map variables
String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}"
.replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString()))
.replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString()))
.replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (path2 != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2));
}
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);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "BearerToken" };
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call connectGetNamespacedServiceProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'name' is set
if (name == null) {
throw new ApiException("Missing the required parameter 'name' when calling connectGetNamespacedServiceProxyWithPath(Async)");
}
// verify the required parameter 'namespace' is set
if (namespace == null) {
throw new ApiException("Missing the required parameter 'namespace' when calling connectGetNamespacedServiceProxyWithPath(Async)");
}
// verify the required parameter 'path' is set
if (path == null) {
throw new ApiException("Missing the required parameter 'path' when calling connectGetNamespacedServiceProxyWithPath(Async)");
}
return connectGetNamespacedServiceProxyWithPathCall(name, namespace, path, path2, _callback);
}
private ApiResponse connectGetNamespacedServiceProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException {
okhttp3.Call localVarCall = connectGetNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call connectGetNamespacedServiceProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = connectGetNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APIconnectGetNamespacedServiceProxyWithPathRequest {
private final String name;
private final String namespace;
private final String path;
private String path2;
private APIconnectGetNamespacedServiceProxyWithPathRequest(String name, String namespace, String path) {
this.name = name;
this.namespace = namespace;
this.path = path;
}
/**
* Set path2
* @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional)
* @return APIconnectGetNamespacedServiceProxyWithPathRequest
*/
public APIconnectGetNamespacedServiceProxyWithPathRequest path2(String path2) {
this.path2 = path2;
return this;
}
/**
* Build call for connectGetNamespacedServiceProxyWithPath
* @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
OK
-
401
Unauthorized
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return connectGetNamespacedServiceProxyWithPathCall(name, namespace, path, path2, _callback);
}
/**
* Execute connectGetNamespacedServiceProxyWithPath 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
OK
-
401
Unauthorized
-
*/
public String execute() throws ApiException {
ApiResponse localVarResp = connectGetNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2);
return localVarResp.getData();
}
/**
* Execute connectGetNamespacedServiceProxyWithPath 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
OK
-
401
Unauthorized
-
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return connectGetNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2);
}
/**
* Execute connectGetNamespacedServiceProxyWithPath 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
OK
-
401
Unauthorized
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return connectGetNamespacedServiceProxyWithPathAsync(name, namespace, path, path2, _callback);
}
}
/**
*
* connect GET requests to proxy of Service
* @param name name of the ServiceProxyOptions (required)
* @param namespace object name and auth scope, such as for teams and projects (required)
* @param path path to the resource (required)
* @return APIconnectGetNamespacedServiceProxyWithPathRequest
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
401
Unauthorized
-
*/
public APIconnectGetNamespacedServiceProxyWithPathRequest connectGetNamespacedServiceProxyWithPath(String name, String namespace, String path) {
return new APIconnectGetNamespacedServiceProxyWithPathRequest(name, namespace, path);
}
private okhttp3.Call connectGetNodeProxyCall(String name, String path, final ApiCallback _callback) 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 = null;
// create path and map variables
String localVarPath = "/api/v1/nodes/{name}/proxy"
.replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (path != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path));
}
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);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "BearerToken" };
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call connectGetNodeProxyValidateBeforeCall(String name, String path, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'name' is set
if (name == null) {
throw new ApiException("Missing the required parameter 'name' when calling connectGetNodeProxy(Async)");
}
return connectGetNodeProxyCall(name, path, _callback);
}
private ApiResponse connectGetNodeProxyWithHttpInfo(String name, String path) throws ApiException {
okhttp3.Call localVarCall = connectGetNodeProxyValidateBeforeCall(name, path, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call connectGetNodeProxyAsync(String name, String path, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = connectGetNodeProxyValidateBeforeCall(name, path, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APIconnectGetNodeProxyRequest {
private final String name;
private String path;
private APIconnectGetNodeProxyRequest(String name) {
this.name = name;
}
/**
* Set path
* @param path Path is the URL path to use for the current proxy request to node. (optional)
* @return APIconnectGetNodeProxyRequest
*/
public APIconnectGetNodeProxyRequest path(String path) {
this.path = path;
return this;
}
/**
* Build call for connectGetNodeProxy
* @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
OK
-
401
Unauthorized
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return connectGetNodeProxyCall(name, path, _callback);
}
/**
* Execute connectGetNodeProxy 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
OK
-
401
Unauthorized
-
*/
public String execute() throws ApiException {
ApiResponse localVarResp = connectGetNodeProxyWithHttpInfo(name, path);
return localVarResp.getData();
}
/**
* Execute connectGetNodeProxy 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
OK
-
401
Unauthorized
-
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return connectGetNodeProxyWithHttpInfo(name, path);
}
/**
* Execute connectGetNodeProxy 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
OK
-
401
Unauthorized
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return connectGetNodeProxyAsync(name, path, _callback);
}
}
/**
*
* connect GET requests to proxy of Node
* @param name name of the NodeProxyOptions (required)
* @return APIconnectGetNodeProxyRequest
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
401
Unauthorized
-
*/
public APIconnectGetNodeProxyRequest connectGetNodeProxy(String name) {
return new APIconnectGetNodeProxyRequest(name);
}
private okhttp3.Call connectGetNodeProxyWithPathCall(String name, String path, String path2, final ApiCallback _callback) 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 = null;
// create path and map variables
String localVarPath = "/api/v1/nodes/{name}/proxy/{path}"
.replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString()))
.replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (path2 != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2));
}
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);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "BearerToken" };
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call connectGetNodeProxyWithPathValidateBeforeCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'name' is set
if (name == null) {
throw new ApiException("Missing the required parameter 'name' when calling connectGetNodeProxyWithPath(Async)");
}
// verify the required parameter 'path' is set
if (path == null) {
throw new ApiException("Missing the required parameter 'path' when calling connectGetNodeProxyWithPath(Async)");
}
return connectGetNodeProxyWithPathCall(name, path, path2, _callback);
}
private ApiResponse connectGetNodeProxyWithPathWithHttpInfo(String name, String path, String path2) throws ApiException {
okhttp3.Call localVarCall = connectGetNodeProxyWithPathValidateBeforeCall(name, path, path2, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call connectGetNodeProxyWithPathAsync(String name, String path, String path2, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = connectGetNodeProxyWithPathValidateBeforeCall(name, path, path2, _callback);
Type localVarReturnType = new TypeToken