Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
Copyright 2021 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package io.kubernetes.client.openapi.apis;
import com.google.gson.reflect.TypeToken;
import io.kubernetes.client.custom.V1Patch;
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.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.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.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 io.kubernetes.client.openapi.models.V1beta1Eviction;
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;
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;
}
/**
* Build call for connectDeleteNamespacedPodProxy
*
* @param name name of the PodProxyOptions (required)
* @param namespace object name and auth scope, such as for teams and projects (required)
* @param path Path is the URL path to use for the current proxy request to pod. (optional)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
*
*
Status Code
Description
Response Headers
*
200
OK
-
*
401
Unauthorized
-
*
*/
public okhttp3.Call connectDeleteNamespacedPodProxyCall(
String name, String namespace, String path, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath =
"/api/v1/namespaces/{namespace}/pods/{name}/proxy"
.replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString()))
.replaceAll(
"\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
if (path != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path));
}
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {"*/*"};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {};
final String localVarContentType =
localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] {"BearerToken"};
return localVarApiClient.buildCall(
localVarPath,
"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)");
}
okhttp3.Call localVarCall =
connectDeleteNamespacedPodProxyCall(name, namespace, path, _callback);
return localVarCall;
}
/**
* 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 is the URL path to use for the current proxy request to pod. (optional)
* @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 connectDeleteNamespacedPodProxy(String name, String namespace, String path)
throws ApiException {
ApiResponse localVarResp =
connectDeleteNamespacedPodProxyWithHttpInfo(name, namespace, path);
return localVarResp.getData();
}
/**
* 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 is the URL path to use for the current proxy request to pod. (optional)
* @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 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);
}
/**
* (asynchronously) 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 is the URL path to use for the current proxy request to pod. (optional)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
*
*
Status Code
Description
Response Headers
*
200
OK
-
*
401
Unauthorized
-
*
*/
public 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;
}
/**
* Build call for connectDeleteNamespacedPodProxyWithPath
*
* @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)
* @param path2 Path is the URL path to use for the current proxy request to pod. (optional)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
*
*
Status Code
Description
Response Headers
*
200
OK
-
*
401
Unauthorized
-
*
*/
public okhttp3.Call connectDeleteNamespacedPodProxyWithPathCall(
String name, String namespace, String path, String path2, final ApiCallback _callback)
throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath =
"/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}"
.replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString()))
.replaceAll(
"\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString()))
.replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
if (path2 != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2));
}
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {"*/*"};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {};
final String localVarContentType =
localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] {"BearerToken"};
return localVarApiClient.buildCall(
localVarPath,
"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)");
}
okhttp3.Call localVarCall =
connectDeleteNamespacedPodProxyWithPathCall(name, namespace, path, path2, _callback);
return localVarCall;
}
/**
* 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)
* @param path2 Path is the URL path to use for the current proxy request to pod. (optional)
* @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 connectDeleteNamespacedPodProxyWithPath(
String name, String namespace, String path, String path2) throws ApiException {
ApiResponse localVarResp =
connectDeleteNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2);
return localVarResp.getData();
}
/**
* 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)
* @param path2 Path is the URL path to use for the current proxy request to pod. (optional)
* @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 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);
}
/**
* (asynchronously) 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)
* @param path2 Path is the URL path to use for the current proxy request to pod. (optional)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
*
*
Status Code
Description
Response Headers
*
200
OK
-
*
401
Unauthorized
-
*
*/
public 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;
}
/**
* Build call for connectDeleteNamespacedServiceProxy
*
* @param name name of the ServiceProxyOptions (required)
* @param namespace object name and auth scope, such as for teams and projects (required)
* @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)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
*
*
Status Code
Description
Response Headers
*
200
OK
-
*
401
Unauthorized
-
*
*/
public okhttp3.Call connectDeleteNamespacedServiceProxyCall(
String name, String namespace, String path, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath =
"/api/v1/namespaces/{namespace}/services/{name}/proxy"
.replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString()))
.replaceAll(
"\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
if (path != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path));
}
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {"*/*"};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {};
final String localVarContentType =
localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] {"BearerToken"};
return localVarApiClient.buildCall(
localVarPath,
"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)");
}
okhttp3.Call localVarCall =
connectDeleteNamespacedServiceProxyCall(name, namespace, path, _callback);
return localVarCall;
}
/**
* 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 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 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 connectDeleteNamespacedServiceProxy(String name, String namespace, String path)
throws ApiException {
ApiResponse localVarResp =
connectDeleteNamespacedServiceProxyWithHttpInfo(name, namespace, path);
return localVarResp.getData();
}
/**
* 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 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 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 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);
}
/**
* (asynchronously) 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 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)
* @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 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;
}
/**
* Build call for connectDeleteNamespacedServiceProxyWithPath
*
* @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)
* @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)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
*
*
Status Code
Description
Response Headers
*
200
OK
-
*
401
Unauthorized
-
*
*/
public okhttp3.Call connectDeleteNamespacedServiceProxyWithPathCall(
String name, String namespace, String path, String path2, final ApiCallback _callback)
throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath =
"/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}"
.replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString()))
.replaceAll(
"\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString()))
.replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
if (path2 != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2));
}
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {"*/*"};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {};
final String localVarContentType =
localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] {"BearerToken"};
return localVarApiClient.buildCall(
localVarPath,
"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)");
}
okhttp3.Call localVarCall =
connectDeleteNamespacedServiceProxyWithPathCall(name, namespace, path, path2, _callback);
return localVarCall;
}
/**
* 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)
* @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 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 connectDeleteNamespacedServiceProxyWithPath(
String name, String namespace, String path, String path2) throws ApiException {
ApiResponse localVarResp =
connectDeleteNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2);
return localVarResp.getData();
}
/**
* 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)
* @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 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 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);
}
/**
* (asynchronously) 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)
* @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)
* @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 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;
}
/**
* Build call for connectDeleteNodeProxy
*
* @param name name of the NodeProxyOptions (required)
* @param path Path is the URL path to use for the current proxy request to node. (optional)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
*
*
Status Code
Description
Response Headers
*
200
OK
-
*
401
Unauthorized
-
*
*/
public okhttp3.Call connectDeleteNodeProxyCall(
String name, String path, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath =
"/api/v1/nodes/{name}/proxy"
.replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
if (path != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path));
}
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {"*/*"};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {};
final String localVarContentType =
localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] {"BearerToken"};
return localVarApiClient.buildCall(
localVarPath,
"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)");
}
okhttp3.Call localVarCall = connectDeleteNodeProxyCall(name, path, _callback);
return localVarCall;
}
/**
* connect DELETE requests to proxy of Node
*
* @param name name of the NodeProxyOptions (required)
* @param path Path is the URL path to use for the current proxy request to node. (optional)
* @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 connectDeleteNodeProxy(String name, String path) throws ApiException {
ApiResponse localVarResp = connectDeleteNodeProxyWithHttpInfo(name, path);
return localVarResp.getData();
}
/**
* connect DELETE requests to proxy of Node
*
* @param name name of the NodeProxyOptions (required)
* @param path Path is the URL path to use for the current proxy request to node. (optional)
* @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 connectDeleteNodeProxyWithHttpInfo(String name, String path)
throws ApiException {
okhttp3.Call localVarCall = connectDeleteNodeProxyValidateBeforeCall(name, path, null);
Type localVarReturnType = new TypeToken() {}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* (asynchronously) connect DELETE requests to proxy of Node
*
* @param name name of the NodeProxyOptions (required)
* @param path Path is the URL path to use for the current proxy request to node. (optional)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
*
*
Status Code
Description
Response Headers
*
200
OK
-
*
401
Unauthorized
-
*
*/
public 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;
}
/**
* Build call for connectDeleteNodeProxyWithPath
*
* @param name name of the NodeProxyOptions (required)
* @param path path to the resource (required)
* @param path2 Path is the URL path to use for the current proxy request to node. (optional)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
*
*
Status Code
Description
Response Headers
*
200
OK
-
*
401
Unauthorized
-
*
*/
public okhttp3.Call connectDeleteNodeProxyWithPathCall(
String name, String path, String path2, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath =
"/api/v1/nodes/{name}/proxy/{path}"
.replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString()))
.replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
if (path2 != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2));
}
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {"*/*"};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {};
final String localVarContentType =
localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] {"BearerToken"};
return localVarApiClient.buildCall(
localVarPath,
"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)");
}
okhttp3.Call localVarCall = connectDeleteNodeProxyWithPathCall(name, path, path2, _callback);
return localVarCall;
}
/**
* connect DELETE requests to proxy of Node
*
* @param name name of the NodeProxyOptions (required)
* @param path path to the resource (required)
* @param path2 Path is the URL path to use for the current proxy request to node. (optional)
* @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 connectDeleteNodeProxyWithPath(String name, String path, String path2)
throws ApiException {
ApiResponse localVarResp =
connectDeleteNodeProxyWithPathWithHttpInfo(name, path, path2);
return localVarResp.getData();
}
/**
* connect DELETE requests to proxy of Node
*
* @param name name of the NodeProxyOptions (required)
* @param path path to the resource (required)
* @param path2 Path is the URL path to use for the current proxy request to node. (optional)
* @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 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);
}
/**
* (asynchronously) connect DELETE requests to proxy of Node
*
* @param name name of the NodeProxyOptions (required)
* @param path path to the resource (required)
* @param path2 Path is the URL path to use for the current proxy request to node. (optional)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
*
*
Status Code
Description
Response Headers
*
200
OK
-
*
401
Unauthorized
-
*
*/
public 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;
}
/**
* Build call for connectGetNamespacedPodAttach
*
* @param name name of the PodAttachOptions (required)
* @param namespace object name and auth scope, such as for teams and projects (required)
* @param container The container in which to execute the command. Defaults to only container if
* there is only one container in the pod. (optional)
* @param stderr Stderr if true indicates that stderr is to be redirected for the attach call.
* Defaults to true. (optional)
* @param stdin Stdin if true, redirects the standard input stream of the pod for this call.
* Defaults to false. (optional)
* @param stdout Stdout if true indicates that stdout is to be redirected for the attach call.
* Defaults to true. (optional)
* @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)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
*
*
Status Code
Description
Response Headers
*
200
OK
-
*
401
Unauthorized
-
*
*/
public okhttp3.Call connectGetNamespacedPodAttachCall(
String name,
String namespace,
String container,
Boolean stderr,
Boolean stdin,
Boolean stdout,
Boolean tty,
final ApiCallback _callback)
throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath =
"/api/v1/namespaces/{namespace}/pods/{name}/attach"
.replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString()))
.replaceAll(
"\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
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));
}
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {"*/*"};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {};
final String localVarContentType =
localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] {"BearerToken"};
return localVarApiClient.buildCall(
localVarPath,
"GET",
localVarQueryParams,
localVarCollectionQueryParams,
localVarPostBody,
localVarHeaderParams,
localVarCookieParams,
localVarFormParams,
localVarAuthNames,
_callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call 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)");
}
okhttp3.Call localVarCall =
connectGetNamespacedPodAttachCall(
name, namespace, container, stderr, stdin, stdout, tty, _callback);
return localVarCall;
}
/**
* 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)
* @param container The container in which to execute the command. Defaults to only container if
* there is only one container in the pod. (optional)
* @param stderr Stderr if true indicates that stderr is to be redirected for the attach call.
* Defaults to true. (optional)
* @param stdin Stdin if true, redirects the standard input stream of the pod for this call.
* Defaults to false. (optional)
* @param stdout Stdout if true indicates that stdout is to be redirected for the attach call.
* Defaults to true. (optional)
* @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 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 connectGetNamespacedPodAttach(
String name,
String namespace,
String container,
Boolean stderr,
Boolean stdin,
Boolean stdout,
Boolean tty)
throws ApiException {
ApiResponse localVarResp =
connectGetNamespacedPodAttachWithHttpInfo(
name, namespace, container, stderr, stdin, stdout, tty);
return localVarResp.getData();
}
/**
* 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)
* @param container The container in which to execute the command. Defaults to only container if
* there is only one container in the pod. (optional)
* @param stderr Stderr if true indicates that stderr is to be redirected for the attach call.
* Defaults to true. (optional)
* @param stdin Stdin if true, redirects the standard input stream of the pod for this call.
* Defaults to false. (optional)
* @param stdout Stdout if true indicates that stdout is to be redirected for the attach call.
* Defaults to true. (optional)
* @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 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 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);
}
/**
* (asynchronously) 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)
* @param container The container in which to execute the command. Defaults to only container if
* there is only one container in the pod. (optional)
* @param stderr Stderr if true indicates that stderr is to be redirected for the attach call.
* Defaults to true. (optional)
* @param stdin Stdin if true, redirects the standard input stream of the pod for this call.
* Defaults to false. (optional)
* @param stdout Stdout if true indicates that stdout is to be redirected for the attach call.
* Defaults to true. (optional)
* @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)
* @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 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;
}
/**
* Build call for connectGetNamespacedPodExec
*
* @param name name of the PodExecOptions (required)
* @param namespace object name and auth scope, such as for teams and projects (required)
* @param command Command is the remote command to execute. argv array. Not executed within a
* shell. (optional)
* @param container Container in which to execute the command. Defaults to only container if there
* is only one container in the pod. (optional)
* @param stderr Redirect the standard error stream of the pod for this call. Defaults to true.
* (optional)
* @param stdin Redirect the standard input stream of the pod for this call. Defaults to false.
* (optional)
* @param stdout Redirect the standard output stream of the pod for this call. Defaults to true.
* (optional)
* @param tty TTY if true indicates that a tty will be allocated for the exec call. Defaults to
* false. (optional)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
*
*
Status Code
Description
Response Headers
*
200
OK
-
*
401
Unauthorized
-
*
*/
public okhttp3.Call connectGetNamespacedPodExecCall(
String name,
String namespace,
String command,
String container,
Boolean stderr,
Boolean stdin,
Boolean stdout,
Boolean tty,
final ApiCallback _callback)
throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath =
"/api/v1/namespaces/{namespace}/pods/{name}/exec"
.replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString()))
.replaceAll(
"\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
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));
}
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {"*/*"};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {};
final String localVarContentType =
localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] {"BearerToken"};
return localVarApiClient.buildCall(
localVarPath,
"GET",
localVarQueryParams,
localVarCollectionQueryParams,
localVarPostBody,
localVarHeaderParams,
localVarCookieParams,
localVarFormParams,
localVarAuthNames,
_callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call 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)");
}
okhttp3.Call localVarCall =
connectGetNamespacedPodExecCall(
name, namespace, command, container, stderr, stdin, stdout, tty, _callback);
return localVarCall;
}
/**
* 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)
* @param command Command is the remote command to execute. argv array. Not executed within a
* shell. (optional)
* @param container Container in which to execute the command. Defaults to only container if there
* is only one container in the pod. (optional)
* @param stderr Redirect the standard error stream of the pod for this call. Defaults to true.
* (optional)
* @param stdin Redirect the standard input stream of the pod for this call. Defaults to false.
* (optional)
* @param stdout Redirect the standard output stream of the pod for this call. Defaults to true.
* (optional)
* @param tty TTY if true indicates that a tty will be allocated for the exec call. Defaults to
* false. (optional)
* @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 connectGetNamespacedPodExec(
String name,
String namespace,
String command,
String container,
Boolean stderr,
Boolean stdin,
Boolean stdout,
Boolean tty)
throws ApiException {
ApiResponse localVarResp =
connectGetNamespacedPodExecWithHttpInfo(
name, namespace, command, container, stderr, stdin, stdout, tty);
return localVarResp.getData();
}
/**
* 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)
* @param command Command is the remote command to execute. argv array. Not executed within a
* shell. (optional)
* @param container Container in which to execute the command. Defaults to only container if there
* is only one container in the pod. (optional)
* @param stderr Redirect the standard error stream of the pod for this call. Defaults to true.
* (optional)
* @param stdin Redirect the standard input stream of the pod for this call. Defaults to false.
* (optional)
* @param stdout Redirect the standard output stream of the pod for this call. Defaults to true.
* (optional)
* @param tty TTY if true indicates that a tty will be allocated for the exec call. Defaults to
* false. (optional)
* @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 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);
}
/**
* (asynchronously) 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)
* @param command Command is the remote command to execute. argv array. Not executed within a
* shell. (optional)
* @param container Container in which to execute the command. Defaults to only container if there
* is only one container in the pod. (optional)
* @param stderr Redirect the standard error stream of the pod for this call. Defaults to true.
* (optional)
* @param stdin Redirect the standard input stream of the pod for this call. Defaults to false.
* (optional)
* @param stdout Redirect the standard output stream of the pod for this call. Defaults to true.
* (optional)
* @param tty TTY if true indicates that a tty will be allocated for the exec call. Defaults to
* false. (optional)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
*
*
Status Code
Description
Response Headers
*
200
OK
-
*
401
Unauthorized
-
*
*/
public 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;
}
/**
* Build call for connectGetNamespacedPodPortforward
*
* @param name name of the PodPortForwardOptions (required)
* @param namespace object name and auth scope, such as for teams and projects (required)
* @param ports List of ports to forward Required when using WebSockets (optional)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
*
*
Status Code
Description
Response Headers
*
200
OK
-
*
401
Unauthorized
-
*
*/
public okhttp3.Call connectGetNamespacedPodPortforwardCall(
String name, String namespace, Integer ports, final ApiCallback _callback)
throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath =
"/api/v1/namespaces/{namespace}/pods/{name}/portforward"
.replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString()))
.replaceAll(
"\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
if (ports != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("ports", ports));
}
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {"*/*"};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {};
final String localVarContentType =
localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] {"BearerToken"};
return localVarApiClient.buildCall(
localVarPath,
"GET",
localVarQueryParams,
localVarCollectionQueryParams,
localVarPostBody,
localVarHeaderParams,
localVarCookieParams,
localVarFormParams,
localVarAuthNames,
_callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call 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)");
}
okhttp3.Call localVarCall =
connectGetNamespacedPodPortforwardCall(name, namespace, ports, _callback);
return localVarCall;
}
/**
* 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)
* @param ports List of ports to forward Required when using WebSockets (optional)
* @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 connectGetNamespacedPodPortforward(String name, String namespace, Integer ports)
throws ApiException {
ApiResponse localVarResp =
connectGetNamespacedPodPortforwardWithHttpInfo(name, namespace, ports);
return localVarResp.getData();
}
/**
* 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)
* @param ports List of ports to forward Required when using WebSockets (optional)
* @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 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);
}
/**
* (asynchronously) 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)
* @param ports List of ports to forward Required when using WebSockets (optional)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
*
*
Status Code
Description
Response Headers
*
200
OK
-
*
401
Unauthorized
-
*
*/
public 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;
}
/**
* Build call for connectGetNamespacedPodProxy
*
* @param name name of the PodProxyOptions (required)
* @param namespace object name and auth scope, such as for teams and projects (required)
* @param path Path is the URL path to use for the current proxy request to pod. (optional)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
*
*
Status Code
Description
Response Headers
*
200
OK
-
*
401
Unauthorized
-
*
*/
public okhttp3.Call connectGetNamespacedPodProxyCall(
String name, String namespace, String path, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath =
"/api/v1/namespaces/{namespace}/pods/{name}/proxy"
.replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString()))
.replaceAll(
"\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
if (path != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path));
}
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {"*/*"};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {};
final String localVarContentType =
localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] {"BearerToken"};
return localVarApiClient.buildCall(
localVarPath,
"GET",
localVarQueryParams,
localVarCollectionQueryParams,
localVarPostBody,
localVarHeaderParams,
localVarCookieParams,
localVarFormParams,
localVarAuthNames,
_callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call 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)");
}
okhttp3.Call localVarCall = connectGetNamespacedPodProxyCall(name, namespace, path, _callback);
return localVarCall;
}
/**
* 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 is the URL path to use for the current proxy request to pod. (optional)
* @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 connectGetNamespacedPodProxy(String name, String namespace, String path)
throws ApiException {
ApiResponse localVarResp =
connectGetNamespacedPodProxyWithHttpInfo(name, namespace, path);
return localVarResp.getData();
}
/**
* 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 is the URL path to use for the current proxy request to pod. (optional)
* @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 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);
}
/**
* (asynchronously) 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 is the URL path to use for the current proxy request to pod. (optional)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
*
*
Status Code
Description
Response Headers
*
200
OK
-
*
401
Unauthorized
-
*
*/
public 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;
}
/**
* Build call for connectGetNamespacedPodProxyWithPath
*
* @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)
* @param path2 Path is the URL path to use for the current proxy request to pod. (optional)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
*
*
Status Code
Description
Response Headers
*
200
OK
-
*
401
Unauthorized
-
*
*/
public okhttp3.Call connectGetNamespacedPodProxyWithPathCall(
String name, String namespace, String path, String path2, final ApiCallback _callback)
throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath =
"/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}"
.replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString()))
.replaceAll(
"\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString()))
.replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
if (path2 != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2));
}
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {"*/*"};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {};
final String localVarContentType =
localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] {"BearerToken"};
return localVarApiClient.buildCall(
localVarPath,
"GET",
localVarQueryParams,
localVarCollectionQueryParams,
localVarPostBody,
localVarHeaderParams,
localVarCookieParams,
localVarFormParams,
localVarAuthNames,
_callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call 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)");
}
okhttp3.Call localVarCall =
connectGetNamespacedPodProxyWithPathCall(name, namespace, path, path2, _callback);
return localVarCall;
}
/**
* 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)
* @param path2 Path is the URL path to use for the current proxy request to pod. (optional)
* @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 connectGetNamespacedPodProxyWithPath(
String name, String namespace, String path, String path2) throws ApiException {
ApiResponse localVarResp =
connectGetNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2);
return localVarResp.getData();
}
/**
* 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)
* @param path2 Path is the URL path to use for the current proxy request to pod. (optional)
* @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 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);
}
/**
* (asynchronously) 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)
* @param path2 Path is the URL path to use for the current proxy request to pod. (optional)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
*
*
Status Code
Description
Response Headers
*
200
OK
-
*
401
Unauthorized
-
*
*/
public 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;
}
/**
* Build call for connectGetNamespacedServiceProxy
*
* @param name name of the ServiceProxyOptions (required)
* @param namespace object name and auth scope, such as for teams and projects (required)
* @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)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
*
*
Status Code
Description
Response Headers
*
200
OK
-
*
401
Unauthorized
-
*
*/
public okhttp3.Call connectGetNamespacedServiceProxyCall(
String name, String namespace, String path, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath =
"/api/v1/namespaces/{namespace}/services/{name}/proxy"
.replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString()))
.replaceAll(
"\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
if (path != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path));
}
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {"*/*"};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {};
final String localVarContentType =
localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] {"BearerToken"};
return localVarApiClient.buildCall(
localVarPath,
"GET",
localVarQueryParams,
localVarCollectionQueryParams,
localVarPostBody,
localVarHeaderParams,
localVarCookieParams,
localVarFormParams,
localVarAuthNames,
_callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call 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)");
}
okhttp3.Call localVarCall =
connectGetNamespacedServiceProxyCall(name, namespace, path, _callback);
return localVarCall;
}
/**
* 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 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 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 connectGetNamespacedServiceProxy(String name, String namespace, String path)
throws ApiException {
ApiResponse localVarResp =
connectGetNamespacedServiceProxyWithHttpInfo(name, namespace, path);
return localVarResp.getData();
}
/**
* 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 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 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 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);
}
/**
* (asynchronously) 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 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)
* @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 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;
}
/**
* Build call for connectGetNamespacedServiceProxyWithPath
*
* @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)
* @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)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
*
*
Status Code
Description
Response Headers
*
200
OK
-
*
401
Unauthorized
-
*
*/
public okhttp3.Call connectGetNamespacedServiceProxyWithPathCall(
String name, String namespace, String path, String path2, final ApiCallback _callback)
throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath =
"/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}"
.replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString()))
.replaceAll(
"\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString()))
.replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
if (path2 != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2));
}
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {"*/*"};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {};
final String localVarContentType =
localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] {"BearerToken"};
return localVarApiClient.buildCall(
localVarPath,
"GET",
localVarQueryParams,
localVarCollectionQueryParams,
localVarPostBody,
localVarHeaderParams,
localVarCookieParams,
localVarFormParams,
localVarAuthNames,
_callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call 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)");
}
okhttp3.Call localVarCall =
connectGetNamespacedServiceProxyWithPathCall(name, namespace, path, path2, _callback);
return localVarCall;
}
/**
* 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)
* @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 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 connectGetNamespacedServiceProxyWithPath(
String name, String namespace, String path, String path2) throws ApiException {
ApiResponse localVarResp =
connectGetNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2);
return localVarResp.getData();
}
/**
* 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)
* @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 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 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);
}
/**
* (asynchronously) 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)
* @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)
* @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 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;
}
/**
* Build call for connectGetNodeProxy
*
* @param name name of the NodeProxyOptions (required)
* @param path Path is the URL path to use for the current proxy request to node. (optional)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
*
*
Status Code
Description
Response Headers
*
200
OK
-
*
401
Unauthorized
-
*
*/
public okhttp3.Call connectGetNodeProxyCall(String name, String path, final ApiCallback _callback)
throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath =
"/api/v1/nodes/{name}/proxy"
.replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
if (path != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path));
}
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {"*/*"};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {};
final String localVarContentType =
localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] {"BearerToken"};
return localVarApiClient.buildCall(
localVarPath,
"GET",
localVarQueryParams,
localVarCollectionQueryParams,
localVarPostBody,
localVarHeaderParams,
localVarCookieParams,
localVarFormParams,
localVarAuthNames,
_callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call 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)");
}
okhttp3.Call localVarCall = connectGetNodeProxyCall(name, path, _callback);
return localVarCall;
}
/**
* connect GET requests to proxy of Node
*
* @param name name of the NodeProxyOptions (required)
* @param path Path is the URL path to use for the current proxy request to node. (optional)
* @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 connectGetNodeProxy(String name, String path) throws ApiException {
ApiResponse localVarResp = connectGetNodeProxyWithHttpInfo(name, path);
return localVarResp.getData();
}
/**
* connect GET requests to proxy of Node
*
* @param name name of the NodeProxyOptions (required)
* @param path Path is the URL path to use for the current proxy request to node. (optional)
* @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 connectGetNodeProxyWithHttpInfo(String name, String path)
throws ApiException {
okhttp3.Call localVarCall = connectGetNodeProxyValidateBeforeCall(name, path, null);
Type localVarReturnType = new TypeToken() {}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* (asynchronously) connect GET requests to proxy of Node
*
* @param name name of the NodeProxyOptions (required)
* @param path Path is the URL path to use for the current proxy request to node. (optional)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
*
*
Status Code
Description
Response Headers
*
200
OK
-
*
401
Unauthorized
-
*
*/
public 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;
}
/**
* Build call for connectGetNodeProxyWithPath
*
* @param name name of the NodeProxyOptions (required)
* @param path path to the resource (required)
* @param path2 Path is the URL path to use for the current proxy request to node. (optional)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
*
*
Status Code
Description
Response Headers
*
200
OK
-
*
401
Unauthorized
-
*
*/
public okhttp3.Call connectGetNodeProxyWithPathCall(
String name, String path, String path2, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath =
"/api/v1/nodes/{name}/proxy/{path}"
.replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString()))
.replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
if (path2 != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2));
}
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {"*/*"};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {};
final String localVarContentType =
localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] {"BearerToken"};
return localVarApiClient.buildCall(
localVarPath,
"GET",
localVarQueryParams,
localVarCollectionQueryParams,
localVarPostBody,
localVarHeaderParams,
localVarCookieParams,
localVarFormParams,
localVarAuthNames,
_callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call 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)");
}
okhttp3.Call localVarCall = connectGetNodeProxyWithPathCall(name, path, path2, _callback);
return localVarCall;
}
/**
* connect GET requests to proxy of Node
*
* @param name name of the NodeProxyOptions (required)
* @param path path to the resource (required)
* @param path2 Path is the URL path to use for the current proxy request to node. (optional)
* @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 connectGetNodeProxyWithPath(String name, String path, String path2)
throws ApiException {
ApiResponse localVarResp = connectGetNodeProxyWithPathWithHttpInfo(name, path, path2);
return localVarResp.getData();
}
/**
* connect GET requests to proxy of Node
*
* @param name name of the NodeProxyOptions (required)
* @param path path to the resource (required)
* @param path2 Path is the URL path to use for the current proxy request to node. (optional)
* @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 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);
}
/**
* (asynchronously) connect GET requests to proxy of Node
*
* @param name name of the NodeProxyOptions (required)
* @param path path to the resource (required)
* @param path2 Path is the URL path to use for the current proxy request to node. (optional)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
*
*
Status Code
Description
Response Headers
*
200
OK
-
*
401
Unauthorized
-
*
*/
public 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() {}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for connectHeadNamespacedPodProxy
*
* @param name name of the PodProxyOptions (required)
* @param namespace object name and auth scope, such as for teams and projects (required)
* @param path Path is the URL path to use for the current proxy request to pod. (optional)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
*
*
Status Code
Description
Response Headers
*
200
OK
-
*
401
Unauthorized
-
*
*/
public okhttp3.Call connectHeadNamespacedPodProxyCall(
String name, String namespace, String path, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath =
"/api/v1/namespaces/{namespace}/pods/{name}/proxy"
.replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString()))
.replaceAll(
"\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
if (path != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path));
}
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {"*/*"};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {};
final String localVarContentType =
localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] {"BearerToken"};
return localVarApiClient.buildCall(
localVarPath,
"HEAD",
localVarQueryParams,
localVarCollectionQueryParams,
localVarPostBody,
localVarHeaderParams,
localVarCookieParams,
localVarFormParams,
localVarAuthNames,
_callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call connectHeadNamespacedPodProxyValidateBeforeCall(
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 connectHeadNamespacedPodProxy(Async)");
}
// verify the required parameter 'namespace' is set
if (namespace == null) {
throw new ApiException(
"Missing the required parameter 'namespace' when calling connectHeadNamespacedPodProxy(Async)");
}
okhttp3.Call localVarCall = connectHeadNamespacedPodProxyCall(name, namespace, path, _callback);
return localVarCall;
}
/**
* connect HEAD 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 is the URL path to use for the current proxy request to pod. (optional)
* @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 connectHeadNamespacedPodProxy(String name, String namespace, String path)
throws ApiException {
ApiResponse localVarResp =
connectHeadNamespacedPodProxyWithHttpInfo(name, namespace, path);
return localVarResp.getData();
}
/**
* connect HEAD 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 is the URL path to use for the current proxy request to pod. (optional)
* @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 connectHeadNamespacedPodProxyWithHttpInfo(
String name, String namespace, String path) throws ApiException {
okhttp3.Call localVarCall =
connectHeadNamespacedPodProxyValidateBeforeCall(name, namespace, path, null);
Type localVarReturnType = new TypeToken() {}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* (asynchronously) connect HEAD 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 is the URL path to use for the current proxy request to pod. (optional)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
*
*
Status Code
Description
Response Headers
*
200
OK
-
*
401
Unauthorized
-
*
*/
public okhttp3.Call connectHeadNamespacedPodProxyAsync(
String name, String namespace, String path, final ApiCallback _callback)
throws ApiException {
okhttp3.Call localVarCall =
connectHeadNamespacedPodProxyValidateBeforeCall(name, namespace, path, _callback);
Type localVarReturnType = new TypeToken() {}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for connectHeadNamespacedPodProxyWithPath
*
* @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)
* @param path2 Path is the URL path to use for the current proxy request to pod. (optional)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
*
*
Status Code
Description
Response Headers
*
200
OK
-
*
401
Unauthorized
-
*
*/
public okhttp3.Call connectHeadNamespacedPodProxyWithPathCall(
String name, String namespace, String path, String path2, final ApiCallback _callback)
throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath =
"/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}"
.replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString()))
.replaceAll(
"\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString()))
.replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
if (path2 != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2));
}
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {"*/*"};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {};
final String localVarContentType =
localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] {"BearerToken"};
return localVarApiClient.buildCall(
localVarPath,
"HEAD",
localVarQueryParams,
localVarCollectionQueryParams,
localVarPostBody,
localVarHeaderParams,
localVarCookieParams,
localVarFormParams,
localVarAuthNames,
_callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call connectHeadNamespacedPodProxyWithPathValidateBeforeCall(
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 connectHeadNamespacedPodProxyWithPath(Async)");
}
// verify the required parameter 'namespace' is set
if (namespace == null) {
throw new ApiException(
"Missing the required parameter 'namespace' when calling connectHeadNamespacedPodProxyWithPath(Async)");
}
// verify the required parameter 'path' is set
if (path == null) {
throw new ApiException(
"Missing the required parameter 'path' when calling connectHeadNamespacedPodProxyWithPath(Async)");
}
okhttp3.Call localVarCall =
connectHeadNamespacedPodProxyWithPathCall(name, namespace, path, path2, _callback);
return localVarCall;
}
/**
* connect HEAD 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)
* @param path2 Path is the URL path to use for the current proxy request to pod. (optional)
* @return String
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
* response body
* @http.response.details
*