All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.kubernetes.client.openapi.apis.CoreV1Api Maven / Gradle / Ivy

The newest version!
/*
Copyright 2024 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package io.kubernetes.client.openapi.apis;

import io.kubernetes.client.openapi.ApiCallback;
import io.kubernetes.client.openapi.ApiClient;
import io.kubernetes.client.openapi.ApiException;
import io.kubernetes.client.openapi.ApiResponse;
import io.kubernetes.client.openapi.Configuration;
import io.kubernetes.client.openapi.Pair;
import io.kubernetes.client.openapi.ProgressRequestBody;
import io.kubernetes.client.openapi.ProgressResponseBody;

import com.google.gson.reflect.TypeToken;

import java.io.IOException;


import io.kubernetes.client.openapi.models.AuthenticationV1TokenRequest;
import io.kubernetes.client.openapi.models.CoreV1Event;
import io.kubernetes.client.openapi.models.CoreV1EventList;
import io.kubernetes.client.openapi.models.V1APIResourceList;
import io.kubernetes.client.openapi.models.V1Binding;
import io.kubernetes.client.openapi.models.V1ComponentStatus;
import io.kubernetes.client.openapi.models.V1ComponentStatusList;
import io.kubernetes.client.openapi.models.V1ConfigMap;
import io.kubernetes.client.openapi.models.V1ConfigMapList;
import io.kubernetes.client.openapi.models.V1DeleteOptions;
import io.kubernetes.client.openapi.models.V1Endpoints;
import io.kubernetes.client.openapi.models.V1EndpointsList;
import io.kubernetes.client.openapi.models.V1Eviction;
import io.kubernetes.client.openapi.models.V1LimitRange;
import io.kubernetes.client.openapi.models.V1LimitRangeList;
import io.kubernetes.client.openapi.models.V1Namespace;
import io.kubernetes.client.openapi.models.V1NamespaceList;
import io.kubernetes.client.openapi.models.V1Node;
import io.kubernetes.client.openapi.models.V1NodeList;
import io.kubernetes.client.custom.V1Patch;
import io.kubernetes.client.openapi.models.V1PersistentVolume;
import io.kubernetes.client.openapi.models.V1PersistentVolumeClaim;
import io.kubernetes.client.openapi.models.V1PersistentVolumeClaimList;
import io.kubernetes.client.openapi.models.V1PersistentVolumeList;
import io.kubernetes.client.openapi.models.V1Pod;
import io.kubernetes.client.openapi.models.V1PodList;
import io.kubernetes.client.openapi.models.V1PodTemplate;
import io.kubernetes.client.openapi.models.V1PodTemplateList;
import io.kubernetes.client.openapi.models.V1ReplicationController;
import io.kubernetes.client.openapi.models.V1ReplicationControllerList;
import io.kubernetes.client.openapi.models.V1ResourceQuota;
import io.kubernetes.client.openapi.models.V1ResourceQuotaList;
import io.kubernetes.client.openapi.models.V1Scale;
import io.kubernetes.client.openapi.models.V1Secret;
import io.kubernetes.client.openapi.models.V1SecretList;
import io.kubernetes.client.openapi.models.V1Service;
import io.kubernetes.client.openapi.models.V1ServiceAccount;
import io.kubernetes.client.openapi.models.V1ServiceAccountList;
import io.kubernetes.client.openapi.models.V1ServiceList;
import io.kubernetes.client.openapi.models.V1Status;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class CoreV1Api {
    private ApiClient localVarApiClient;
    private int localHostIndex;
    private String localCustomBaseUrl;

    public CoreV1Api() {
        this(Configuration.getDefaultApiClient());
    }

    public CoreV1Api(ApiClient apiClient) {
        this.localVarApiClient = apiClient;
    }

    public ApiClient getApiClient() {
        return localVarApiClient;
    }

    public void setApiClient(ApiClient apiClient) {
        this.localVarApiClient = apiClient;
    }

    public int getHostIndex() {
        return localHostIndex;
    }

    public void setHostIndex(int hostIndex) {
        this.localHostIndex = hostIndex;
    }

    public String getCustomBaseUrl() {
        return localCustomBaseUrl;
    }

    public void setCustomBaseUrl(String customBaseUrl) {
        this.localCustomBaseUrl = customBaseUrl;
    }

    private okhttp3.Call connectDeleteNamespacedPodProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException {
        String basePath = null;
        // Operation Servers
        String[] localBasePaths = new String[] {  };

        // Determine Base Path to Use
        if (localCustomBaseUrl != null){
            basePath = localCustomBaseUrl;
        } else if ( localBasePaths.length > 0 ) {
            basePath = localBasePaths[localHostIndex];
        } else {
            basePath = null;
        }

        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy"
            .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString()))
            .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString()));

        List localVarQueryParams = new ArrayList();
        List localVarCollectionQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();
        Map localVarCookieParams = new HashMap();
        Map localVarFormParams = new HashMap();

        if (path != null) {
            localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path));
        }

        final String[] localVarAccepts = {
            "*/*"
        };
        final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
        if (localVarAccept != null) {
            localVarHeaderParams.put("Accept", localVarAccept);
        }

        final String[] localVarContentTypes = {
        };
        final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
        if (localVarContentType != null) {
            localVarHeaderParams.put("Content-Type", localVarContentType);
        }

        String[] localVarAuthNames = new String[] { "BearerToken" };
        return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
    }

    @SuppressWarnings("rawtypes")
    private okhttp3.Call connectDeleteNamespacedPodProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException {
        // verify the required parameter 'name' is set
        if (name == null) {
            throw new ApiException("Missing the required parameter 'name' when calling connectDeleteNamespacedPodProxy(Async)");
        }

        // verify the required parameter 'namespace' is set
        if (namespace == null) {
            throw new ApiException("Missing the required parameter 'namespace' when calling connectDeleteNamespacedPodProxy(Async)");
        }

        return connectDeleteNamespacedPodProxyCall(name, namespace, path, _callback);

    }


    private ApiResponse connectDeleteNamespacedPodProxyWithHttpInfo(String name, String namespace, String path) throws ApiException {
        okhttp3.Call localVarCall = connectDeleteNamespacedPodProxyValidateBeforeCall(name, namespace, path, null);
        Type localVarReturnType = new TypeToken(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    private okhttp3.Call connectDeleteNamespacedPodProxyAsync(String name, String namespace, String path, final ApiCallback _callback) throws ApiException {

        okhttp3.Call localVarCall = connectDeleteNamespacedPodProxyValidateBeforeCall(name, namespace, path, _callback);
        Type localVarReturnType = new TypeToken(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }

    public class APIconnectDeleteNamespacedPodProxyRequest {
        private final String name;
        private final String namespace;
        private String path;

        private APIconnectDeleteNamespacedPodProxyRequest(String name, String namespace) {
            this.name = name;
            this.namespace = namespace;
        }

        /**
         * Set path
         * @param path Path is the URL path to use for the current proxy request to pod. (optional)
         * @return APIconnectDeleteNamespacedPodProxyRequest
         */
        public APIconnectDeleteNamespacedPodProxyRequest path(String path) {
            this.path = path;
            return this;
        }

        /**
         * Build call for connectDeleteNamespacedPodProxy
         * @param _callback ApiCallback API callback
         * @return Call to execute
         * @throws ApiException If fail to serialize the request body object
         * @http.response.details
         
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectDeleteNamespacedPodProxyCall(name, namespace, path, _callback); } /** * Execute connectDeleteNamespacedPodProxy request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectDeleteNamespacedPodProxyWithHttpInfo(name, namespace, path); return localVarResp.getData(); } /** * Execute connectDeleteNamespacedPodProxy request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectDeleteNamespacedPodProxyWithHttpInfo(name, namespace, path); } /** * Execute connectDeleteNamespacedPodProxy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectDeleteNamespacedPodProxyAsync(name, namespace, path, _callback); } } /** * * connect DELETE requests to proxy of Pod * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIconnectDeleteNamespacedPodProxyRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectDeleteNamespacedPodProxyRequest connectDeleteNamespacedPodProxy(String name, String namespace) { return new APIconnectDeleteNamespacedPodProxyRequest(name, namespace); } private okhttp3.Call connectDeleteNamespacedPodProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) .replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (path2 != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectDeleteNamespacedPodProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectDeleteNamespacedPodProxyWithPath(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling connectDeleteNamespacedPodProxyWithPath(Async)"); } // verify the required parameter 'path' is set if (path == null) { throw new ApiException("Missing the required parameter 'path' when calling connectDeleteNamespacedPodProxyWithPath(Async)"); } return connectDeleteNamespacedPodProxyWithPathCall(name, namespace, path, path2, _callback); } private ApiResponse connectDeleteNamespacedPodProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException { okhttp3.Call localVarCall = connectDeleteNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectDeleteNamespacedPodProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectDeleteNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectDeleteNamespacedPodProxyWithPathRequest { private final String name; private final String namespace; private final String path; private String path2; private APIconnectDeleteNamespacedPodProxyWithPathRequest(String name, String namespace, String path) { this.name = name; this.namespace = namespace; this.path = path; } /** * Set path2 * @param path2 Path is the URL path to use for the current proxy request to pod. (optional) * @return APIconnectDeleteNamespacedPodProxyWithPathRequest */ public APIconnectDeleteNamespacedPodProxyWithPathRequest path2(String path2) { this.path2 = path2; return this; } /** * Build call for connectDeleteNamespacedPodProxyWithPath * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectDeleteNamespacedPodProxyWithPathCall(name, namespace, path, path2, _callback); } /** * Execute connectDeleteNamespacedPodProxyWithPath request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectDeleteNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2); return localVarResp.getData(); } /** * Execute connectDeleteNamespacedPodProxyWithPath request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectDeleteNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2); } /** * Execute connectDeleteNamespacedPodProxyWithPath request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectDeleteNamespacedPodProxyWithPathAsync(name, namespace, path, path2, _callback); } } /** * * connect DELETE requests to proxy of Pod * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param path path to the resource (required) * @return APIconnectDeleteNamespacedPodProxyWithPathRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectDeleteNamespacedPodProxyWithPathRequest connectDeleteNamespacedPodProxyWithPath(String name, String namespace, String path) { return new APIconnectDeleteNamespacedPodProxyWithPathRequest(name, namespace, path); } private okhttp3.Call connectDeleteNamespacedServiceProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (path != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectDeleteNamespacedServiceProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectDeleteNamespacedServiceProxy(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling connectDeleteNamespacedServiceProxy(Async)"); } return connectDeleteNamespacedServiceProxyCall(name, namespace, path, _callback); } private ApiResponse connectDeleteNamespacedServiceProxyWithHttpInfo(String name, String namespace, String path) throws ApiException { okhttp3.Call localVarCall = connectDeleteNamespacedServiceProxyValidateBeforeCall(name, namespace, path, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectDeleteNamespacedServiceProxyAsync(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectDeleteNamespacedServiceProxyValidateBeforeCall(name, namespace, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectDeleteNamespacedServiceProxyRequest { private final String name; private final String namespace; private String path; private APIconnectDeleteNamespacedServiceProxyRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set path * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return APIconnectDeleteNamespacedServiceProxyRequest */ public APIconnectDeleteNamespacedServiceProxyRequest path(String path) { this.path = path; return this; } /** * Build call for connectDeleteNamespacedServiceProxy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectDeleteNamespacedServiceProxyCall(name, namespace, path, _callback); } /** * Execute connectDeleteNamespacedServiceProxy request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectDeleteNamespacedServiceProxyWithHttpInfo(name, namespace, path); return localVarResp.getData(); } /** * Execute connectDeleteNamespacedServiceProxy request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectDeleteNamespacedServiceProxyWithHttpInfo(name, namespace, path); } /** * Execute connectDeleteNamespacedServiceProxy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectDeleteNamespacedServiceProxyAsync(name, namespace, path, _callback); } } /** * * connect DELETE requests to proxy of Service * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIconnectDeleteNamespacedServiceProxyRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectDeleteNamespacedServiceProxyRequest connectDeleteNamespacedServiceProxy(String name, String namespace) { return new APIconnectDeleteNamespacedServiceProxyRequest(name, namespace); } private okhttp3.Call connectDeleteNamespacedServiceProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) .replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (path2 != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectDeleteNamespacedServiceProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectDeleteNamespacedServiceProxyWithPath(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling connectDeleteNamespacedServiceProxyWithPath(Async)"); } // verify the required parameter 'path' is set if (path == null) { throw new ApiException("Missing the required parameter 'path' when calling connectDeleteNamespacedServiceProxyWithPath(Async)"); } return connectDeleteNamespacedServiceProxyWithPathCall(name, namespace, path, path2, _callback); } private ApiResponse connectDeleteNamespacedServiceProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException { okhttp3.Call localVarCall = connectDeleteNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectDeleteNamespacedServiceProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectDeleteNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectDeleteNamespacedServiceProxyWithPathRequest { private final String name; private final String namespace; private final String path; private String path2; private APIconnectDeleteNamespacedServiceProxyWithPathRequest(String name, String namespace, String path) { this.name = name; this.namespace = namespace; this.path = path; } /** * Set path2 * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return APIconnectDeleteNamespacedServiceProxyWithPathRequest */ public APIconnectDeleteNamespacedServiceProxyWithPathRequest path2(String path2) { this.path2 = path2; return this; } /** * Build call for connectDeleteNamespacedServiceProxyWithPath * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectDeleteNamespacedServiceProxyWithPathCall(name, namespace, path, path2, _callback); } /** * Execute connectDeleteNamespacedServiceProxyWithPath request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectDeleteNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2); return localVarResp.getData(); } /** * Execute connectDeleteNamespacedServiceProxyWithPath request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectDeleteNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2); } /** * Execute connectDeleteNamespacedServiceProxyWithPath request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectDeleteNamespacedServiceProxyWithPathAsync(name, namespace, path, path2, _callback); } } /** * * connect DELETE requests to proxy of Service * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param path path to the resource (required) * @return APIconnectDeleteNamespacedServiceProxyWithPathRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectDeleteNamespacedServiceProxyWithPathRequest connectDeleteNamespacedServiceProxyWithPath(String name, String namespace, String path) { return new APIconnectDeleteNamespacedServiceProxyWithPathRequest(name, namespace, path); } private okhttp3.Call connectDeleteNodeProxyCall(String name, String path, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/nodes/{name}/proxy" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (path != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectDeleteNodeProxyValidateBeforeCall(String name, String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectDeleteNodeProxy(Async)"); } return connectDeleteNodeProxyCall(name, path, _callback); } private ApiResponse connectDeleteNodeProxyWithHttpInfo(String name, String path) throws ApiException { okhttp3.Call localVarCall = connectDeleteNodeProxyValidateBeforeCall(name, path, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectDeleteNodeProxyAsync(String name, String path, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectDeleteNodeProxyValidateBeforeCall(name, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectDeleteNodeProxyRequest { private final String name; private String path; private APIconnectDeleteNodeProxyRequest(String name) { this.name = name; } /** * Set path * @param path Path is the URL path to use for the current proxy request to node. (optional) * @return APIconnectDeleteNodeProxyRequest */ public APIconnectDeleteNodeProxyRequest path(String path) { this.path = path; return this; } /** * Build call for connectDeleteNodeProxy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectDeleteNodeProxyCall(name, path, _callback); } /** * Execute connectDeleteNodeProxy request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectDeleteNodeProxyWithHttpInfo(name, path); return localVarResp.getData(); } /** * Execute connectDeleteNodeProxy request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectDeleteNodeProxyWithHttpInfo(name, path); } /** * Execute connectDeleteNodeProxy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectDeleteNodeProxyAsync(name, path, _callback); } } /** * * connect DELETE requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @return APIconnectDeleteNodeProxyRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectDeleteNodeProxyRequest connectDeleteNodeProxy(String name) { return new APIconnectDeleteNodeProxyRequest(name); } private okhttp3.Call connectDeleteNodeProxyWithPathCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/nodes/{name}/proxy/{path}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (path2 != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectDeleteNodeProxyWithPathValidateBeforeCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectDeleteNodeProxyWithPath(Async)"); } // verify the required parameter 'path' is set if (path == null) { throw new ApiException("Missing the required parameter 'path' when calling connectDeleteNodeProxyWithPath(Async)"); } return connectDeleteNodeProxyWithPathCall(name, path, path2, _callback); } private ApiResponse connectDeleteNodeProxyWithPathWithHttpInfo(String name, String path, String path2) throws ApiException { okhttp3.Call localVarCall = connectDeleteNodeProxyWithPathValidateBeforeCall(name, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectDeleteNodeProxyWithPathAsync(String name, String path, String path2, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectDeleteNodeProxyWithPathValidateBeforeCall(name, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectDeleteNodeProxyWithPathRequest { private final String name; private final String path; private String path2; private APIconnectDeleteNodeProxyWithPathRequest(String name, String path) { this.name = name; this.path = path; } /** * Set path2 * @param path2 Path is the URL path to use for the current proxy request to node. (optional) * @return APIconnectDeleteNodeProxyWithPathRequest */ public APIconnectDeleteNodeProxyWithPathRequest path2(String path2) { this.path2 = path2; return this; } /** * Build call for connectDeleteNodeProxyWithPath * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectDeleteNodeProxyWithPathCall(name, path, path2, _callback); } /** * Execute connectDeleteNodeProxyWithPath request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectDeleteNodeProxyWithPathWithHttpInfo(name, path, path2); return localVarResp.getData(); } /** * Execute connectDeleteNodeProxyWithPath request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectDeleteNodeProxyWithPathWithHttpInfo(name, path, path2); } /** * Execute connectDeleteNodeProxyWithPath request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectDeleteNodeProxyWithPathAsync(name, path, path2, _callback); } } /** * * connect DELETE requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @param path path to the resource (required) * @return APIconnectDeleteNodeProxyWithPathRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectDeleteNodeProxyWithPathRequest connectDeleteNodeProxyWithPath(String name, String path) { return new APIconnectDeleteNodeProxyWithPathRequest(name, path); } private okhttp3.Call connectGetNamespacedPodAttachCall(String name, String namespace, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/attach" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (container != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("container", container)); } if (stderr != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("stderr", stderr)); } if (stdin != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("stdin", stdin)); } if (stdout != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("stdout", stdout)); } if (tty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("tty", tty)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectGetNamespacedPodAttachValidateBeforeCall(String name, String namespace, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectGetNamespacedPodAttach(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling connectGetNamespacedPodAttach(Async)"); } return connectGetNamespacedPodAttachCall(name, namespace, container, stderr, stdin, stdout, tty, _callback); } private ApiResponse connectGetNamespacedPodAttachWithHttpInfo(String name, String namespace, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty) throws ApiException { okhttp3.Call localVarCall = connectGetNamespacedPodAttachValidateBeforeCall(name, namespace, container, stderr, stdin, stdout, tty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectGetNamespacedPodAttachAsync(String name, String namespace, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectGetNamespacedPodAttachValidateBeforeCall(name, namespace, container, stderr, stdin, stdout, tty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectGetNamespacedPodAttachRequest { private final String name; private final String namespace; private String container; private Boolean stderr; private Boolean stdin; private Boolean stdout; private Boolean tty; private APIconnectGetNamespacedPodAttachRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set container * @param container The container in which to execute the command. Defaults to only container if there is only one container in the pod. (optional) * @return APIconnectGetNamespacedPodAttachRequest */ public APIconnectGetNamespacedPodAttachRequest container(String container) { this.container = container; return this; } /** * Set stderr * @param stderr Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. (optional) * @return APIconnectGetNamespacedPodAttachRequest */ public APIconnectGetNamespacedPodAttachRequest stderr(Boolean stderr) { this.stderr = stderr; return this; } /** * Set stdin * @param stdin Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. (optional) * @return APIconnectGetNamespacedPodAttachRequest */ public APIconnectGetNamespacedPodAttachRequest stdin(Boolean stdin) { this.stdin = stdin; return this; } /** * Set stdout * @param stdout Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. (optional) * @return APIconnectGetNamespacedPodAttachRequest */ public APIconnectGetNamespacedPodAttachRequest stdout(Boolean stdout) { this.stdout = stdout; return this; } /** * Set tty * @param tty TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. (optional) * @return APIconnectGetNamespacedPodAttachRequest */ public APIconnectGetNamespacedPodAttachRequest tty(Boolean tty) { this.tty = tty; return this; } /** * Build call for connectGetNamespacedPodAttach * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectGetNamespacedPodAttachCall(name, namespace, container, stderr, stdin, stdout, tty, _callback); } /** * Execute connectGetNamespacedPodAttach request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectGetNamespacedPodAttachWithHttpInfo(name, namespace, container, stderr, stdin, stdout, tty); return localVarResp.getData(); } /** * Execute connectGetNamespacedPodAttach request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectGetNamespacedPodAttachWithHttpInfo(name, namespace, container, stderr, stdin, stdout, tty); } /** * Execute connectGetNamespacedPodAttach request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectGetNamespacedPodAttachAsync(name, namespace, container, stderr, stdin, stdout, tty, _callback); } } /** * * connect GET requests to attach of Pod * @param name name of the PodAttachOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIconnectGetNamespacedPodAttachRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectGetNamespacedPodAttachRequest connectGetNamespacedPodAttach(String name, String namespace) { return new APIconnectGetNamespacedPodAttachRequest(name, namespace); } private okhttp3.Call connectGetNamespacedPodExecCall(String name, String namespace, String command, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/exec" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (command != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("command", command)); } if (container != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("container", container)); } if (stderr != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("stderr", stderr)); } if (stdin != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("stdin", stdin)); } if (stdout != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("stdout", stdout)); } if (tty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("tty", tty)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectGetNamespacedPodExecValidateBeforeCall(String name, String namespace, String command, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectGetNamespacedPodExec(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling connectGetNamespacedPodExec(Async)"); } return connectGetNamespacedPodExecCall(name, namespace, command, container, stderr, stdin, stdout, tty, _callback); } private ApiResponse connectGetNamespacedPodExecWithHttpInfo(String name, String namespace, String command, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty) throws ApiException { okhttp3.Call localVarCall = connectGetNamespacedPodExecValidateBeforeCall(name, namespace, command, container, stderr, stdin, stdout, tty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectGetNamespacedPodExecAsync(String name, String namespace, String command, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectGetNamespacedPodExecValidateBeforeCall(name, namespace, command, container, stderr, stdin, stdout, tty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectGetNamespacedPodExecRequest { private final String name; private final String namespace; private String command; private String container; private Boolean stderr; private Boolean stdin; private Boolean stdout; private Boolean tty; private APIconnectGetNamespacedPodExecRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set command * @param command Command is the remote command to execute. argv array. Not executed within a shell. (optional) * @return APIconnectGetNamespacedPodExecRequest */ public APIconnectGetNamespacedPodExecRequest command(String command) { this.command = command; return this; } /** * Set container * @param container Container in which to execute the command. Defaults to only container if there is only one container in the pod. (optional) * @return APIconnectGetNamespacedPodExecRequest */ public APIconnectGetNamespacedPodExecRequest container(String container) { this.container = container; return this; } /** * Set stderr * @param stderr Redirect the standard error stream of the pod for this call. (optional) * @return APIconnectGetNamespacedPodExecRequest */ public APIconnectGetNamespacedPodExecRequest stderr(Boolean stderr) { this.stderr = stderr; return this; } /** * Set stdin * @param stdin Redirect the standard input stream of the pod for this call. Defaults to false. (optional) * @return APIconnectGetNamespacedPodExecRequest */ public APIconnectGetNamespacedPodExecRequest stdin(Boolean stdin) { this.stdin = stdin; return this; } /** * Set stdout * @param stdout Redirect the standard output stream of the pod for this call. (optional) * @return APIconnectGetNamespacedPodExecRequest */ public APIconnectGetNamespacedPodExecRequest stdout(Boolean stdout) { this.stdout = stdout; return this; } /** * Set tty * @param tty TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. (optional) * @return APIconnectGetNamespacedPodExecRequest */ public APIconnectGetNamespacedPodExecRequest tty(Boolean tty) { this.tty = tty; return this; } /** * Build call for connectGetNamespacedPodExec * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectGetNamespacedPodExecCall(name, namespace, command, container, stderr, stdin, stdout, tty, _callback); } /** * Execute connectGetNamespacedPodExec request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectGetNamespacedPodExecWithHttpInfo(name, namespace, command, container, stderr, stdin, stdout, tty); return localVarResp.getData(); } /** * Execute connectGetNamespacedPodExec request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectGetNamespacedPodExecWithHttpInfo(name, namespace, command, container, stderr, stdin, stdout, tty); } /** * Execute connectGetNamespacedPodExec request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectGetNamespacedPodExecAsync(name, namespace, command, container, stderr, stdin, stdout, tty, _callback); } } /** * * connect GET requests to exec of Pod * @param name name of the PodExecOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIconnectGetNamespacedPodExecRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectGetNamespacedPodExecRequest connectGetNamespacedPodExec(String name, String namespace) { return new APIconnectGetNamespacedPodExecRequest(name, namespace); } private okhttp3.Call connectGetNamespacedPodPortforwardCall(String name, String namespace, Integer ports, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/portforward" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (ports != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("ports", ports)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectGetNamespacedPodPortforwardValidateBeforeCall(String name, String namespace, Integer ports, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectGetNamespacedPodPortforward(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling connectGetNamespacedPodPortforward(Async)"); } return connectGetNamespacedPodPortforwardCall(name, namespace, ports, _callback); } private ApiResponse connectGetNamespacedPodPortforwardWithHttpInfo(String name, String namespace, Integer ports) throws ApiException { okhttp3.Call localVarCall = connectGetNamespacedPodPortforwardValidateBeforeCall(name, namespace, ports, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectGetNamespacedPodPortforwardAsync(String name, String namespace, Integer ports, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectGetNamespacedPodPortforwardValidateBeforeCall(name, namespace, ports, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectGetNamespacedPodPortforwardRequest { private final String name; private final String namespace; private Integer ports; private APIconnectGetNamespacedPodPortforwardRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set ports * @param ports List of ports to forward Required when using WebSockets (optional) * @return APIconnectGetNamespacedPodPortforwardRequest */ public APIconnectGetNamespacedPodPortforwardRequest ports(Integer ports) { this.ports = ports; return this; } /** * Build call for connectGetNamespacedPodPortforward * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectGetNamespacedPodPortforwardCall(name, namespace, ports, _callback); } /** * Execute connectGetNamespacedPodPortforward request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectGetNamespacedPodPortforwardWithHttpInfo(name, namespace, ports); return localVarResp.getData(); } /** * Execute connectGetNamespacedPodPortforward request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectGetNamespacedPodPortforwardWithHttpInfo(name, namespace, ports); } /** * Execute connectGetNamespacedPodPortforward request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectGetNamespacedPodPortforwardAsync(name, namespace, ports, _callback); } } /** * * connect GET requests to portforward of Pod * @param name name of the PodPortForwardOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIconnectGetNamespacedPodPortforwardRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectGetNamespacedPodPortforwardRequest connectGetNamespacedPodPortforward(String name, String namespace) { return new APIconnectGetNamespacedPodPortforwardRequest(name, namespace); } private okhttp3.Call connectGetNamespacedPodProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (path != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectGetNamespacedPodProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectGetNamespacedPodProxy(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling connectGetNamespacedPodProxy(Async)"); } return connectGetNamespacedPodProxyCall(name, namespace, path, _callback); } private ApiResponse connectGetNamespacedPodProxyWithHttpInfo(String name, String namespace, String path) throws ApiException { okhttp3.Call localVarCall = connectGetNamespacedPodProxyValidateBeforeCall(name, namespace, path, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectGetNamespacedPodProxyAsync(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectGetNamespacedPodProxyValidateBeforeCall(name, namespace, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectGetNamespacedPodProxyRequest { private final String name; private final String namespace; private String path; private APIconnectGetNamespacedPodProxyRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set path * @param path Path is the URL path to use for the current proxy request to pod. (optional) * @return APIconnectGetNamespacedPodProxyRequest */ public APIconnectGetNamespacedPodProxyRequest path(String path) { this.path = path; return this; } /** * Build call for connectGetNamespacedPodProxy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectGetNamespacedPodProxyCall(name, namespace, path, _callback); } /** * Execute connectGetNamespacedPodProxy request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectGetNamespacedPodProxyWithHttpInfo(name, namespace, path); return localVarResp.getData(); } /** * Execute connectGetNamespacedPodProxy request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectGetNamespacedPodProxyWithHttpInfo(name, namespace, path); } /** * Execute connectGetNamespacedPodProxy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectGetNamespacedPodProxyAsync(name, namespace, path, _callback); } } /** * * connect GET requests to proxy of Pod * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIconnectGetNamespacedPodProxyRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectGetNamespacedPodProxyRequest connectGetNamespacedPodProxy(String name, String namespace) { return new APIconnectGetNamespacedPodProxyRequest(name, namespace); } private okhttp3.Call connectGetNamespacedPodProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) .replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (path2 != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectGetNamespacedPodProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectGetNamespacedPodProxyWithPath(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling connectGetNamespacedPodProxyWithPath(Async)"); } // verify the required parameter 'path' is set if (path == null) { throw new ApiException("Missing the required parameter 'path' when calling connectGetNamespacedPodProxyWithPath(Async)"); } return connectGetNamespacedPodProxyWithPathCall(name, namespace, path, path2, _callback); } private ApiResponse connectGetNamespacedPodProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException { okhttp3.Call localVarCall = connectGetNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectGetNamespacedPodProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectGetNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectGetNamespacedPodProxyWithPathRequest { private final String name; private final String namespace; private final String path; private String path2; private APIconnectGetNamespacedPodProxyWithPathRequest(String name, String namespace, String path) { this.name = name; this.namespace = namespace; this.path = path; } /** * Set path2 * @param path2 Path is the URL path to use for the current proxy request to pod. (optional) * @return APIconnectGetNamespacedPodProxyWithPathRequest */ public APIconnectGetNamespacedPodProxyWithPathRequest path2(String path2) { this.path2 = path2; return this; } /** * Build call for connectGetNamespacedPodProxyWithPath * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectGetNamespacedPodProxyWithPathCall(name, namespace, path, path2, _callback); } /** * Execute connectGetNamespacedPodProxyWithPath request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectGetNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2); return localVarResp.getData(); } /** * Execute connectGetNamespacedPodProxyWithPath request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectGetNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2); } /** * Execute connectGetNamespacedPodProxyWithPath request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectGetNamespacedPodProxyWithPathAsync(name, namespace, path, path2, _callback); } } /** * * connect GET requests to proxy of Pod * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param path path to the resource (required) * @return APIconnectGetNamespacedPodProxyWithPathRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectGetNamespacedPodProxyWithPathRequest connectGetNamespacedPodProxyWithPath(String name, String namespace, String path) { return new APIconnectGetNamespacedPodProxyWithPathRequest(name, namespace, path); } private okhttp3.Call connectGetNamespacedServiceProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (path != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectGetNamespacedServiceProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectGetNamespacedServiceProxy(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling connectGetNamespacedServiceProxy(Async)"); } return connectGetNamespacedServiceProxyCall(name, namespace, path, _callback); } private ApiResponse connectGetNamespacedServiceProxyWithHttpInfo(String name, String namespace, String path) throws ApiException { okhttp3.Call localVarCall = connectGetNamespacedServiceProxyValidateBeforeCall(name, namespace, path, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectGetNamespacedServiceProxyAsync(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectGetNamespacedServiceProxyValidateBeforeCall(name, namespace, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectGetNamespacedServiceProxyRequest { private final String name; private final String namespace; private String path; private APIconnectGetNamespacedServiceProxyRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set path * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return APIconnectGetNamespacedServiceProxyRequest */ public APIconnectGetNamespacedServiceProxyRequest path(String path) { this.path = path; return this; } /** * Build call for connectGetNamespacedServiceProxy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectGetNamespacedServiceProxyCall(name, namespace, path, _callback); } /** * Execute connectGetNamespacedServiceProxy request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectGetNamespacedServiceProxyWithHttpInfo(name, namespace, path); return localVarResp.getData(); } /** * Execute connectGetNamespacedServiceProxy request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectGetNamespacedServiceProxyWithHttpInfo(name, namespace, path); } /** * Execute connectGetNamespacedServiceProxy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectGetNamespacedServiceProxyAsync(name, namespace, path, _callback); } } /** * * connect GET requests to proxy of Service * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIconnectGetNamespacedServiceProxyRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectGetNamespacedServiceProxyRequest connectGetNamespacedServiceProxy(String name, String namespace) { return new APIconnectGetNamespacedServiceProxyRequest(name, namespace); } private okhttp3.Call connectGetNamespacedServiceProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) .replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (path2 != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectGetNamespacedServiceProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectGetNamespacedServiceProxyWithPath(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling connectGetNamespacedServiceProxyWithPath(Async)"); } // verify the required parameter 'path' is set if (path == null) { throw new ApiException("Missing the required parameter 'path' when calling connectGetNamespacedServiceProxyWithPath(Async)"); } return connectGetNamespacedServiceProxyWithPathCall(name, namespace, path, path2, _callback); } private ApiResponse connectGetNamespacedServiceProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException { okhttp3.Call localVarCall = connectGetNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectGetNamespacedServiceProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectGetNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectGetNamespacedServiceProxyWithPathRequest { private final String name; private final String namespace; private final String path; private String path2; private APIconnectGetNamespacedServiceProxyWithPathRequest(String name, String namespace, String path) { this.name = name; this.namespace = namespace; this.path = path; } /** * Set path2 * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return APIconnectGetNamespacedServiceProxyWithPathRequest */ public APIconnectGetNamespacedServiceProxyWithPathRequest path2(String path2) { this.path2 = path2; return this; } /** * Build call for connectGetNamespacedServiceProxyWithPath * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectGetNamespacedServiceProxyWithPathCall(name, namespace, path, path2, _callback); } /** * Execute connectGetNamespacedServiceProxyWithPath request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectGetNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2); return localVarResp.getData(); } /** * Execute connectGetNamespacedServiceProxyWithPath request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectGetNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2); } /** * Execute connectGetNamespacedServiceProxyWithPath request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectGetNamespacedServiceProxyWithPathAsync(name, namespace, path, path2, _callback); } } /** * * connect GET requests to proxy of Service * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param path path to the resource (required) * @return APIconnectGetNamespacedServiceProxyWithPathRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectGetNamespacedServiceProxyWithPathRequest connectGetNamespacedServiceProxyWithPath(String name, String namespace, String path) { return new APIconnectGetNamespacedServiceProxyWithPathRequest(name, namespace, path); } private okhttp3.Call connectGetNodeProxyCall(String name, String path, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/nodes/{name}/proxy" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (path != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectGetNodeProxyValidateBeforeCall(String name, String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectGetNodeProxy(Async)"); } return connectGetNodeProxyCall(name, path, _callback); } private ApiResponse connectGetNodeProxyWithHttpInfo(String name, String path) throws ApiException { okhttp3.Call localVarCall = connectGetNodeProxyValidateBeforeCall(name, path, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectGetNodeProxyAsync(String name, String path, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectGetNodeProxyValidateBeforeCall(name, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectGetNodeProxyRequest { private final String name; private String path; private APIconnectGetNodeProxyRequest(String name) { this.name = name; } /** * Set path * @param path Path is the URL path to use for the current proxy request to node. (optional) * @return APIconnectGetNodeProxyRequest */ public APIconnectGetNodeProxyRequest path(String path) { this.path = path; return this; } /** * Build call for connectGetNodeProxy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectGetNodeProxyCall(name, path, _callback); } /** * Execute connectGetNodeProxy request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectGetNodeProxyWithHttpInfo(name, path); return localVarResp.getData(); } /** * Execute connectGetNodeProxy request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectGetNodeProxyWithHttpInfo(name, path); } /** * Execute connectGetNodeProxy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectGetNodeProxyAsync(name, path, _callback); } } /** * * connect GET requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @return APIconnectGetNodeProxyRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectGetNodeProxyRequest connectGetNodeProxy(String name) { return new APIconnectGetNodeProxyRequest(name); } private okhttp3.Call connectGetNodeProxyWithPathCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/nodes/{name}/proxy/{path}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (path2 != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectGetNodeProxyWithPathValidateBeforeCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectGetNodeProxyWithPath(Async)"); } // verify the required parameter 'path' is set if (path == null) { throw new ApiException("Missing the required parameter 'path' when calling connectGetNodeProxyWithPath(Async)"); } return connectGetNodeProxyWithPathCall(name, path, path2, _callback); } private ApiResponse connectGetNodeProxyWithPathWithHttpInfo(String name, String path, String path2) throws ApiException { okhttp3.Call localVarCall = connectGetNodeProxyWithPathValidateBeforeCall(name, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectGetNodeProxyWithPathAsync(String name, String path, String path2, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectGetNodeProxyWithPathValidateBeforeCall(name, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectGetNodeProxyWithPathRequest { private final String name; private final String path; private String path2; private APIconnectGetNodeProxyWithPathRequest(String name, String path) { this.name = name; this.path = path; } /** * Set path2 * @param path2 Path is the URL path to use for the current proxy request to node. (optional) * @return APIconnectGetNodeProxyWithPathRequest */ public APIconnectGetNodeProxyWithPathRequest path2(String path2) { this.path2 = path2; return this; } /** * Build call for connectGetNodeProxyWithPath * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectGetNodeProxyWithPathCall(name, path, path2, _callback); } /** * Execute connectGetNodeProxyWithPath request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectGetNodeProxyWithPathWithHttpInfo(name, path, path2); return localVarResp.getData(); } /** * Execute connectGetNodeProxyWithPath request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectGetNodeProxyWithPathWithHttpInfo(name, path, path2); } /** * Execute connectGetNodeProxyWithPath request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectGetNodeProxyWithPathAsync(name, path, path2, _callback); } } /** * * connect GET requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @param path path to the resource (required) * @return APIconnectGetNodeProxyWithPathRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectGetNodeProxyWithPathRequest connectGetNodeProxyWithPath(String name, String path) { return new APIconnectGetNodeProxyWithPathRequest(name, path); } private okhttp3.Call connectHeadNamespacedPodProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (path != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "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)"); } return connectHeadNamespacedPodProxyCall(name, namespace, path, _callback); } private 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); } private 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; } public class APIconnectHeadNamespacedPodProxyRequest { private final String name; private final String namespace; private String path; private APIconnectHeadNamespacedPodProxyRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set path * @param path Path is the URL path to use for the current proxy request to pod. (optional) * @return APIconnectHeadNamespacedPodProxyRequest */ public APIconnectHeadNamespacedPodProxyRequest path(String path) { this.path = path; return this; } /** * Build call for connectHeadNamespacedPodProxy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectHeadNamespacedPodProxyCall(name, namespace, path, _callback); } /** * Execute connectHeadNamespacedPodProxy request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectHeadNamespacedPodProxyWithHttpInfo(name, namespace, path); return localVarResp.getData(); } /** * Execute connectHeadNamespacedPodProxy request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectHeadNamespacedPodProxyWithHttpInfo(name, namespace, path); } /** * Execute connectHeadNamespacedPodProxy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectHeadNamespacedPodProxyAsync(name, namespace, path, _callback); } } /** * * 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) * @return APIconnectHeadNamespacedPodProxyRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectHeadNamespacedPodProxyRequest connectHeadNamespacedPodProxy(String name, String namespace) { return new APIconnectHeadNamespacedPodProxyRequest(name, namespace); } private okhttp3.Call connectHeadNamespacedPodProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) .replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (path2 != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "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)"); } return connectHeadNamespacedPodProxyWithPathCall(name, namespace, path, path2, _callback); } private ApiResponse connectHeadNamespacedPodProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException { okhttp3.Call localVarCall = connectHeadNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectHeadNamespacedPodProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectHeadNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectHeadNamespacedPodProxyWithPathRequest { private final String name; private final String namespace; private final String path; private String path2; private APIconnectHeadNamespacedPodProxyWithPathRequest(String name, String namespace, String path) { this.name = name; this.namespace = namespace; this.path = path; } /** * Set path2 * @param path2 Path is the URL path to use for the current proxy request to pod. (optional) * @return APIconnectHeadNamespacedPodProxyWithPathRequest */ public APIconnectHeadNamespacedPodProxyWithPathRequest path2(String path2) { this.path2 = path2; return this; } /** * Build call for connectHeadNamespacedPodProxyWithPath * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectHeadNamespacedPodProxyWithPathCall(name, namespace, path, path2, _callback); } /** * Execute connectHeadNamespacedPodProxyWithPath request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectHeadNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2); return localVarResp.getData(); } /** * Execute connectHeadNamespacedPodProxyWithPath request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectHeadNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2); } /** * Execute connectHeadNamespacedPodProxyWithPath request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectHeadNamespacedPodProxyWithPathAsync(name, namespace, path, path2, _callback); } } /** * * 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) * @return APIconnectHeadNamespacedPodProxyWithPathRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectHeadNamespacedPodProxyWithPathRequest connectHeadNamespacedPodProxyWithPath(String name, String namespace, String path) { return new APIconnectHeadNamespacedPodProxyWithPathRequest(name, namespace, path); } private okhttp3.Call connectHeadNamespacedServiceProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (path != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "HEAD", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectHeadNamespacedServiceProxyValidateBeforeCall(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 connectHeadNamespacedServiceProxy(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling connectHeadNamespacedServiceProxy(Async)"); } return connectHeadNamespacedServiceProxyCall(name, namespace, path, _callback); } private ApiResponse connectHeadNamespacedServiceProxyWithHttpInfo(String name, String namespace, String path) throws ApiException { okhttp3.Call localVarCall = connectHeadNamespacedServiceProxyValidateBeforeCall(name, namespace, path, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectHeadNamespacedServiceProxyAsync(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectHeadNamespacedServiceProxyValidateBeforeCall(name, namespace, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectHeadNamespacedServiceProxyRequest { private final String name; private final String namespace; private String path; private APIconnectHeadNamespacedServiceProxyRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set path * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return APIconnectHeadNamespacedServiceProxyRequest */ public APIconnectHeadNamespacedServiceProxyRequest path(String path) { this.path = path; return this; } /** * Build call for connectHeadNamespacedServiceProxy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectHeadNamespacedServiceProxyCall(name, namespace, path, _callback); } /** * Execute connectHeadNamespacedServiceProxy request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectHeadNamespacedServiceProxyWithHttpInfo(name, namespace, path); return localVarResp.getData(); } /** * Execute connectHeadNamespacedServiceProxy request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectHeadNamespacedServiceProxyWithHttpInfo(name, namespace, path); } /** * Execute connectHeadNamespacedServiceProxy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectHeadNamespacedServiceProxyAsync(name, namespace, path, _callback); } } /** * * connect HEAD requests to proxy of Service * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIconnectHeadNamespacedServiceProxyRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectHeadNamespacedServiceProxyRequest connectHeadNamespacedServiceProxy(String name, String namespace) { return new APIconnectHeadNamespacedServiceProxyRequest(name, namespace); } private okhttp3.Call connectHeadNamespacedServiceProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) .replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (path2 != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "HEAD", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectHeadNamespacedServiceProxyWithPathValidateBeforeCall(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 connectHeadNamespacedServiceProxyWithPath(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling connectHeadNamespacedServiceProxyWithPath(Async)"); } // verify the required parameter 'path' is set if (path == null) { throw new ApiException("Missing the required parameter 'path' when calling connectHeadNamespacedServiceProxyWithPath(Async)"); } return connectHeadNamespacedServiceProxyWithPathCall(name, namespace, path, path2, _callback); } private ApiResponse connectHeadNamespacedServiceProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException { okhttp3.Call localVarCall = connectHeadNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectHeadNamespacedServiceProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectHeadNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectHeadNamespacedServiceProxyWithPathRequest { private final String name; private final String namespace; private final String path; private String path2; private APIconnectHeadNamespacedServiceProxyWithPathRequest(String name, String namespace, String path) { this.name = name; this.namespace = namespace; this.path = path; } /** * Set path2 * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return APIconnectHeadNamespacedServiceProxyWithPathRequest */ public APIconnectHeadNamespacedServiceProxyWithPathRequest path2(String path2) { this.path2 = path2; return this; } /** * Build call for connectHeadNamespacedServiceProxyWithPath * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectHeadNamespacedServiceProxyWithPathCall(name, namespace, path, path2, _callback); } /** * Execute connectHeadNamespacedServiceProxyWithPath request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectHeadNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2); return localVarResp.getData(); } /** * Execute connectHeadNamespacedServiceProxyWithPath request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectHeadNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2); } /** * Execute connectHeadNamespacedServiceProxyWithPath request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectHeadNamespacedServiceProxyWithPathAsync(name, namespace, path, path2, _callback); } } /** * * connect HEAD requests to proxy of Service * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param path path to the resource (required) * @return APIconnectHeadNamespacedServiceProxyWithPathRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectHeadNamespacedServiceProxyWithPathRequest connectHeadNamespacedServiceProxyWithPath(String name, String namespace, String path) { return new APIconnectHeadNamespacedServiceProxyWithPathRequest(name, namespace, path); } private okhttp3.Call connectHeadNodeProxyCall(String name, String path, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/nodes/{name}/proxy" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (path != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "HEAD", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectHeadNodeProxyValidateBeforeCall(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 connectHeadNodeProxy(Async)"); } return connectHeadNodeProxyCall(name, path, _callback); } private ApiResponse connectHeadNodeProxyWithHttpInfo(String name, String path) throws ApiException { okhttp3.Call localVarCall = connectHeadNodeProxyValidateBeforeCall(name, path, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectHeadNodeProxyAsync(String name, String path, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectHeadNodeProxyValidateBeforeCall(name, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectHeadNodeProxyRequest { private final String name; private String path; private APIconnectHeadNodeProxyRequest(String name) { this.name = name; } /** * Set path * @param path Path is the URL path to use for the current proxy request to node. (optional) * @return APIconnectHeadNodeProxyRequest */ public APIconnectHeadNodeProxyRequest path(String path) { this.path = path; return this; } /** * Build call for connectHeadNodeProxy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectHeadNodeProxyCall(name, path, _callback); } /** * Execute connectHeadNodeProxy request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectHeadNodeProxyWithHttpInfo(name, path); return localVarResp.getData(); } /** * Execute connectHeadNodeProxy request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectHeadNodeProxyWithHttpInfo(name, path); } /** * Execute connectHeadNodeProxy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectHeadNodeProxyAsync(name, path, _callback); } } /** * * connect HEAD requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @return APIconnectHeadNodeProxyRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectHeadNodeProxyRequest connectHeadNodeProxy(String name) { return new APIconnectHeadNodeProxyRequest(name); } private okhttp3.Call connectHeadNodeProxyWithPathCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/nodes/{name}/proxy/{path}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (path2 != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "HEAD", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectHeadNodeProxyWithPathValidateBeforeCall(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 connectHeadNodeProxyWithPath(Async)"); } // verify the required parameter 'path' is set if (path == null) { throw new ApiException("Missing the required parameter 'path' when calling connectHeadNodeProxyWithPath(Async)"); } return connectHeadNodeProxyWithPathCall(name, path, path2, _callback); } private ApiResponse connectHeadNodeProxyWithPathWithHttpInfo(String name, String path, String path2) throws ApiException { okhttp3.Call localVarCall = connectHeadNodeProxyWithPathValidateBeforeCall(name, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectHeadNodeProxyWithPathAsync(String name, String path, String path2, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectHeadNodeProxyWithPathValidateBeforeCall(name, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectHeadNodeProxyWithPathRequest { private final String name; private final String path; private String path2; private APIconnectHeadNodeProxyWithPathRequest(String name, String path) { this.name = name; this.path = path; } /** * Set path2 * @param path2 Path is the URL path to use for the current proxy request to node. (optional) * @return APIconnectHeadNodeProxyWithPathRequest */ public APIconnectHeadNodeProxyWithPathRequest path2(String path2) { this.path2 = path2; return this; } /** * Build call for connectHeadNodeProxyWithPath * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectHeadNodeProxyWithPathCall(name, path, path2, _callback); } /** * Execute connectHeadNodeProxyWithPath request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectHeadNodeProxyWithPathWithHttpInfo(name, path, path2); return localVarResp.getData(); } /** * Execute connectHeadNodeProxyWithPath request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectHeadNodeProxyWithPathWithHttpInfo(name, path, path2); } /** * Execute connectHeadNodeProxyWithPath request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectHeadNodeProxyWithPathAsync(name, path, path2, _callback); } } /** * * connect HEAD requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @param path path to the resource (required) * @return APIconnectHeadNodeProxyWithPathRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectHeadNodeProxyWithPathRequest connectHeadNodeProxyWithPath(String name, String path) { return new APIconnectHeadNodeProxyWithPathRequest(name, path); } private okhttp3.Call connectOptionsNamespacedPodProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (path != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "OPTIONS", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectOptionsNamespacedPodProxyValidateBeforeCall(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 connectOptionsNamespacedPodProxy(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling connectOptionsNamespacedPodProxy(Async)"); } return connectOptionsNamespacedPodProxyCall(name, namespace, path, _callback); } private ApiResponse connectOptionsNamespacedPodProxyWithHttpInfo(String name, String namespace, String path) throws ApiException { okhttp3.Call localVarCall = connectOptionsNamespacedPodProxyValidateBeforeCall(name, namespace, path, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectOptionsNamespacedPodProxyAsync(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectOptionsNamespacedPodProxyValidateBeforeCall(name, namespace, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectOptionsNamespacedPodProxyRequest { private final String name; private final String namespace; private String path; private APIconnectOptionsNamespacedPodProxyRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set path * @param path Path is the URL path to use for the current proxy request to pod. (optional) * @return APIconnectOptionsNamespacedPodProxyRequest */ public APIconnectOptionsNamespacedPodProxyRequest path(String path) { this.path = path; return this; } /** * Build call for connectOptionsNamespacedPodProxy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectOptionsNamespacedPodProxyCall(name, namespace, path, _callback); } /** * Execute connectOptionsNamespacedPodProxy request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectOptionsNamespacedPodProxyWithHttpInfo(name, namespace, path); return localVarResp.getData(); } /** * Execute connectOptionsNamespacedPodProxy request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectOptionsNamespacedPodProxyWithHttpInfo(name, namespace, path); } /** * Execute connectOptionsNamespacedPodProxy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectOptionsNamespacedPodProxyAsync(name, namespace, path, _callback); } } /** * * connect OPTIONS requests to proxy of Pod * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIconnectOptionsNamespacedPodProxyRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectOptionsNamespacedPodProxyRequest connectOptionsNamespacedPodProxy(String name, String namespace) { return new APIconnectOptionsNamespacedPodProxyRequest(name, namespace); } private okhttp3.Call connectOptionsNamespacedPodProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) .replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (path2 != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "OPTIONS", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectOptionsNamespacedPodProxyWithPathValidateBeforeCall(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 connectOptionsNamespacedPodProxyWithPath(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling connectOptionsNamespacedPodProxyWithPath(Async)"); } // verify the required parameter 'path' is set if (path == null) { throw new ApiException("Missing the required parameter 'path' when calling connectOptionsNamespacedPodProxyWithPath(Async)"); } return connectOptionsNamespacedPodProxyWithPathCall(name, namespace, path, path2, _callback); } private ApiResponse connectOptionsNamespacedPodProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException { okhttp3.Call localVarCall = connectOptionsNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectOptionsNamespacedPodProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectOptionsNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectOptionsNamespacedPodProxyWithPathRequest { private final String name; private final String namespace; private final String path; private String path2; private APIconnectOptionsNamespacedPodProxyWithPathRequest(String name, String namespace, String path) { this.name = name; this.namespace = namespace; this.path = path; } /** * Set path2 * @param path2 Path is the URL path to use for the current proxy request to pod. (optional) * @return APIconnectOptionsNamespacedPodProxyWithPathRequest */ public APIconnectOptionsNamespacedPodProxyWithPathRequest path2(String path2) { this.path2 = path2; return this; } /** * Build call for connectOptionsNamespacedPodProxyWithPath * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectOptionsNamespacedPodProxyWithPathCall(name, namespace, path, path2, _callback); } /** * Execute connectOptionsNamespacedPodProxyWithPath request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectOptionsNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2); return localVarResp.getData(); } /** * Execute connectOptionsNamespacedPodProxyWithPath request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectOptionsNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2); } /** * Execute connectOptionsNamespacedPodProxyWithPath request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectOptionsNamespacedPodProxyWithPathAsync(name, namespace, path, path2, _callback); } } /** * * connect OPTIONS requests to proxy of Pod * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param path path to the resource (required) * @return APIconnectOptionsNamespacedPodProxyWithPathRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectOptionsNamespacedPodProxyWithPathRequest connectOptionsNamespacedPodProxyWithPath(String name, String namespace, String path) { return new APIconnectOptionsNamespacedPodProxyWithPathRequest(name, namespace, path); } private okhttp3.Call connectOptionsNamespacedServiceProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (path != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "OPTIONS", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectOptionsNamespacedServiceProxyValidateBeforeCall(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 connectOptionsNamespacedServiceProxy(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling connectOptionsNamespacedServiceProxy(Async)"); } return connectOptionsNamespacedServiceProxyCall(name, namespace, path, _callback); } private ApiResponse connectOptionsNamespacedServiceProxyWithHttpInfo(String name, String namespace, String path) throws ApiException { okhttp3.Call localVarCall = connectOptionsNamespacedServiceProxyValidateBeforeCall(name, namespace, path, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectOptionsNamespacedServiceProxyAsync(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectOptionsNamespacedServiceProxyValidateBeforeCall(name, namespace, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectOptionsNamespacedServiceProxyRequest { private final String name; private final String namespace; private String path; private APIconnectOptionsNamespacedServiceProxyRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set path * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return APIconnectOptionsNamespacedServiceProxyRequest */ public APIconnectOptionsNamespacedServiceProxyRequest path(String path) { this.path = path; return this; } /** * Build call for connectOptionsNamespacedServiceProxy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectOptionsNamespacedServiceProxyCall(name, namespace, path, _callback); } /** * Execute connectOptionsNamespacedServiceProxy request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectOptionsNamespacedServiceProxyWithHttpInfo(name, namespace, path); return localVarResp.getData(); } /** * Execute connectOptionsNamespacedServiceProxy request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectOptionsNamespacedServiceProxyWithHttpInfo(name, namespace, path); } /** * Execute connectOptionsNamespacedServiceProxy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectOptionsNamespacedServiceProxyAsync(name, namespace, path, _callback); } } /** * * connect OPTIONS requests to proxy of Service * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIconnectOptionsNamespacedServiceProxyRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectOptionsNamespacedServiceProxyRequest connectOptionsNamespacedServiceProxy(String name, String namespace) { return new APIconnectOptionsNamespacedServiceProxyRequest(name, namespace); } private okhttp3.Call connectOptionsNamespacedServiceProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) .replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (path2 != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "OPTIONS", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectOptionsNamespacedServiceProxyWithPathValidateBeforeCall(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 connectOptionsNamespacedServiceProxyWithPath(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling connectOptionsNamespacedServiceProxyWithPath(Async)"); } // verify the required parameter 'path' is set if (path == null) { throw new ApiException("Missing the required parameter 'path' when calling connectOptionsNamespacedServiceProxyWithPath(Async)"); } return connectOptionsNamespacedServiceProxyWithPathCall(name, namespace, path, path2, _callback); } private ApiResponse connectOptionsNamespacedServiceProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException { okhttp3.Call localVarCall = connectOptionsNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectOptionsNamespacedServiceProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectOptionsNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectOptionsNamespacedServiceProxyWithPathRequest { private final String name; private final String namespace; private final String path; private String path2; private APIconnectOptionsNamespacedServiceProxyWithPathRequest(String name, String namespace, String path) { this.name = name; this.namespace = namespace; this.path = path; } /** * Set path2 * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return APIconnectOptionsNamespacedServiceProxyWithPathRequest */ public APIconnectOptionsNamespacedServiceProxyWithPathRequest path2(String path2) { this.path2 = path2; return this; } /** * Build call for connectOptionsNamespacedServiceProxyWithPath * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectOptionsNamespacedServiceProxyWithPathCall(name, namespace, path, path2, _callback); } /** * Execute connectOptionsNamespacedServiceProxyWithPath request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectOptionsNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2); return localVarResp.getData(); } /** * Execute connectOptionsNamespacedServiceProxyWithPath request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectOptionsNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2); } /** * Execute connectOptionsNamespacedServiceProxyWithPath request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectOptionsNamespacedServiceProxyWithPathAsync(name, namespace, path, path2, _callback); } } /** * * connect OPTIONS requests to proxy of Service * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param path path to the resource (required) * @return APIconnectOptionsNamespacedServiceProxyWithPathRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectOptionsNamespacedServiceProxyWithPathRequest connectOptionsNamespacedServiceProxyWithPath(String name, String namespace, String path) { return new APIconnectOptionsNamespacedServiceProxyWithPathRequest(name, namespace, path); } private okhttp3.Call connectOptionsNodeProxyCall(String name, String path, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/nodes/{name}/proxy" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (path != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "OPTIONS", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectOptionsNodeProxyValidateBeforeCall(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 connectOptionsNodeProxy(Async)"); } return connectOptionsNodeProxyCall(name, path, _callback); } private ApiResponse connectOptionsNodeProxyWithHttpInfo(String name, String path) throws ApiException { okhttp3.Call localVarCall = connectOptionsNodeProxyValidateBeforeCall(name, path, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectOptionsNodeProxyAsync(String name, String path, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectOptionsNodeProxyValidateBeforeCall(name, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectOptionsNodeProxyRequest { private final String name; private String path; private APIconnectOptionsNodeProxyRequest(String name) { this.name = name; } /** * Set path * @param path Path is the URL path to use for the current proxy request to node. (optional) * @return APIconnectOptionsNodeProxyRequest */ public APIconnectOptionsNodeProxyRequest path(String path) { this.path = path; return this; } /** * Build call for connectOptionsNodeProxy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectOptionsNodeProxyCall(name, path, _callback); } /** * Execute connectOptionsNodeProxy request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectOptionsNodeProxyWithHttpInfo(name, path); return localVarResp.getData(); } /** * Execute connectOptionsNodeProxy request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectOptionsNodeProxyWithHttpInfo(name, path); } /** * Execute connectOptionsNodeProxy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectOptionsNodeProxyAsync(name, path, _callback); } } /** * * connect OPTIONS requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @return APIconnectOptionsNodeProxyRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectOptionsNodeProxyRequest connectOptionsNodeProxy(String name) { return new APIconnectOptionsNodeProxyRequest(name); } private okhttp3.Call connectOptionsNodeProxyWithPathCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/nodes/{name}/proxy/{path}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (path2 != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "OPTIONS", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectOptionsNodeProxyWithPathValidateBeforeCall(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 connectOptionsNodeProxyWithPath(Async)"); } // verify the required parameter 'path' is set if (path == null) { throw new ApiException("Missing the required parameter 'path' when calling connectOptionsNodeProxyWithPath(Async)"); } return connectOptionsNodeProxyWithPathCall(name, path, path2, _callback); } private ApiResponse connectOptionsNodeProxyWithPathWithHttpInfo(String name, String path, String path2) throws ApiException { okhttp3.Call localVarCall = connectOptionsNodeProxyWithPathValidateBeforeCall(name, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectOptionsNodeProxyWithPathAsync(String name, String path, String path2, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectOptionsNodeProxyWithPathValidateBeforeCall(name, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectOptionsNodeProxyWithPathRequest { private final String name; private final String path; private String path2; private APIconnectOptionsNodeProxyWithPathRequest(String name, String path) { this.name = name; this.path = path; } /** * Set path2 * @param path2 Path is the URL path to use for the current proxy request to node. (optional) * @return APIconnectOptionsNodeProxyWithPathRequest */ public APIconnectOptionsNodeProxyWithPathRequest path2(String path2) { this.path2 = path2; return this; } /** * Build call for connectOptionsNodeProxyWithPath * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectOptionsNodeProxyWithPathCall(name, path, path2, _callback); } /** * Execute connectOptionsNodeProxyWithPath request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectOptionsNodeProxyWithPathWithHttpInfo(name, path, path2); return localVarResp.getData(); } /** * Execute connectOptionsNodeProxyWithPath request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectOptionsNodeProxyWithPathWithHttpInfo(name, path, path2); } /** * Execute connectOptionsNodeProxyWithPath request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectOptionsNodeProxyWithPathAsync(name, path, path2, _callback); } } /** * * connect OPTIONS requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @param path path to the resource (required) * @return APIconnectOptionsNodeProxyWithPathRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectOptionsNodeProxyWithPathRequest connectOptionsNodeProxyWithPath(String name, String path) { return new APIconnectOptionsNodeProxyWithPathRequest(name, path); } private okhttp3.Call connectPatchNamespacedPodProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (path != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectPatchNamespacedPodProxyValidateBeforeCall(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 connectPatchNamespacedPodProxy(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling connectPatchNamespacedPodProxy(Async)"); } return connectPatchNamespacedPodProxyCall(name, namespace, path, _callback); } private ApiResponse connectPatchNamespacedPodProxyWithHttpInfo(String name, String namespace, String path) throws ApiException { okhttp3.Call localVarCall = connectPatchNamespacedPodProxyValidateBeforeCall(name, namespace, path, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectPatchNamespacedPodProxyAsync(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectPatchNamespacedPodProxyValidateBeforeCall(name, namespace, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectPatchNamespacedPodProxyRequest { private final String name; private final String namespace; private String path; private APIconnectPatchNamespacedPodProxyRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set path * @param path Path is the URL path to use for the current proxy request to pod. (optional) * @return APIconnectPatchNamespacedPodProxyRequest */ public APIconnectPatchNamespacedPodProxyRequest path(String path) { this.path = path; return this; } /** * Build call for connectPatchNamespacedPodProxy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectPatchNamespacedPodProxyCall(name, namespace, path, _callback); } /** * Execute connectPatchNamespacedPodProxy request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectPatchNamespacedPodProxyWithHttpInfo(name, namespace, path); return localVarResp.getData(); } /** * Execute connectPatchNamespacedPodProxy request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectPatchNamespacedPodProxyWithHttpInfo(name, namespace, path); } /** * Execute connectPatchNamespacedPodProxy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectPatchNamespacedPodProxyAsync(name, namespace, path, _callback); } } /** * * connect PATCH requests to proxy of Pod * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIconnectPatchNamespacedPodProxyRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectPatchNamespacedPodProxyRequest connectPatchNamespacedPodProxy(String name, String namespace) { return new APIconnectPatchNamespacedPodProxyRequest(name, namespace); } private okhttp3.Call connectPatchNamespacedPodProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) .replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (path2 != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectPatchNamespacedPodProxyWithPathValidateBeforeCall(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 connectPatchNamespacedPodProxyWithPath(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling connectPatchNamespacedPodProxyWithPath(Async)"); } // verify the required parameter 'path' is set if (path == null) { throw new ApiException("Missing the required parameter 'path' when calling connectPatchNamespacedPodProxyWithPath(Async)"); } return connectPatchNamespacedPodProxyWithPathCall(name, namespace, path, path2, _callback); } private ApiResponse connectPatchNamespacedPodProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException { okhttp3.Call localVarCall = connectPatchNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectPatchNamespacedPodProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectPatchNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectPatchNamespacedPodProxyWithPathRequest { private final String name; private final String namespace; private final String path; private String path2; private APIconnectPatchNamespacedPodProxyWithPathRequest(String name, String namespace, String path) { this.name = name; this.namespace = namespace; this.path = path; } /** * Set path2 * @param path2 Path is the URL path to use for the current proxy request to pod. (optional) * @return APIconnectPatchNamespacedPodProxyWithPathRequest */ public APIconnectPatchNamespacedPodProxyWithPathRequest path2(String path2) { this.path2 = path2; return this; } /** * Build call for connectPatchNamespacedPodProxyWithPath * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectPatchNamespacedPodProxyWithPathCall(name, namespace, path, path2, _callback); } /** * Execute connectPatchNamespacedPodProxyWithPath request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectPatchNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2); return localVarResp.getData(); } /** * Execute connectPatchNamespacedPodProxyWithPath request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectPatchNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2); } /** * Execute connectPatchNamespacedPodProxyWithPath request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectPatchNamespacedPodProxyWithPathAsync(name, namespace, path, path2, _callback); } } /** * * connect PATCH requests to proxy of Pod * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param path path to the resource (required) * @return APIconnectPatchNamespacedPodProxyWithPathRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectPatchNamespacedPodProxyWithPathRequest connectPatchNamespacedPodProxyWithPath(String name, String namespace, String path) { return new APIconnectPatchNamespacedPodProxyWithPathRequest(name, namespace, path); } private okhttp3.Call connectPatchNamespacedServiceProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (path != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectPatchNamespacedServiceProxyValidateBeforeCall(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 connectPatchNamespacedServiceProxy(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling connectPatchNamespacedServiceProxy(Async)"); } return connectPatchNamespacedServiceProxyCall(name, namespace, path, _callback); } private ApiResponse connectPatchNamespacedServiceProxyWithHttpInfo(String name, String namespace, String path) throws ApiException { okhttp3.Call localVarCall = connectPatchNamespacedServiceProxyValidateBeforeCall(name, namespace, path, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectPatchNamespacedServiceProxyAsync(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectPatchNamespacedServiceProxyValidateBeforeCall(name, namespace, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectPatchNamespacedServiceProxyRequest { private final String name; private final String namespace; private String path; private APIconnectPatchNamespacedServiceProxyRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set path * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return APIconnectPatchNamespacedServiceProxyRequest */ public APIconnectPatchNamespacedServiceProxyRequest path(String path) { this.path = path; return this; } /** * Build call for connectPatchNamespacedServiceProxy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectPatchNamespacedServiceProxyCall(name, namespace, path, _callback); } /** * Execute connectPatchNamespacedServiceProxy request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectPatchNamespacedServiceProxyWithHttpInfo(name, namespace, path); return localVarResp.getData(); } /** * Execute connectPatchNamespacedServiceProxy request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectPatchNamespacedServiceProxyWithHttpInfo(name, namespace, path); } /** * Execute connectPatchNamespacedServiceProxy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectPatchNamespacedServiceProxyAsync(name, namespace, path, _callback); } } /** * * connect PATCH requests to proxy of Service * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIconnectPatchNamespacedServiceProxyRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectPatchNamespacedServiceProxyRequest connectPatchNamespacedServiceProxy(String name, String namespace) { return new APIconnectPatchNamespacedServiceProxyRequest(name, namespace); } private okhttp3.Call connectPatchNamespacedServiceProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) .replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (path2 != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectPatchNamespacedServiceProxyWithPathValidateBeforeCall(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 connectPatchNamespacedServiceProxyWithPath(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling connectPatchNamespacedServiceProxyWithPath(Async)"); } // verify the required parameter 'path' is set if (path == null) { throw new ApiException("Missing the required parameter 'path' when calling connectPatchNamespacedServiceProxyWithPath(Async)"); } return connectPatchNamespacedServiceProxyWithPathCall(name, namespace, path, path2, _callback); } private ApiResponse connectPatchNamespacedServiceProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException { okhttp3.Call localVarCall = connectPatchNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectPatchNamespacedServiceProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectPatchNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectPatchNamespacedServiceProxyWithPathRequest { private final String name; private final String namespace; private final String path; private String path2; private APIconnectPatchNamespacedServiceProxyWithPathRequest(String name, String namespace, String path) { this.name = name; this.namespace = namespace; this.path = path; } /** * Set path2 * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return APIconnectPatchNamespacedServiceProxyWithPathRequest */ public APIconnectPatchNamespacedServiceProxyWithPathRequest path2(String path2) { this.path2 = path2; return this; } /** * Build call for connectPatchNamespacedServiceProxyWithPath * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectPatchNamespacedServiceProxyWithPathCall(name, namespace, path, path2, _callback); } /** * Execute connectPatchNamespacedServiceProxyWithPath request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectPatchNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2); return localVarResp.getData(); } /** * Execute connectPatchNamespacedServiceProxyWithPath request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectPatchNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2); } /** * Execute connectPatchNamespacedServiceProxyWithPath request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectPatchNamespacedServiceProxyWithPathAsync(name, namespace, path, path2, _callback); } } /** * * connect PATCH requests to proxy of Service * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param path path to the resource (required) * @return APIconnectPatchNamespacedServiceProxyWithPathRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectPatchNamespacedServiceProxyWithPathRequest connectPatchNamespacedServiceProxyWithPath(String name, String namespace, String path) { return new APIconnectPatchNamespacedServiceProxyWithPathRequest(name, namespace, path); } private okhttp3.Call connectPatchNodeProxyCall(String name, String path, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/nodes/{name}/proxy" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (path != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectPatchNodeProxyValidateBeforeCall(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 connectPatchNodeProxy(Async)"); } return connectPatchNodeProxyCall(name, path, _callback); } private ApiResponse connectPatchNodeProxyWithHttpInfo(String name, String path) throws ApiException { okhttp3.Call localVarCall = connectPatchNodeProxyValidateBeforeCall(name, path, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectPatchNodeProxyAsync(String name, String path, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectPatchNodeProxyValidateBeforeCall(name, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectPatchNodeProxyRequest { private final String name; private String path; private APIconnectPatchNodeProxyRequest(String name) { this.name = name; } /** * Set path * @param path Path is the URL path to use for the current proxy request to node. (optional) * @return APIconnectPatchNodeProxyRequest */ public APIconnectPatchNodeProxyRequest path(String path) { this.path = path; return this; } /** * Build call for connectPatchNodeProxy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectPatchNodeProxyCall(name, path, _callback); } /** * Execute connectPatchNodeProxy request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectPatchNodeProxyWithHttpInfo(name, path); return localVarResp.getData(); } /** * Execute connectPatchNodeProxy request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectPatchNodeProxyWithHttpInfo(name, path); } /** * Execute connectPatchNodeProxy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectPatchNodeProxyAsync(name, path, _callback); } } /** * * connect PATCH requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @return APIconnectPatchNodeProxyRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectPatchNodeProxyRequest connectPatchNodeProxy(String name) { return new APIconnectPatchNodeProxyRequest(name); } private okhttp3.Call connectPatchNodeProxyWithPathCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/nodes/{name}/proxy/{path}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (path2 != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectPatchNodeProxyWithPathValidateBeforeCall(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 connectPatchNodeProxyWithPath(Async)"); } // verify the required parameter 'path' is set if (path == null) { throw new ApiException("Missing the required parameter 'path' when calling connectPatchNodeProxyWithPath(Async)"); } return connectPatchNodeProxyWithPathCall(name, path, path2, _callback); } private ApiResponse connectPatchNodeProxyWithPathWithHttpInfo(String name, String path, String path2) throws ApiException { okhttp3.Call localVarCall = connectPatchNodeProxyWithPathValidateBeforeCall(name, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectPatchNodeProxyWithPathAsync(String name, String path, String path2, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectPatchNodeProxyWithPathValidateBeforeCall(name, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectPatchNodeProxyWithPathRequest { private final String name; private final String path; private String path2; private APIconnectPatchNodeProxyWithPathRequest(String name, String path) { this.name = name; this.path = path; } /** * Set path2 * @param path2 Path is the URL path to use for the current proxy request to node. (optional) * @return APIconnectPatchNodeProxyWithPathRequest */ public APIconnectPatchNodeProxyWithPathRequest path2(String path2) { this.path2 = path2; return this; } /** * Build call for connectPatchNodeProxyWithPath * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectPatchNodeProxyWithPathCall(name, path, path2, _callback); } /** * Execute connectPatchNodeProxyWithPath request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectPatchNodeProxyWithPathWithHttpInfo(name, path, path2); return localVarResp.getData(); } /** * Execute connectPatchNodeProxyWithPath request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectPatchNodeProxyWithPathWithHttpInfo(name, path, path2); } /** * Execute connectPatchNodeProxyWithPath request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectPatchNodeProxyWithPathAsync(name, path, path2, _callback); } } /** * * connect PATCH requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @param path path to the resource (required) * @return APIconnectPatchNodeProxyWithPathRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectPatchNodeProxyWithPathRequest connectPatchNodeProxyWithPath(String name, String path) { return new APIconnectPatchNodeProxyWithPathRequest(name, path); } private okhttp3.Call connectPostNamespacedPodAttachCall(String name, String namespace, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/attach" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (container != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("container", container)); } if (stderr != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("stderr", stderr)); } if (stdin != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("stdin", stdin)); } if (stdout != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("stdout", stdout)); } if (tty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("tty", tty)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectPostNamespacedPodAttachValidateBeforeCall(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 connectPostNamespacedPodAttach(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling connectPostNamespacedPodAttach(Async)"); } return connectPostNamespacedPodAttachCall(name, namespace, container, stderr, stdin, stdout, tty, _callback); } private ApiResponse connectPostNamespacedPodAttachWithHttpInfo(String name, String namespace, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty) throws ApiException { okhttp3.Call localVarCall = connectPostNamespacedPodAttachValidateBeforeCall(name, namespace, container, stderr, stdin, stdout, tty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectPostNamespacedPodAttachAsync(String name, String namespace, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectPostNamespacedPodAttachValidateBeforeCall(name, namespace, container, stderr, stdin, stdout, tty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectPostNamespacedPodAttachRequest { private final String name; private final String namespace; private String container; private Boolean stderr; private Boolean stdin; private Boolean stdout; private Boolean tty; private APIconnectPostNamespacedPodAttachRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set container * @param container The container in which to execute the command. Defaults to only container if there is only one container in the pod. (optional) * @return APIconnectPostNamespacedPodAttachRequest */ public APIconnectPostNamespacedPodAttachRequest container(String container) { this.container = container; return this; } /** * Set stderr * @param stderr Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. (optional) * @return APIconnectPostNamespacedPodAttachRequest */ public APIconnectPostNamespacedPodAttachRequest stderr(Boolean stderr) { this.stderr = stderr; return this; } /** * Set stdin * @param stdin Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. (optional) * @return APIconnectPostNamespacedPodAttachRequest */ public APIconnectPostNamespacedPodAttachRequest stdin(Boolean stdin) { this.stdin = stdin; return this; } /** * Set stdout * @param stdout Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. (optional) * @return APIconnectPostNamespacedPodAttachRequest */ public APIconnectPostNamespacedPodAttachRequest stdout(Boolean stdout) { this.stdout = stdout; return this; } /** * Set tty * @param tty TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. (optional) * @return APIconnectPostNamespacedPodAttachRequest */ public APIconnectPostNamespacedPodAttachRequest tty(Boolean tty) { this.tty = tty; return this; } /** * Build call for connectPostNamespacedPodAttach * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectPostNamespacedPodAttachCall(name, namespace, container, stderr, stdin, stdout, tty, _callback); } /** * Execute connectPostNamespacedPodAttach request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectPostNamespacedPodAttachWithHttpInfo(name, namespace, container, stderr, stdin, stdout, tty); return localVarResp.getData(); } /** * Execute connectPostNamespacedPodAttach request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectPostNamespacedPodAttachWithHttpInfo(name, namespace, container, stderr, stdin, stdout, tty); } /** * Execute connectPostNamespacedPodAttach request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectPostNamespacedPodAttachAsync(name, namespace, container, stderr, stdin, stdout, tty, _callback); } } /** * * connect POST requests to attach of Pod * @param name name of the PodAttachOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIconnectPostNamespacedPodAttachRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectPostNamespacedPodAttachRequest connectPostNamespacedPodAttach(String name, String namespace) { return new APIconnectPostNamespacedPodAttachRequest(name, namespace); } private okhttp3.Call connectPostNamespacedPodExecCall(String name, String namespace, String command, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/exec" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (command != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("command", command)); } if (container != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("container", container)); } if (stderr != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("stderr", stderr)); } if (stdin != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("stdin", stdin)); } if (stdout != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("stdout", stdout)); } if (tty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("tty", tty)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectPostNamespacedPodExecValidateBeforeCall(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 connectPostNamespacedPodExec(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling connectPostNamespacedPodExec(Async)"); } return connectPostNamespacedPodExecCall(name, namespace, command, container, stderr, stdin, stdout, tty, _callback); } private ApiResponse connectPostNamespacedPodExecWithHttpInfo(String name, String namespace, String command, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty) throws ApiException { okhttp3.Call localVarCall = connectPostNamespacedPodExecValidateBeforeCall(name, namespace, command, container, stderr, stdin, stdout, tty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectPostNamespacedPodExecAsync(String name, String namespace, String command, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectPostNamespacedPodExecValidateBeforeCall(name, namespace, command, container, stderr, stdin, stdout, tty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectPostNamespacedPodExecRequest { private final String name; private final String namespace; private String command; private String container; private Boolean stderr; private Boolean stdin; private Boolean stdout; private Boolean tty; private APIconnectPostNamespacedPodExecRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set command * @param command Command is the remote command to execute. argv array. Not executed within a shell. (optional) * @return APIconnectPostNamespacedPodExecRequest */ public APIconnectPostNamespacedPodExecRequest command(String command) { this.command = command; return this; } /** * Set container * @param container Container in which to execute the command. Defaults to only container if there is only one container in the pod. (optional) * @return APIconnectPostNamespacedPodExecRequest */ public APIconnectPostNamespacedPodExecRequest container(String container) { this.container = container; return this; } /** * Set stderr * @param stderr Redirect the standard error stream of the pod for this call. (optional) * @return APIconnectPostNamespacedPodExecRequest */ public APIconnectPostNamespacedPodExecRequest stderr(Boolean stderr) { this.stderr = stderr; return this; } /** * Set stdin * @param stdin Redirect the standard input stream of the pod for this call. Defaults to false. (optional) * @return APIconnectPostNamespacedPodExecRequest */ public APIconnectPostNamespacedPodExecRequest stdin(Boolean stdin) { this.stdin = stdin; return this; } /** * Set stdout * @param stdout Redirect the standard output stream of the pod for this call. (optional) * @return APIconnectPostNamespacedPodExecRequest */ public APIconnectPostNamespacedPodExecRequest stdout(Boolean stdout) { this.stdout = stdout; return this; } /** * Set tty * @param tty TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. (optional) * @return APIconnectPostNamespacedPodExecRequest */ public APIconnectPostNamespacedPodExecRequest tty(Boolean tty) { this.tty = tty; return this; } /** * Build call for connectPostNamespacedPodExec * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectPostNamespacedPodExecCall(name, namespace, command, container, stderr, stdin, stdout, tty, _callback); } /** * Execute connectPostNamespacedPodExec request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectPostNamespacedPodExecWithHttpInfo(name, namespace, command, container, stderr, stdin, stdout, tty); return localVarResp.getData(); } /** * Execute connectPostNamespacedPodExec request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectPostNamespacedPodExecWithHttpInfo(name, namespace, command, container, stderr, stdin, stdout, tty); } /** * Execute connectPostNamespacedPodExec request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectPostNamespacedPodExecAsync(name, namespace, command, container, stderr, stdin, stdout, tty, _callback); } } /** * * connect POST requests to exec of Pod * @param name name of the PodExecOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIconnectPostNamespacedPodExecRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectPostNamespacedPodExecRequest connectPostNamespacedPodExec(String name, String namespace) { return new APIconnectPostNamespacedPodExecRequest(name, namespace); } private okhttp3.Call connectPostNamespacedPodPortforwardCall(String name, String namespace, Integer ports, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/portforward" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (ports != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("ports", ports)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectPostNamespacedPodPortforwardValidateBeforeCall(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 connectPostNamespacedPodPortforward(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling connectPostNamespacedPodPortforward(Async)"); } return connectPostNamespacedPodPortforwardCall(name, namespace, ports, _callback); } private ApiResponse connectPostNamespacedPodPortforwardWithHttpInfo(String name, String namespace, Integer ports) throws ApiException { okhttp3.Call localVarCall = connectPostNamespacedPodPortforwardValidateBeforeCall(name, namespace, ports, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectPostNamespacedPodPortforwardAsync(String name, String namespace, Integer ports, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectPostNamespacedPodPortforwardValidateBeforeCall(name, namespace, ports, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectPostNamespacedPodPortforwardRequest { private final String name; private final String namespace; private Integer ports; private APIconnectPostNamespacedPodPortforwardRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set ports * @param ports List of ports to forward Required when using WebSockets (optional) * @return APIconnectPostNamespacedPodPortforwardRequest */ public APIconnectPostNamespacedPodPortforwardRequest ports(Integer ports) { this.ports = ports; return this; } /** * Build call for connectPostNamespacedPodPortforward * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectPostNamespacedPodPortforwardCall(name, namespace, ports, _callback); } /** * Execute connectPostNamespacedPodPortforward request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectPostNamespacedPodPortforwardWithHttpInfo(name, namespace, ports); return localVarResp.getData(); } /** * Execute connectPostNamespacedPodPortforward request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectPostNamespacedPodPortforwardWithHttpInfo(name, namespace, ports); } /** * Execute connectPostNamespacedPodPortforward request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectPostNamespacedPodPortforwardAsync(name, namespace, ports, _callback); } } /** * * connect POST requests to portforward of Pod * @param name name of the PodPortForwardOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIconnectPostNamespacedPodPortforwardRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectPostNamespacedPodPortforwardRequest connectPostNamespacedPodPortforward(String name, String namespace) { return new APIconnectPostNamespacedPodPortforwardRequest(name, namespace); } private okhttp3.Call connectPostNamespacedPodProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (path != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectPostNamespacedPodProxyValidateBeforeCall(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 connectPostNamespacedPodProxy(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling connectPostNamespacedPodProxy(Async)"); } return connectPostNamespacedPodProxyCall(name, namespace, path, _callback); } private ApiResponse connectPostNamespacedPodProxyWithHttpInfo(String name, String namespace, String path) throws ApiException { okhttp3.Call localVarCall = connectPostNamespacedPodProxyValidateBeforeCall(name, namespace, path, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectPostNamespacedPodProxyAsync(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectPostNamespacedPodProxyValidateBeforeCall(name, namespace, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectPostNamespacedPodProxyRequest { private final String name; private final String namespace; private String path; private APIconnectPostNamespacedPodProxyRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set path * @param path Path is the URL path to use for the current proxy request to pod. (optional) * @return APIconnectPostNamespacedPodProxyRequest */ public APIconnectPostNamespacedPodProxyRequest path(String path) { this.path = path; return this; } /** * Build call for connectPostNamespacedPodProxy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectPostNamespacedPodProxyCall(name, namespace, path, _callback); } /** * Execute connectPostNamespacedPodProxy request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectPostNamespacedPodProxyWithHttpInfo(name, namespace, path); return localVarResp.getData(); } /** * Execute connectPostNamespacedPodProxy request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectPostNamespacedPodProxyWithHttpInfo(name, namespace, path); } /** * Execute connectPostNamespacedPodProxy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectPostNamespacedPodProxyAsync(name, namespace, path, _callback); } } /** * * connect POST requests to proxy of Pod * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIconnectPostNamespacedPodProxyRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectPostNamespacedPodProxyRequest connectPostNamespacedPodProxy(String name, String namespace) { return new APIconnectPostNamespacedPodProxyRequest(name, namespace); } private okhttp3.Call connectPostNamespacedPodProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) .replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (path2 != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectPostNamespacedPodProxyWithPathValidateBeforeCall(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 connectPostNamespacedPodProxyWithPath(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling connectPostNamespacedPodProxyWithPath(Async)"); } // verify the required parameter 'path' is set if (path == null) { throw new ApiException("Missing the required parameter 'path' when calling connectPostNamespacedPodProxyWithPath(Async)"); } return connectPostNamespacedPodProxyWithPathCall(name, namespace, path, path2, _callback); } private ApiResponse connectPostNamespacedPodProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException { okhttp3.Call localVarCall = connectPostNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectPostNamespacedPodProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectPostNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectPostNamespacedPodProxyWithPathRequest { private final String name; private final String namespace; private final String path; private String path2; private APIconnectPostNamespacedPodProxyWithPathRequest(String name, String namespace, String path) { this.name = name; this.namespace = namespace; this.path = path; } /** * Set path2 * @param path2 Path is the URL path to use for the current proxy request to pod. (optional) * @return APIconnectPostNamespacedPodProxyWithPathRequest */ public APIconnectPostNamespacedPodProxyWithPathRequest path2(String path2) { this.path2 = path2; return this; } /** * Build call for connectPostNamespacedPodProxyWithPath * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectPostNamespacedPodProxyWithPathCall(name, namespace, path, path2, _callback); } /** * Execute connectPostNamespacedPodProxyWithPath request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectPostNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2); return localVarResp.getData(); } /** * Execute connectPostNamespacedPodProxyWithPath request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectPostNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2); } /** * Execute connectPostNamespacedPodProxyWithPath request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectPostNamespacedPodProxyWithPathAsync(name, namespace, path, path2, _callback); } } /** * * connect POST requests to proxy of Pod * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param path path to the resource (required) * @return APIconnectPostNamespacedPodProxyWithPathRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectPostNamespacedPodProxyWithPathRequest connectPostNamespacedPodProxyWithPath(String name, String namespace, String path) { return new APIconnectPostNamespacedPodProxyWithPathRequest(name, namespace, path); } private okhttp3.Call connectPostNamespacedServiceProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (path != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectPostNamespacedServiceProxyValidateBeforeCall(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 connectPostNamespacedServiceProxy(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling connectPostNamespacedServiceProxy(Async)"); } return connectPostNamespacedServiceProxyCall(name, namespace, path, _callback); } private ApiResponse connectPostNamespacedServiceProxyWithHttpInfo(String name, String namespace, String path) throws ApiException { okhttp3.Call localVarCall = connectPostNamespacedServiceProxyValidateBeforeCall(name, namespace, path, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectPostNamespacedServiceProxyAsync(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectPostNamespacedServiceProxyValidateBeforeCall(name, namespace, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectPostNamespacedServiceProxyRequest { private final String name; private final String namespace; private String path; private APIconnectPostNamespacedServiceProxyRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set path * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return APIconnectPostNamespacedServiceProxyRequest */ public APIconnectPostNamespacedServiceProxyRequest path(String path) { this.path = path; return this; } /** * Build call for connectPostNamespacedServiceProxy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectPostNamespacedServiceProxyCall(name, namespace, path, _callback); } /** * Execute connectPostNamespacedServiceProxy request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectPostNamespacedServiceProxyWithHttpInfo(name, namespace, path); return localVarResp.getData(); } /** * Execute connectPostNamespacedServiceProxy request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectPostNamespacedServiceProxyWithHttpInfo(name, namespace, path); } /** * Execute connectPostNamespacedServiceProxy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectPostNamespacedServiceProxyAsync(name, namespace, path, _callback); } } /** * * connect POST requests to proxy of Service * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIconnectPostNamespacedServiceProxyRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectPostNamespacedServiceProxyRequest connectPostNamespacedServiceProxy(String name, String namespace) { return new APIconnectPostNamespacedServiceProxyRequest(name, namespace); } private okhttp3.Call connectPostNamespacedServiceProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) .replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (path2 != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectPostNamespacedServiceProxyWithPathValidateBeforeCall(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 connectPostNamespacedServiceProxyWithPath(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling connectPostNamespacedServiceProxyWithPath(Async)"); } // verify the required parameter 'path' is set if (path == null) { throw new ApiException("Missing the required parameter 'path' when calling connectPostNamespacedServiceProxyWithPath(Async)"); } return connectPostNamespacedServiceProxyWithPathCall(name, namespace, path, path2, _callback); } private ApiResponse connectPostNamespacedServiceProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException { okhttp3.Call localVarCall = connectPostNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectPostNamespacedServiceProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectPostNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectPostNamespacedServiceProxyWithPathRequest { private final String name; private final String namespace; private final String path; private String path2; private APIconnectPostNamespacedServiceProxyWithPathRequest(String name, String namespace, String path) { this.name = name; this.namespace = namespace; this.path = path; } /** * Set path2 * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return APIconnectPostNamespacedServiceProxyWithPathRequest */ public APIconnectPostNamespacedServiceProxyWithPathRequest path2(String path2) { this.path2 = path2; return this; } /** * Build call for connectPostNamespacedServiceProxyWithPath * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectPostNamespacedServiceProxyWithPathCall(name, namespace, path, path2, _callback); } /** * Execute connectPostNamespacedServiceProxyWithPath request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectPostNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2); return localVarResp.getData(); } /** * Execute connectPostNamespacedServiceProxyWithPath request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectPostNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2); } /** * Execute connectPostNamespacedServiceProxyWithPath request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectPostNamespacedServiceProxyWithPathAsync(name, namespace, path, path2, _callback); } } /** * * connect POST requests to proxy of Service * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param path path to the resource (required) * @return APIconnectPostNamespacedServiceProxyWithPathRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectPostNamespacedServiceProxyWithPathRequest connectPostNamespacedServiceProxyWithPath(String name, String namespace, String path) { return new APIconnectPostNamespacedServiceProxyWithPathRequest(name, namespace, path); } private okhttp3.Call connectPostNodeProxyCall(String name, String path, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/nodes/{name}/proxy" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (path != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectPostNodeProxyValidateBeforeCall(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 connectPostNodeProxy(Async)"); } return connectPostNodeProxyCall(name, path, _callback); } private ApiResponse connectPostNodeProxyWithHttpInfo(String name, String path) throws ApiException { okhttp3.Call localVarCall = connectPostNodeProxyValidateBeforeCall(name, path, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectPostNodeProxyAsync(String name, String path, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectPostNodeProxyValidateBeforeCall(name, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectPostNodeProxyRequest { private final String name; private String path; private APIconnectPostNodeProxyRequest(String name) { this.name = name; } /** * Set path * @param path Path is the URL path to use for the current proxy request to node. (optional) * @return APIconnectPostNodeProxyRequest */ public APIconnectPostNodeProxyRequest path(String path) { this.path = path; return this; } /** * Build call for connectPostNodeProxy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectPostNodeProxyCall(name, path, _callback); } /** * Execute connectPostNodeProxy request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectPostNodeProxyWithHttpInfo(name, path); return localVarResp.getData(); } /** * Execute connectPostNodeProxy request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectPostNodeProxyWithHttpInfo(name, path); } /** * Execute connectPostNodeProxy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectPostNodeProxyAsync(name, path, _callback); } } /** * * connect POST requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @return APIconnectPostNodeProxyRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectPostNodeProxyRequest connectPostNodeProxy(String name) { return new APIconnectPostNodeProxyRequest(name); } private okhttp3.Call connectPostNodeProxyWithPathCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/nodes/{name}/proxy/{path}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (path2 != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectPostNodeProxyWithPathValidateBeforeCall(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 connectPostNodeProxyWithPath(Async)"); } // verify the required parameter 'path' is set if (path == null) { throw new ApiException("Missing the required parameter 'path' when calling connectPostNodeProxyWithPath(Async)"); } return connectPostNodeProxyWithPathCall(name, path, path2, _callback); } private ApiResponse connectPostNodeProxyWithPathWithHttpInfo(String name, String path, String path2) throws ApiException { okhttp3.Call localVarCall = connectPostNodeProxyWithPathValidateBeforeCall(name, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectPostNodeProxyWithPathAsync(String name, String path, String path2, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectPostNodeProxyWithPathValidateBeforeCall(name, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectPostNodeProxyWithPathRequest { private final String name; private final String path; private String path2; private APIconnectPostNodeProxyWithPathRequest(String name, String path) { this.name = name; this.path = path; } /** * Set path2 * @param path2 Path is the URL path to use for the current proxy request to node. (optional) * @return APIconnectPostNodeProxyWithPathRequest */ public APIconnectPostNodeProxyWithPathRequest path2(String path2) { this.path2 = path2; return this; } /** * Build call for connectPostNodeProxyWithPath * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectPostNodeProxyWithPathCall(name, path, path2, _callback); } /** * Execute connectPostNodeProxyWithPath request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectPostNodeProxyWithPathWithHttpInfo(name, path, path2); return localVarResp.getData(); } /** * Execute connectPostNodeProxyWithPath request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectPostNodeProxyWithPathWithHttpInfo(name, path, path2); } /** * Execute connectPostNodeProxyWithPath request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectPostNodeProxyWithPathAsync(name, path, path2, _callback); } } /** * * connect POST requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @param path path to the resource (required) * @return APIconnectPostNodeProxyWithPathRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectPostNodeProxyWithPathRequest connectPostNodeProxyWithPath(String name, String path) { return new APIconnectPostNodeProxyWithPathRequest(name, path); } private okhttp3.Call connectPutNamespacedPodProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (path != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectPutNamespacedPodProxyValidateBeforeCall(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 connectPutNamespacedPodProxy(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling connectPutNamespacedPodProxy(Async)"); } return connectPutNamespacedPodProxyCall(name, namespace, path, _callback); } private ApiResponse connectPutNamespacedPodProxyWithHttpInfo(String name, String namespace, String path) throws ApiException { okhttp3.Call localVarCall = connectPutNamespacedPodProxyValidateBeforeCall(name, namespace, path, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectPutNamespacedPodProxyAsync(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectPutNamespacedPodProxyValidateBeforeCall(name, namespace, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectPutNamespacedPodProxyRequest { private final String name; private final String namespace; private String path; private APIconnectPutNamespacedPodProxyRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set path * @param path Path is the URL path to use for the current proxy request to pod. (optional) * @return APIconnectPutNamespacedPodProxyRequest */ public APIconnectPutNamespacedPodProxyRequest path(String path) { this.path = path; return this; } /** * Build call for connectPutNamespacedPodProxy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectPutNamespacedPodProxyCall(name, namespace, path, _callback); } /** * Execute connectPutNamespacedPodProxy request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectPutNamespacedPodProxyWithHttpInfo(name, namespace, path); return localVarResp.getData(); } /** * Execute connectPutNamespacedPodProxy request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectPutNamespacedPodProxyWithHttpInfo(name, namespace, path); } /** * Execute connectPutNamespacedPodProxy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectPutNamespacedPodProxyAsync(name, namespace, path, _callback); } } /** * * connect PUT requests to proxy of Pod * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIconnectPutNamespacedPodProxyRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectPutNamespacedPodProxyRequest connectPutNamespacedPodProxy(String name, String namespace) { return new APIconnectPutNamespacedPodProxyRequest(name, namespace); } private okhttp3.Call connectPutNamespacedPodProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) .replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (path2 != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectPutNamespacedPodProxyWithPathValidateBeforeCall(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 connectPutNamespacedPodProxyWithPath(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling connectPutNamespacedPodProxyWithPath(Async)"); } // verify the required parameter 'path' is set if (path == null) { throw new ApiException("Missing the required parameter 'path' when calling connectPutNamespacedPodProxyWithPath(Async)"); } return connectPutNamespacedPodProxyWithPathCall(name, namespace, path, path2, _callback); } private ApiResponse connectPutNamespacedPodProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException { okhttp3.Call localVarCall = connectPutNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectPutNamespacedPodProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectPutNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectPutNamespacedPodProxyWithPathRequest { private final String name; private final String namespace; private final String path; private String path2; private APIconnectPutNamespacedPodProxyWithPathRequest(String name, String namespace, String path) { this.name = name; this.namespace = namespace; this.path = path; } /** * Set path2 * @param path2 Path is the URL path to use for the current proxy request to pod. (optional) * @return APIconnectPutNamespacedPodProxyWithPathRequest */ public APIconnectPutNamespacedPodProxyWithPathRequest path2(String path2) { this.path2 = path2; return this; } /** * Build call for connectPutNamespacedPodProxyWithPath * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectPutNamespacedPodProxyWithPathCall(name, namespace, path, path2, _callback); } /** * Execute connectPutNamespacedPodProxyWithPath request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectPutNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2); return localVarResp.getData(); } /** * Execute connectPutNamespacedPodProxyWithPath request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectPutNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2); } /** * Execute connectPutNamespacedPodProxyWithPath request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectPutNamespacedPodProxyWithPathAsync(name, namespace, path, path2, _callback); } } /** * * connect PUT requests to proxy of Pod * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param path path to the resource (required) * @return APIconnectPutNamespacedPodProxyWithPathRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectPutNamespacedPodProxyWithPathRequest connectPutNamespacedPodProxyWithPath(String name, String namespace, String path) { return new APIconnectPutNamespacedPodProxyWithPathRequest(name, namespace, path); } private okhttp3.Call connectPutNamespacedServiceProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (path != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectPutNamespacedServiceProxyValidateBeforeCall(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 connectPutNamespacedServiceProxy(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling connectPutNamespacedServiceProxy(Async)"); } return connectPutNamespacedServiceProxyCall(name, namespace, path, _callback); } private ApiResponse connectPutNamespacedServiceProxyWithHttpInfo(String name, String namespace, String path) throws ApiException { okhttp3.Call localVarCall = connectPutNamespacedServiceProxyValidateBeforeCall(name, namespace, path, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectPutNamespacedServiceProxyAsync(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectPutNamespacedServiceProxyValidateBeforeCall(name, namespace, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectPutNamespacedServiceProxyRequest { private final String name; private final String namespace; private String path; private APIconnectPutNamespacedServiceProxyRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set path * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return APIconnectPutNamespacedServiceProxyRequest */ public APIconnectPutNamespacedServiceProxyRequest path(String path) { this.path = path; return this; } /** * Build call for connectPutNamespacedServiceProxy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectPutNamespacedServiceProxyCall(name, namespace, path, _callback); } /** * Execute connectPutNamespacedServiceProxy request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectPutNamespacedServiceProxyWithHttpInfo(name, namespace, path); return localVarResp.getData(); } /** * Execute connectPutNamespacedServiceProxy request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectPutNamespacedServiceProxyWithHttpInfo(name, namespace, path); } /** * Execute connectPutNamespacedServiceProxy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectPutNamespacedServiceProxyAsync(name, namespace, path, _callback); } } /** * * connect PUT requests to proxy of Service * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIconnectPutNamespacedServiceProxyRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectPutNamespacedServiceProxyRequest connectPutNamespacedServiceProxy(String name, String namespace) { return new APIconnectPutNamespacedServiceProxyRequest(name, namespace); } private okhttp3.Call connectPutNamespacedServiceProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) .replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (path2 != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectPutNamespacedServiceProxyWithPathValidateBeforeCall(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 connectPutNamespacedServiceProxyWithPath(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling connectPutNamespacedServiceProxyWithPath(Async)"); } // verify the required parameter 'path' is set if (path == null) { throw new ApiException("Missing the required parameter 'path' when calling connectPutNamespacedServiceProxyWithPath(Async)"); } return connectPutNamespacedServiceProxyWithPathCall(name, namespace, path, path2, _callback); } private ApiResponse connectPutNamespacedServiceProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException { okhttp3.Call localVarCall = connectPutNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectPutNamespacedServiceProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectPutNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectPutNamespacedServiceProxyWithPathRequest { private final String name; private final String namespace; private final String path; private String path2; private APIconnectPutNamespacedServiceProxyWithPathRequest(String name, String namespace, String path) { this.name = name; this.namespace = namespace; this.path = path; } /** * Set path2 * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return APIconnectPutNamespacedServiceProxyWithPathRequest */ public APIconnectPutNamespacedServiceProxyWithPathRequest path2(String path2) { this.path2 = path2; return this; } /** * Build call for connectPutNamespacedServiceProxyWithPath * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectPutNamespacedServiceProxyWithPathCall(name, namespace, path, path2, _callback); } /** * Execute connectPutNamespacedServiceProxyWithPath request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectPutNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2); return localVarResp.getData(); } /** * Execute connectPutNamespacedServiceProxyWithPath request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectPutNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2); } /** * Execute connectPutNamespacedServiceProxyWithPath request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectPutNamespacedServiceProxyWithPathAsync(name, namespace, path, path2, _callback); } } /** * * connect PUT requests to proxy of Service * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param path path to the resource (required) * @return APIconnectPutNamespacedServiceProxyWithPathRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectPutNamespacedServiceProxyWithPathRequest connectPutNamespacedServiceProxyWithPath(String name, String namespace, String path) { return new APIconnectPutNamespacedServiceProxyWithPathRequest(name, namespace, path); } private okhttp3.Call connectPutNodeProxyCall(String name, String path, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/nodes/{name}/proxy" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (path != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectPutNodeProxyValidateBeforeCall(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 connectPutNodeProxy(Async)"); } return connectPutNodeProxyCall(name, path, _callback); } private ApiResponse connectPutNodeProxyWithHttpInfo(String name, String path) throws ApiException { okhttp3.Call localVarCall = connectPutNodeProxyValidateBeforeCall(name, path, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectPutNodeProxyAsync(String name, String path, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectPutNodeProxyValidateBeforeCall(name, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectPutNodeProxyRequest { private final String name; private String path; private APIconnectPutNodeProxyRequest(String name) { this.name = name; } /** * Set path * @param path Path is the URL path to use for the current proxy request to node. (optional) * @return APIconnectPutNodeProxyRequest */ public APIconnectPutNodeProxyRequest path(String path) { this.path = path; return this; } /** * Build call for connectPutNodeProxy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectPutNodeProxyCall(name, path, _callback); } /** * Execute connectPutNodeProxy request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectPutNodeProxyWithHttpInfo(name, path); return localVarResp.getData(); } /** * Execute connectPutNodeProxy request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectPutNodeProxyWithHttpInfo(name, path); } /** * Execute connectPutNodeProxy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectPutNodeProxyAsync(name, path, _callback); } } /** * * connect PUT requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @return APIconnectPutNodeProxyRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectPutNodeProxyRequest connectPutNodeProxy(String name) { return new APIconnectPutNodeProxyRequest(name); } private okhttp3.Call connectPutNodeProxyWithPathCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/nodes/{name}/proxy/{path}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (path2 != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); } final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectPutNodeProxyWithPathValidateBeforeCall(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 connectPutNodeProxyWithPath(Async)"); } // verify the required parameter 'path' is set if (path == null) { throw new ApiException("Missing the required parameter 'path' when calling connectPutNodeProxyWithPath(Async)"); } return connectPutNodeProxyWithPathCall(name, path, path2, _callback); } private ApiResponse connectPutNodeProxyWithPathWithHttpInfo(String name, String path, String path2) throws ApiException { okhttp3.Call localVarCall = connectPutNodeProxyWithPathValidateBeforeCall(name, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call connectPutNodeProxyWithPathAsync(String name, String path, String path2, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = connectPutNodeProxyWithPathValidateBeforeCall(name, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIconnectPutNodeProxyWithPathRequest { private final String name; private final String path; private String path2; private APIconnectPutNodeProxyWithPathRequest(String name, String path) { this.name = name; this.path = path; } /** * Set path2 * @param path2 Path is the URL path to use for the current proxy request to node. (optional) * @return APIconnectPutNodeProxyWithPathRequest */ public APIconnectPutNodeProxyWithPathRequest path2(String path2) { this.path2 = path2; return this; } /** * Build call for connectPutNodeProxyWithPath * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return connectPutNodeProxyWithPathCall(name, path, path2, _callback); } /** * Execute connectPutNodeProxyWithPath request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = connectPutNodeProxyWithPathWithHttpInfo(name, path, path2); return localVarResp.getData(); } /** * Execute connectPutNodeProxyWithPath request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return connectPutNodeProxyWithPathWithHttpInfo(name, path, path2); } /** * Execute connectPutNodeProxyWithPath request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return connectPutNodeProxyWithPathAsync(name, path, path2, _callback); } } /** * * connect PUT requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @param path path to the resource (required) * @return APIconnectPutNodeProxyWithPathRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIconnectPutNodeProxyWithPathRequest connectPutNodeProxyWithPath(String name, String path) { return new APIconnectPutNodeProxyWithPathRequest(name, path); } private okhttp3.Call createNamespaceCall(V1Namespace body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespaceValidateBeforeCall(V1Namespace body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createNamespace(Async)"); } return createNamespaceCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } private ApiResponse createNamespaceWithHttpInfo(V1Namespace body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespaceValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call createNamespaceAsync(V1Namespace body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespaceValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIcreateNamespaceRequest { private final V1Namespace body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private APIcreateNamespaceRequest(V1Namespace body) { this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespaceRequest */ public APIcreateNamespaceRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespaceRequest */ public APIcreateNamespaceRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespaceRequest */ public APIcreateNamespaceRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespaceRequest */ public APIcreateNamespaceRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Build call for createNamespace * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return createNamespaceCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** * Execute createNamespace request * @return V1Namespace * @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 -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1Namespace execute() throws ApiException { ApiResponse localVarResp = createNamespaceWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * Execute createNamespace request with HTTP info returned * @return ApiResponse<V1Namespace> * @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 -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return createNamespaceWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); } /** * Execute createNamespace request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return createNamespaceAsync(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * * create a Namespace * @param body (required) * @return APIcreateNamespaceRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public APIcreateNamespaceRequest createNamespace(V1Namespace body) { return new APIcreateNamespaceRequest(body); } private okhttp3.Call createNamespacedBindingCall(String namespace, V1Binding body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/bindings" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedBindingValidateBeforeCall(String namespace, V1Binding body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedBinding(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createNamespacedBinding(Async)"); } return createNamespacedBindingCall(namespace, body, dryRun, fieldManager, fieldValidation, pretty, _callback); } private ApiResponse createNamespacedBindingWithHttpInfo(String namespace, V1Binding body, String dryRun, String fieldManager, String fieldValidation, String pretty) throws ApiException { okhttp3.Call localVarCall = createNamespacedBindingValidateBeforeCall(namespace, body, dryRun, fieldManager, fieldValidation, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call createNamespacedBindingAsync(String namespace, V1Binding body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedBindingValidateBeforeCall(namespace, body, dryRun, fieldManager, fieldValidation, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIcreateNamespacedBindingRequest { private final String namespace; private final V1Binding body; private String dryRun; private String fieldManager; private String fieldValidation; private String pretty; private APIcreateNamespacedBindingRequest(String namespace, V1Binding body) { this.namespace = namespace; this.body = body; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedBindingRequest */ public APIcreateNamespacedBindingRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedBindingRequest */ public APIcreateNamespacedBindingRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedBindingRequest */ public APIcreateNamespacedBindingRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedBindingRequest */ public APIcreateNamespacedBindingRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Build call for createNamespacedBinding * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return createNamespacedBindingCall(namespace, body, dryRun, fieldManager, fieldValidation, pretty, _callback); } /** * Execute createNamespacedBinding request * @return V1Binding * @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 -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1Binding execute() throws ApiException { ApiResponse localVarResp = createNamespacedBindingWithHttpInfo(namespace, body, dryRun, fieldManager, fieldValidation, pretty); return localVarResp.getData(); } /** * Execute createNamespacedBinding request with HTTP info returned * @return ApiResponse<V1Binding> * @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 -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return createNamespacedBindingWithHttpInfo(namespace, body, dryRun, fieldManager, fieldValidation, pretty); } /** * Execute createNamespacedBinding request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return createNamespacedBindingAsync(namespace, body, dryRun, fieldManager, fieldValidation, pretty, _callback); } } /** * * create a Binding * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIcreateNamespacedBindingRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public APIcreateNamespacedBindingRequest createNamespacedBinding(String namespace, V1Binding body) { return new APIcreateNamespacedBindingRequest(namespace, body); } private okhttp3.Call createNamespacedConfigMapCall(String namespace, V1ConfigMap body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/configmaps" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedConfigMapValidateBeforeCall(String namespace, V1ConfigMap body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedConfigMap(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createNamespacedConfigMap(Async)"); } return createNamespacedConfigMapCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } private ApiResponse createNamespacedConfigMapWithHttpInfo(String namespace, V1ConfigMap body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedConfigMapValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call createNamespacedConfigMapAsync(String namespace, V1ConfigMap body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedConfigMapValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIcreateNamespacedConfigMapRequest { private final String namespace; private final V1ConfigMap body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private APIcreateNamespacedConfigMapRequest(String namespace, V1ConfigMap body) { this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedConfigMapRequest */ public APIcreateNamespacedConfigMapRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedConfigMapRequest */ public APIcreateNamespacedConfigMapRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedConfigMapRequest */ public APIcreateNamespacedConfigMapRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedConfigMapRequest */ public APIcreateNamespacedConfigMapRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Build call for createNamespacedConfigMap * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return createNamespacedConfigMapCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** * Execute createNamespacedConfigMap request * @return V1ConfigMap * @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 -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1ConfigMap execute() throws ApiException { ApiResponse localVarResp = createNamespacedConfigMapWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * Execute createNamespacedConfigMap request with HTTP info returned * @return ApiResponse<V1ConfigMap> * @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 -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return createNamespacedConfigMapWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); } /** * Execute createNamespacedConfigMap request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return createNamespacedConfigMapAsync(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * * create a ConfigMap * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIcreateNamespacedConfigMapRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public APIcreateNamespacedConfigMapRequest createNamespacedConfigMap(String namespace, V1ConfigMap body) { return new APIcreateNamespacedConfigMapRequest(namespace, body); } private okhttp3.Call createNamespacedEndpointsCall(String namespace, V1Endpoints body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/endpoints" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedEndpointsValidateBeforeCall(String namespace, V1Endpoints body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedEndpoints(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createNamespacedEndpoints(Async)"); } return createNamespacedEndpointsCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } private ApiResponse createNamespacedEndpointsWithHttpInfo(String namespace, V1Endpoints body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedEndpointsValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call createNamespacedEndpointsAsync(String namespace, V1Endpoints body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedEndpointsValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIcreateNamespacedEndpointsRequest { private final String namespace; private final V1Endpoints body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private APIcreateNamespacedEndpointsRequest(String namespace, V1Endpoints body) { this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedEndpointsRequest */ public APIcreateNamespacedEndpointsRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedEndpointsRequest */ public APIcreateNamespacedEndpointsRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedEndpointsRequest */ public APIcreateNamespacedEndpointsRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedEndpointsRequest */ public APIcreateNamespacedEndpointsRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Build call for createNamespacedEndpoints * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return createNamespacedEndpointsCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** * Execute createNamespacedEndpoints request * @return V1Endpoints * @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 -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1Endpoints execute() throws ApiException { ApiResponse localVarResp = createNamespacedEndpointsWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * Execute createNamespacedEndpoints request with HTTP info returned * @return ApiResponse<V1Endpoints> * @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 -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return createNamespacedEndpointsWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); } /** * Execute createNamespacedEndpoints request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return createNamespacedEndpointsAsync(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * * create Endpoints * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIcreateNamespacedEndpointsRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public APIcreateNamespacedEndpointsRequest createNamespacedEndpoints(String namespace, V1Endpoints body) { return new APIcreateNamespacedEndpointsRequest(namespace, body); } private okhttp3.Call createNamespacedEventCall(String namespace, CoreV1Event body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/events" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedEventValidateBeforeCall(String namespace, CoreV1Event body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedEvent(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createNamespacedEvent(Async)"); } return createNamespacedEventCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } private ApiResponse createNamespacedEventWithHttpInfo(String namespace, CoreV1Event body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedEventValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call createNamespacedEventAsync(String namespace, CoreV1Event body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedEventValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIcreateNamespacedEventRequest { private final String namespace; private final CoreV1Event body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private APIcreateNamespacedEventRequest(String namespace, CoreV1Event body) { this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedEventRequest */ public APIcreateNamespacedEventRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedEventRequest */ public APIcreateNamespacedEventRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedEventRequest */ public APIcreateNamespacedEventRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedEventRequest */ public APIcreateNamespacedEventRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Build call for createNamespacedEvent * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return createNamespacedEventCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** * Execute createNamespacedEvent request * @return CoreV1Event * @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 -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public CoreV1Event execute() throws ApiException { ApiResponse localVarResp = createNamespacedEventWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * Execute createNamespacedEvent request with HTTP info returned * @return ApiResponse<CoreV1Event> * @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 -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return createNamespacedEventWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); } /** * Execute createNamespacedEvent request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return createNamespacedEventAsync(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * * create an Event * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIcreateNamespacedEventRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public APIcreateNamespacedEventRequest createNamespacedEvent(String namespace, CoreV1Event body) { return new APIcreateNamespacedEventRequest(namespace, body); } private okhttp3.Call createNamespacedLimitRangeCall(String namespace, V1LimitRange body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/limitranges" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedLimitRangeValidateBeforeCall(String namespace, V1LimitRange body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedLimitRange(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createNamespacedLimitRange(Async)"); } return createNamespacedLimitRangeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } private ApiResponse createNamespacedLimitRangeWithHttpInfo(String namespace, V1LimitRange body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedLimitRangeValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call createNamespacedLimitRangeAsync(String namespace, V1LimitRange body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedLimitRangeValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIcreateNamespacedLimitRangeRequest { private final String namespace; private final V1LimitRange body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private APIcreateNamespacedLimitRangeRequest(String namespace, V1LimitRange body) { this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedLimitRangeRequest */ public APIcreateNamespacedLimitRangeRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedLimitRangeRequest */ public APIcreateNamespacedLimitRangeRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedLimitRangeRequest */ public APIcreateNamespacedLimitRangeRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedLimitRangeRequest */ public APIcreateNamespacedLimitRangeRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Build call for createNamespacedLimitRange * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return createNamespacedLimitRangeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** * Execute createNamespacedLimitRange request * @return V1LimitRange * @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 -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1LimitRange execute() throws ApiException { ApiResponse localVarResp = createNamespacedLimitRangeWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * Execute createNamespacedLimitRange request with HTTP info returned * @return ApiResponse<V1LimitRange> * @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 -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return createNamespacedLimitRangeWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); } /** * Execute createNamespacedLimitRange request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return createNamespacedLimitRangeAsync(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * * create a LimitRange * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIcreateNamespacedLimitRangeRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public APIcreateNamespacedLimitRangeRequest createNamespacedLimitRange(String namespace, V1LimitRange body) { return new APIcreateNamespacedLimitRangeRequest(namespace, body); } private okhttp3.Call createNamespacedPersistentVolumeClaimCall(String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/persistentvolumeclaims" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedPersistentVolumeClaimValidateBeforeCall(String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedPersistentVolumeClaim(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createNamespacedPersistentVolumeClaim(Async)"); } return createNamespacedPersistentVolumeClaimCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } private ApiResponse createNamespacedPersistentVolumeClaimWithHttpInfo(String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedPersistentVolumeClaimValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call createNamespacedPersistentVolumeClaimAsync(String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedPersistentVolumeClaimValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIcreateNamespacedPersistentVolumeClaimRequest { private final String namespace; private final V1PersistentVolumeClaim body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private APIcreateNamespacedPersistentVolumeClaimRequest(String namespace, V1PersistentVolumeClaim body) { this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedPersistentVolumeClaimRequest */ public APIcreateNamespacedPersistentVolumeClaimRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedPersistentVolumeClaimRequest */ public APIcreateNamespacedPersistentVolumeClaimRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedPersistentVolumeClaimRequest */ public APIcreateNamespacedPersistentVolumeClaimRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedPersistentVolumeClaimRequest */ public APIcreateNamespacedPersistentVolumeClaimRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Build call for createNamespacedPersistentVolumeClaim * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return createNamespacedPersistentVolumeClaimCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** * Execute createNamespacedPersistentVolumeClaim request * @return V1PersistentVolumeClaim * @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 -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1PersistentVolumeClaim execute() throws ApiException { ApiResponse localVarResp = createNamespacedPersistentVolumeClaimWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * Execute createNamespacedPersistentVolumeClaim request with HTTP info returned * @return ApiResponse<V1PersistentVolumeClaim> * @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 -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return createNamespacedPersistentVolumeClaimWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); } /** * Execute createNamespacedPersistentVolumeClaim request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return createNamespacedPersistentVolumeClaimAsync(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * * create a PersistentVolumeClaim * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIcreateNamespacedPersistentVolumeClaimRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public APIcreateNamespacedPersistentVolumeClaimRequest createNamespacedPersistentVolumeClaim(String namespace, V1PersistentVolumeClaim body) { return new APIcreateNamespacedPersistentVolumeClaimRequest(namespace, body); } private okhttp3.Call createNamespacedPodCall(String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedPodValidateBeforeCall(String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedPod(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createNamespacedPod(Async)"); } return createNamespacedPodCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } private ApiResponse createNamespacedPodWithHttpInfo(String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedPodValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call createNamespacedPodAsync(String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedPodValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIcreateNamespacedPodRequest { private final String namespace; private final V1Pod body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private APIcreateNamespacedPodRequest(String namespace, V1Pod body) { this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedPodRequest */ public APIcreateNamespacedPodRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedPodRequest */ public APIcreateNamespacedPodRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedPodRequest */ public APIcreateNamespacedPodRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedPodRequest */ public APIcreateNamespacedPodRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Build call for createNamespacedPod * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return createNamespacedPodCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** * Execute createNamespacedPod request * @return V1Pod * @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 -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1Pod execute() throws ApiException { ApiResponse localVarResp = createNamespacedPodWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * Execute createNamespacedPod request with HTTP info returned * @return ApiResponse<V1Pod> * @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 -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return createNamespacedPodWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); } /** * Execute createNamespacedPod request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return createNamespacedPodAsync(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * * create a Pod * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIcreateNamespacedPodRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public APIcreateNamespacedPodRequest createNamespacedPod(String namespace, V1Pod body) { return new APIcreateNamespacedPodRequest(namespace, body); } private okhttp3.Call createNamespacedPodBindingCall(String name, String namespace, V1Binding body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/binding" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedPodBindingValidateBeforeCall(String name, String namespace, V1Binding body, String dryRun, String fieldManager, String fieldValidation, String pretty, 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 createNamespacedPodBinding(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedPodBinding(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createNamespacedPodBinding(Async)"); } return createNamespacedPodBindingCall(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, _callback); } private ApiResponse createNamespacedPodBindingWithHttpInfo(String name, String namespace, V1Binding body, String dryRun, String fieldManager, String fieldValidation, String pretty) throws ApiException { okhttp3.Call localVarCall = createNamespacedPodBindingValidateBeforeCall(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call createNamespacedPodBindingAsync(String name, String namespace, V1Binding body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedPodBindingValidateBeforeCall(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIcreateNamespacedPodBindingRequest { private final String name; private final String namespace; private final V1Binding body; private String dryRun; private String fieldManager; private String fieldValidation; private String pretty; private APIcreateNamespacedPodBindingRequest(String name, String namespace, V1Binding body) { this.name = name; this.namespace = namespace; this.body = body; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedPodBindingRequest */ public APIcreateNamespacedPodBindingRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedPodBindingRequest */ public APIcreateNamespacedPodBindingRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedPodBindingRequest */ public APIcreateNamespacedPodBindingRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedPodBindingRequest */ public APIcreateNamespacedPodBindingRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Build call for createNamespacedPodBinding * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return createNamespacedPodBindingCall(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, _callback); } /** * Execute createNamespacedPodBinding request * @return V1Binding * @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 -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1Binding execute() throws ApiException { ApiResponse localVarResp = createNamespacedPodBindingWithHttpInfo(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty); return localVarResp.getData(); } /** * Execute createNamespacedPodBinding request with HTTP info returned * @return ApiResponse<V1Binding> * @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 -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return createNamespacedPodBindingWithHttpInfo(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty); } /** * Execute createNamespacedPodBinding request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return createNamespacedPodBindingAsync(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, _callback); } } /** * * create binding of a Pod * @param name name of the Binding (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIcreateNamespacedPodBindingRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public APIcreateNamespacedPodBindingRequest createNamespacedPodBinding(String name, String namespace, V1Binding body) { return new APIcreateNamespacedPodBindingRequest(name, namespace, body); } private okhttp3.Call createNamespacedPodEvictionCall(String name, String namespace, V1Eviction body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/eviction" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedPodEvictionValidateBeforeCall(String name, String namespace, V1Eviction body, String dryRun, String fieldManager, String fieldValidation, String pretty, 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 createNamespacedPodEviction(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedPodEviction(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createNamespacedPodEviction(Async)"); } return createNamespacedPodEvictionCall(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, _callback); } private ApiResponse createNamespacedPodEvictionWithHttpInfo(String name, String namespace, V1Eviction body, String dryRun, String fieldManager, String fieldValidation, String pretty) throws ApiException { okhttp3.Call localVarCall = createNamespacedPodEvictionValidateBeforeCall(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call createNamespacedPodEvictionAsync(String name, String namespace, V1Eviction body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedPodEvictionValidateBeforeCall(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIcreateNamespacedPodEvictionRequest { private final String name; private final String namespace; private final V1Eviction body; private String dryRun; private String fieldManager; private String fieldValidation; private String pretty; private APIcreateNamespacedPodEvictionRequest(String name, String namespace, V1Eviction body) { this.name = name; this.namespace = namespace; this.body = body; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedPodEvictionRequest */ public APIcreateNamespacedPodEvictionRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedPodEvictionRequest */ public APIcreateNamespacedPodEvictionRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedPodEvictionRequest */ public APIcreateNamespacedPodEvictionRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedPodEvictionRequest */ public APIcreateNamespacedPodEvictionRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Build call for createNamespacedPodEviction * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return createNamespacedPodEvictionCall(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, _callback); } /** * Execute createNamespacedPodEviction request * @return V1Eviction * @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 -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1Eviction execute() throws ApiException { ApiResponse localVarResp = createNamespacedPodEvictionWithHttpInfo(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty); return localVarResp.getData(); } /** * Execute createNamespacedPodEviction request with HTTP info returned * @return ApiResponse<V1Eviction> * @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 -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return createNamespacedPodEvictionWithHttpInfo(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty); } /** * Execute createNamespacedPodEviction request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return createNamespacedPodEvictionAsync(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, _callback); } } /** * * create eviction of a Pod * @param name name of the Eviction (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIcreateNamespacedPodEvictionRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public APIcreateNamespacedPodEvictionRequest createNamespacedPodEviction(String name, String namespace, V1Eviction body) { return new APIcreateNamespacedPodEvictionRequest(name, namespace, body); } private okhttp3.Call createNamespacedPodTemplateCall(String namespace, V1PodTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/podtemplates" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedPodTemplateValidateBeforeCall(String namespace, V1PodTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedPodTemplate(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createNamespacedPodTemplate(Async)"); } return createNamespacedPodTemplateCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } private ApiResponse createNamespacedPodTemplateWithHttpInfo(String namespace, V1PodTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedPodTemplateValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call createNamespacedPodTemplateAsync(String namespace, V1PodTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedPodTemplateValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIcreateNamespacedPodTemplateRequest { private final String namespace; private final V1PodTemplate body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private APIcreateNamespacedPodTemplateRequest(String namespace, V1PodTemplate body) { this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedPodTemplateRequest */ public APIcreateNamespacedPodTemplateRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedPodTemplateRequest */ public APIcreateNamespacedPodTemplateRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedPodTemplateRequest */ public APIcreateNamespacedPodTemplateRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedPodTemplateRequest */ public APIcreateNamespacedPodTemplateRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Build call for createNamespacedPodTemplate * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return createNamespacedPodTemplateCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** * Execute createNamespacedPodTemplate request * @return V1PodTemplate * @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 -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1PodTemplate execute() throws ApiException { ApiResponse localVarResp = createNamespacedPodTemplateWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * Execute createNamespacedPodTemplate request with HTTP info returned * @return ApiResponse<V1PodTemplate> * @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 -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return createNamespacedPodTemplateWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); } /** * Execute createNamespacedPodTemplate request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return createNamespacedPodTemplateAsync(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * * create a PodTemplate * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIcreateNamespacedPodTemplateRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public APIcreateNamespacedPodTemplateRequest createNamespacedPodTemplate(String namespace, V1PodTemplate body) { return new APIcreateNamespacedPodTemplateRequest(namespace, body); } private okhttp3.Call createNamespacedReplicationControllerCall(String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/replicationcontrollers" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedReplicationControllerValidateBeforeCall(String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedReplicationController(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createNamespacedReplicationController(Async)"); } return createNamespacedReplicationControllerCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } private ApiResponse createNamespacedReplicationControllerWithHttpInfo(String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedReplicationControllerValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call createNamespacedReplicationControllerAsync(String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedReplicationControllerValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIcreateNamespacedReplicationControllerRequest { private final String namespace; private final V1ReplicationController body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private APIcreateNamespacedReplicationControllerRequest(String namespace, V1ReplicationController body) { this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedReplicationControllerRequest */ public APIcreateNamespacedReplicationControllerRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedReplicationControllerRequest */ public APIcreateNamespacedReplicationControllerRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedReplicationControllerRequest */ public APIcreateNamespacedReplicationControllerRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedReplicationControllerRequest */ public APIcreateNamespacedReplicationControllerRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Build call for createNamespacedReplicationController * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return createNamespacedReplicationControllerCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** * Execute createNamespacedReplicationController request * @return V1ReplicationController * @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 -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1ReplicationController execute() throws ApiException { ApiResponse localVarResp = createNamespacedReplicationControllerWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * Execute createNamespacedReplicationController request with HTTP info returned * @return ApiResponse<V1ReplicationController> * @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 -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return createNamespacedReplicationControllerWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); } /** * Execute createNamespacedReplicationController request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return createNamespacedReplicationControllerAsync(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * * create a ReplicationController * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIcreateNamespacedReplicationControllerRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public APIcreateNamespacedReplicationControllerRequest createNamespacedReplicationController(String namespace, V1ReplicationController body) { return new APIcreateNamespacedReplicationControllerRequest(namespace, body); } private okhttp3.Call createNamespacedResourceQuotaCall(String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/resourcequotas" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedResourceQuotaValidateBeforeCall(String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedResourceQuota(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createNamespacedResourceQuota(Async)"); } return createNamespacedResourceQuotaCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } private ApiResponse createNamespacedResourceQuotaWithHttpInfo(String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedResourceQuotaValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call createNamespacedResourceQuotaAsync(String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedResourceQuotaValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIcreateNamespacedResourceQuotaRequest { private final String namespace; private final V1ResourceQuota body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private APIcreateNamespacedResourceQuotaRequest(String namespace, V1ResourceQuota body) { this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedResourceQuotaRequest */ public APIcreateNamespacedResourceQuotaRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedResourceQuotaRequest */ public APIcreateNamespacedResourceQuotaRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedResourceQuotaRequest */ public APIcreateNamespacedResourceQuotaRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedResourceQuotaRequest */ public APIcreateNamespacedResourceQuotaRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Build call for createNamespacedResourceQuota * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return createNamespacedResourceQuotaCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** * Execute createNamespacedResourceQuota request * @return V1ResourceQuota * @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 -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1ResourceQuota execute() throws ApiException { ApiResponse localVarResp = createNamespacedResourceQuotaWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * Execute createNamespacedResourceQuota request with HTTP info returned * @return ApiResponse<V1ResourceQuota> * @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 -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return createNamespacedResourceQuotaWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); } /** * Execute createNamespacedResourceQuota request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return createNamespacedResourceQuotaAsync(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * * create a ResourceQuota * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIcreateNamespacedResourceQuotaRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public APIcreateNamespacedResourceQuotaRequest createNamespacedResourceQuota(String namespace, V1ResourceQuota body) { return new APIcreateNamespacedResourceQuotaRequest(namespace, body); } private okhttp3.Call createNamespacedSecretCall(String namespace, V1Secret body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/secrets" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedSecretValidateBeforeCall(String namespace, V1Secret body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedSecret(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createNamespacedSecret(Async)"); } return createNamespacedSecretCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } private ApiResponse createNamespacedSecretWithHttpInfo(String namespace, V1Secret body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedSecretValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call createNamespacedSecretAsync(String namespace, V1Secret body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedSecretValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIcreateNamespacedSecretRequest { private final String namespace; private final V1Secret body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private APIcreateNamespacedSecretRequest(String namespace, V1Secret body) { this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedSecretRequest */ public APIcreateNamespacedSecretRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedSecretRequest */ public APIcreateNamespacedSecretRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedSecretRequest */ public APIcreateNamespacedSecretRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedSecretRequest */ public APIcreateNamespacedSecretRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Build call for createNamespacedSecret * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return createNamespacedSecretCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** * Execute createNamespacedSecret request * @return V1Secret * @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 -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1Secret execute() throws ApiException { ApiResponse localVarResp = createNamespacedSecretWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * Execute createNamespacedSecret request with HTTP info returned * @return ApiResponse<V1Secret> * @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 -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return createNamespacedSecretWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); } /** * Execute createNamespacedSecret request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return createNamespacedSecretAsync(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * * create a Secret * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIcreateNamespacedSecretRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public APIcreateNamespacedSecretRequest createNamespacedSecret(String namespace, V1Secret body) { return new APIcreateNamespacedSecretRequest(namespace, body); } private okhttp3.Call createNamespacedServiceCall(String namespace, V1Service body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedServiceValidateBeforeCall(String namespace, V1Service body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedService(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createNamespacedService(Async)"); } return createNamespacedServiceCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } private ApiResponse createNamespacedServiceWithHttpInfo(String namespace, V1Service body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedServiceValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call createNamespacedServiceAsync(String namespace, V1Service body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedServiceValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIcreateNamespacedServiceRequest { private final String namespace; private final V1Service body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private APIcreateNamespacedServiceRequest(String namespace, V1Service body) { this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedServiceRequest */ public APIcreateNamespacedServiceRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedServiceRequest */ public APIcreateNamespacedServiceRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedServiceRequest */ public APIcreateNamespacedServiceRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedServiceRequest */ public APIcreateNamespacedServiceRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Build call for createNamespacedService * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return createNamespacedServiceCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** * Execute createNamespacedService request * @return V1Service * @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 -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1Service execute() throws ApiException { ApiResponse localVarResp = createNamespacedServiceWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * Execute createNamespacedService request with HTTP info returned * @return ApiResponse<V1Service> * @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 -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return createNamespacedServiceWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); } /** * Execute createNamespacedService request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return createNamespacedServiceAsync(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * * create a Service * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIcreateNamespacedServiceRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public APIcreateNamespacedServiceRequest createNamespacedService(String namespace, V1Service body) { return new APIcreateNamespacedServiceRequest(namespace, body); } private okhttp3.Call createNamespacedServiceAccountCall(String namespace, V1ServiceAccount body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/serviceaccounts" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedServiceAccountValidateBeforeCall(String namespace, V1ServiceAccount body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedServiceAccount(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createNamespacedServiceAccount(Async)"); } return createNamespacedServiceAccountCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } private ApiResponse createNamespacedServiceAccountWithHttpInfo(String namespace, V1ServiceAccount body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedServiceAccountValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call createNamespacedServiceAccountAsync(String namespace, V1ServiceAccount body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedServiceAccountValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIcreateNamespacedServiceAccountRequest { private final String namespace; private final V1ServiceAccount body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private APIcreateNamespacedServiceAccountRequest(String namespace, V1ServiceAccount body) { this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedServiceAccountRequest */ public APIcreateNamespacedServiceAccountRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedServiceAccountRequest */ public APIcreateNamespacedServiceAccountRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedServiceAccountRequest */ public APIcreateNamespacedServiceAccountRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedServiceAccountRequest */ public APIcreateNamespacedServiceAccountRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Build call for createNamespacedServiceAccount * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return createNamespacedServiceAccountCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** * Execute createNamespacedServiceAccount request * @return V1ServiceAccount * @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 -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1ServiceAccount execute() throws ApiException { ApiResponse localVarResp = createNamespacedServiceAccountWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * Execute createNamespacedServiceAccount request with HTTP info returned * @return ApiResponse<V1ServiceAccount> * @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 -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return createNamespacedServiceAccountWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); } /** * Execute createNamespacedServiceAccount request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return createNamespacedServiceAccountAsync(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * * create a ServiceAccount * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIcreateNamespacedServiceAccountRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public APIcreateNamespacedServiceAccountRequest createNamespacedServiceAccount(String namespace, V1ServiceAccount body) { return new APIcreateNamespacedServiceAccountRequest(namespace, body); } private okhttp3.Call createNamespacedServiceAccountTokenCall(String name, String namespace, AuthenticationV1TokenRequest body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/serviceaccounts/{name}/token" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedServiceAccountTokenValidateBeforeCall(String name, String namespace, AuthenticationV1TokenRequest body, String dryRun, String fieldManager, String fieldValidation, String pretty, 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 createNamespacedServiceAccountToken(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedServiceAccountToken(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createNamespacedServiceAccountToken(Async)"); } return createNamespacedServiceAccountTokenCall(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, _callback); } private ApiResponse createNamespacedServiceAccountTokenWithHttpInfo(String name, String namespace, AuthenticationV1TokenRequest body, String dryRun, String fieldManager, String fieldValidation, String pretty) throws ApiException { okhttp3.Call localVarCall = createNamespacedServiceAccountTokenValidateBeforeCall(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call createNamespacedServiceAccountTokenAsync(String name, String namespace, AuthenticationV1TokenRequest body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedServiceAccountTokenValidateBeforeCall(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIcreateNamespacedServiceAccountTokenRequest { private final String name; private final String namespace; private final AuthenticationV1TokenRequest body; private String dryRun; private String fieldManager; private String fieldValidation; private String pretty; private APIcreateNamespacedServiceAccountTokenRequest(String name, String namespace, AuthenticationV1TokenRequest body) { this.name = name; this.namespace = namespace; this.body = body; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedServiceAccountTokenRequest */ public APIcreateNamespacedServiceAccountTokenRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedServiceAccountTokenRequest */ public APIcreateNamespacedServiceAccountTokenRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedServiceAccountTokenRequest */ public APIcreateNamespacedServiceAccountTokenRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedServiceAccountTokenRequest */ public APIcreateNamespacedServiceAccountTokenRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Build call for createNamespacedServiceAccountToken * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return createNamespacedServiceAccountTokenCall(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, _callback); } /** * Execute createNamespacedServiceAccountToken request * @return AuthenticationV1TokenRequest * @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 -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public AuthenticationV1TokenRequest execute() throws ApiException { ApiResponse localVarResp = createNamespacedServiceAccountTokenWithHttpInfo(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty); return localVarResp.getData(); } /** * Execute createNamespacedServiceAccountToken request with HTTP info returned * @return ApiResponse<AuthenticationV1TokenRequest> * @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 -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return createNamespacedServiceAccountTokenWithHttpInfo(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty); } /** * Execute createNamespacedServiceAccountToken request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return createNamespacedServiceAccountTokenAsync(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, _callback); } } /** * * create token of a ServiceAccount * @param name name of the TokenRequest (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIcreateNamespacedServiceAccountTokenRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public APIcreateNamespacedServiceAccountTokenRequest createNamespacedServiceAccountToken(String name, String namespace, AuthenticationV1TokenRequest body) { return new APIcreateNamespacedServiceAccountTokenRequest(name, namespace, body); } private okhttp3.Call createNodeCall(V1Node body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/nodes"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNodeValidateBeforeCall(V1Node body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createNode(Async)"); } return createNodeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } private ApiResponse createNodeWithHttpInfo(V1Node body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNodeValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call createNodeAsync(V1Node body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNodeValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIcreateNodeRequest { private final V1Node body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private APIcreateNodeRequest(V1Node body) { this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNodeRequest */ public APIcreateNodeRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNodeRequest */ public APIcreateNodeRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNodeRequest */ public APIcreateNodeRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNodeRequest */ public APIcreateNodeRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Build call for createNode * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return createNodeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** * Execute createNode request * @return V1Node * @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 -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1Node execute() throws ApiException { ApiResponse localVarResp = createNodeWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * Execute createNode request with HTTP info returned * @return ApiResponse<V1Node> * @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 -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return createNodeWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); } /** * Execute createNode request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return createNodeAsync(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * * create a Node * @param body (required) * @return APIcreateNodeRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public APIcreateNodeRequest createNode(V1Node body) { return new APIcreateNodeRequest(body); } private okhttp3.Call createPersistentVolumeCall(V1PersistentVolume body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/persistentvolumes"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createPersistentVolumeValidateBeforeCall(V1PersistentVolume body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createPersistentVolume(Async)"); } return createPersistentVolumeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } private ApiResponse createPersistentVolumeWithHttpInfo(V1PersistentVolume body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createPersistentVolumeValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call createPersistentVolumeAsync(V1PersistentVolume body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createPersistentVolumeValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIcreatePersistentVolumeRequest { private final V1PersistentVolume body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private APIcreatePersistentVolumeRequest(V1PersistentVolume body) { this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreatePersistentVolumeRequest */ public APIcreatePersistentVolumeRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreatePersistentVolumeRequest */ public APIcreatePersistentVolumeRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreatePersistentVolumeRequest */ public APIcreatePersistentVolumeRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreatePersistentVolumeRequest */ public APIcreatePersistentVolumeRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Build call for createPersistentVolume * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return createPersistentVolumeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** * Execute createPersistentVolume request * @return V1PersistentVolume * @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 -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1PersistentVolume execute() throws ApiException { ApiResponse localVarResp = createPersistentVolumeWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * Execute createPersistentVolume request with HTTP info returned * @return ApiResponse<V1PersistentVolume> * @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 -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return createPersistentVolumeWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); } /** * Execute createPersistentVolume request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return createPersistentVolumeAsync(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * * create a PersistentVolume * @param body (required) * @return APIcreatePersistentVolumeRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public APIcreatePersistentVolumeRequest createPersistentVolume(V1PersistentVolume body) { return new APIcreatePersistentVolumeRequest(body); } private okhttp3.Call deleteCollectionNamespacedConfigMapCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/configmaps" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (_continue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } if (gracePeriodSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } if (propagationPolicy != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } if (resourceVersionMatch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); } if (sendInitialEvents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedConfigMapValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedConfigMap(Async)"); } return deleteCollectionNamespacedConfigMapCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } private ApiResponse deleteCollectionNamespacedConfigMapWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedConfigMapValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call deleteCollectionNamespacedConfigMapAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedConfigMapValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIdeleteCollectionNamespacedConfigMapRequest { private final String namespace; private String pretty; private String _continue; private String dryRun; private String fieldSelector; private Integer gracePeriodSeconds; private String labelSelector; private Integer limit; private Boolean orphanDependents; private String propagationPolicy; private String resourceVersion; private String resourceVersionMatch; private Boolean sendInitialEvents; private Integer timeoutSeconds; private V1DeleteOptions body; private APIdeleteCollectionNamespacedConfigMapRequest(String namespace) { this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedConfigMapRequest */ public APIdeleteCollectionNamespacedConfigMapRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedConfigMapRequest */ public APIdeleteCollectionNamespacedConfigMapRequest _continue(String _continue) { this._continue = _continue; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedConfigMapRequest */ public APIdeleteCollectionNamespacedConfigMapRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedConfigMapRequest */ public APIdeleteCollectionNamespacedConfigMapRequest fieldSelector(String fieldSelector) { this.fieldSelector = fieldSelector; return this; } /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedConfigMapRequest */ public APIdeleteCollectionNamespacedConfigMapRequest gracePeriodSeconds(Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedConfigMapRequest */ public APIdeleteCollectionNamespacedConfigMapRequest labelSelector(String labelSelector) { this.labelSelector = labelSelector; return this; } /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedConfigMapRequest */ public APIdeleteCollectionNamespacedConfigMapRequest limit(Integer limit) { this.limit = limit; return this; } /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedConfigMapRequest */ public APIdeleteCollectionNamespacedConfigMapRequest orphanDependents(Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedConfigMapRequest */ public APIdeleteCollectionNamespacedConfigMapRequest propagationPolicy(String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedConfigMapRequest */ public APIdeleteCollectionNamespacedConfigMapRequest resourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedConfigMapRequest */ public APIdeleteCollectionNamespacedConfigMapRequest resourceVersionMatch(String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNamespacedConfigMapRequest */ public APIdeleteCollectionNamespacedConfigMapRequest sendInitialEvents(Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedConfigMapRequest */ public APIdeleteCollectionNamespacedConfigMapRequest timeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } /** * Set body * @param body (optional) * @return APIdeleteCollectionNamespacedConfigMapRequest */ public APIdeleteCollectionNamespacedConfigMapRequest body(V1DeleteOptions body) { this.body = body; return this; } /** * Build call for deleteCollectionNamespacedConfigMap * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return deleteCollectionNamespacedConfigMapCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } /** * Execute deleteCollectionNamespacedConfigMap request * @return V1Status * @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 V1Status execute() throws ApiException { ApiResponse localVarResp = deleteCollectionNamespacedConfigMapWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * Execute deleteCollectionNamespacedConfigMap request with HTTP info returned * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return deleteCollectionNamespacedConfigMapWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); } /** * Execute deleteCollectionNamespacedConfigMap request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deleteCollectionNamespacedConfigMapAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } } /** * * delete collection of ConfigMap * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedConfigMapRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIdeleteCollectionNamespacedConfigMapRequest deleteCollectionNamespacedConfigMap(String namespace) { return new APIdeleteCollectionNamespacedConfigMapRequest(namespace); } private okhttp3.Call deleteCollectionNamespacedEndpointsCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/endpoints" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (_continue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } if (gracePeriodSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } if (propagationPolicy != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } if (resourceVersionMatch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); } if (sendInitialEvents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedEndpointsValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedEndpoints(Async)"); } return deleteCollectionNamespacedEndpointsCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } private ApiResponse deleteCollectionNamespacedEndpointsWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedEndpointsValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call deleteCollectionNamespacedEndpointsAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedEndpointsValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIdeleteCollectionNamespacedEndpointsRequest { private final String namespace; private String pretty; private String _continue; private String dryRun; private String fieldSelector; private Integer gracePeriodSeconds; private String labelSelector; private Integer limit; private Boolean orphanDependents; private String propagationPolicy; private String resourceVersion; private String resourceVersionMatch; private Boolean sendInitialEvents; private Integer timeoutSeconds; private V1DeleteOptions body; private APIdeleteCollectionNamespacedEndpointsRequest(String namespace) { this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedEndpointsRequest */ public APIdeleteCollectionNamespacedEndpointsRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedEndpointsRequest */ public APIdeleteCollectionNamespacedEndpointsRequest _continue(String _continue) { this._continue = _continue; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedEndpointsRequest */ public APIdeleteCollectionNamespacedEndpointsRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedEndpointsRequest */ public APIdeleteCollectionNamespacedEndpointsRequest fieldSelector(String fieldSelector) { this.fieldSelector = fieldSelector; return this; } /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedEndpointsRequest */ public APIdeleteCollectionNamespacedEndpointsRequest gracePeriodSeconds(Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedEndpointsRequest */ public APIdeleteCollectionNamespacedEndpointsRequest labelSelector(String labelSelector) { this.labelSelector = labelSelector; return this; } /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedEndpointsRequest */ public APIdeleteCollectionNamespacedEndpointsRequest limit(Integer limit) { this.limit = limit; return this; } /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedEndpointsRequest */ public APIdeleteCollectionNamespacedEndpointsRequest orphanDependents(Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedEndpointsRequest */ public APIdeleteCollectionNamespacedEndpointsRequest propagationPolicy(String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedEndpointsRequest */ public APIdeleteCollectionNamespacedEndpointsRequest resourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedEndpointsRequest */ public APIdeleteCollectionNamespacedEndpointsRequest resourceVersionMatch(String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNamespacedEndpointsRequest */ public APIdeleteCollectionNamespacedEndpointsRequest sendInitialEvents(Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedEndpointsRequest */ public APIdeleteCollectionNamespacedEndpointsRequest timeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } /** * Set body * @param body (optional) * @return APIdeleteCollectionNamespacedEndpointsRequest */ public APIdeleteCollectionNamespacedEndpointsRequest body(V1DeleteOptions body) { this.body = body; return this; } /** * Build call for deleteCollectionNamespacedEndpoints * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return deleteCollectionNamespacedEndpointsCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } /** * Execute deleteCollectionNamespacedEndpoints request * @return V1Status * @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 V1Status execute() throws ApiException { ApiResponse localVarResp = deleteCollectionNamespacedEndpointsWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * Execute deleteCollectionNamespacedEndpoints request with HTTP info returned * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return deleteCollectionNamespacedEndpointsWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); } /** * Execute deleteCollectionNamespacedEndpoints request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deleteCollectionNamespacedEndpointsAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } } /** * * delete collection of Endpoints * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedEndpointsRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIdeleteCollectionNamespacedEndpointsRequest deleteCollectionNamespacedEndpoints(String namespace) { return new APIdeleteCollectionNamespacedEndpointsRequest(namespace); } private okhttp3.Call deleteCollectionNamespacedEventCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/events" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (_continue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } if (gracePeriodSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } if (propagationPolicy != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } if (resourceVersionMatch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); } if (sendInitialEvents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedEventValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedEvent(Async)"); } return deleteCollectionNamespacedEventCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } private ApiResponse deleteCollectionNamespacedEventWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedEventValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call deleteCollectionNamespacedEventAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedEventValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIdeleteCollectionNamespacedEventRequest { private final String namespace; private String pretty; private String _continue; private String dryRun; private String fieldSelector; private Integer gracePeriodSeconds; private String labelSelector; private Integer limit; private Boolean orphanDependents; private String propagationPolicy; private String resourceVersion; private String resourceVersionMatch; private Boolean sendInitialEvents; private Integer timeoutSeconds; private V1DeleteOptions body; private APIdeleteCollectionNamespacedEventRequest(String namespace) { this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedEventRequest */ public APIdeleteCollectionNamespacedEventRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedEventRequest */ public APIdeleteCollectionNamespacedEventRequest _continue(String _continue) { this._continue = _continue; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedEventRequest */ public APIdeleteCollectionNamespacedEventRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedEventRequest */ public APIdeleteCollectionNamespacedEventRequest fieldSelector(String fieldSelector) { this.fieldSelector = fieldSelector; return this; } /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedEventRequest */ public APIdeleteCollectionNamespacedEventRequest gracePeriodSeconds(Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedEventRequest */ public APIdeleteCollectionNamespacedEventRequest labelSelector(String labelSelector) { this.labelSelector = labelSelector; return this; } /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedEventRequest */ public APIdeleteCollectionNamespacedEventRequest limit(Integer limit) { this.limit = limit; return this; } /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedEventRequest */ public APIdeleteCollectionNamespacedEventRequest orphanDependents(Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedEventRequest */ public APIdeleteCollectionNamespacedEventRequest propagationPolicy(String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedEventRequest */ public APIdeleteCollectionNamespacedEventRequest resourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedEventRequest */ public APIdeleteCollectionNamespacedEventRequest resourceVersionMatch(String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNamespacedEventRequest */ public APIdeleteCollectionNamespacedEventRequest sendInitialEvents(Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedEventRequest */ public APIdeleteCollectionNamespacedEventRequest timeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } /** * Set body * @param body (optional) * @return APIdeleteCollectionNamespacedEventRequest */ public APIdeleteCollectionNamespacedEventRequest body(V1DeleteOptions body) { this.body = body; return this; } /** * Build call for deleteCollectionNamespacedEvent * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return deleteCollectionNamespacedEventCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } /** * Execute deleteCollectionNamespacedEvent request * @return V1Status * @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 V1Status execute() throws ApiException { ApiResponse localVarResp = deleteCollectionNamespacedEventWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * Execute deleteCollectionNamespacedEvent request with HTTP info returned * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return deleteCollectionNamespacedEventWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); } /** * Execute deleteCollectionNamespacedEvent request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deleteCollectionNamespacedEventAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } } /** * * delete collection of Event * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedEventRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIdeleteCollectionNamespacedEventRequest deleteCollectionNamespacedEvent(String namespace) { return new APIdeleteCollectionNamespacedEventRequest(namespace); } private okhttp3.Call deleteCollectionNamespacedLimitRangeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/limitranges" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (_continue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } if (gracePeriodSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } if (propagationPolicy != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } if (resourceVersionMatch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); } if (sendInitialEvents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedLimitRangeValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedLimitRange(Async)"); } return deleteCollectionNamespacedLimitRangeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } private ApiResponse deleteCollectionNamespacedLimitRangeWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedLimitRangeValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call deleteCollectionNamespacedLimitRangeAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedLimitRangeValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIdeleteCollectionNamespacedLimitRangeRequest { private final String namespace; private String pretty; private String _continue; private String dryRun; private String fieldSelector; private Integer gracePeriodSeconds; private String labelSelector; private Integer limit; private Boolean orphanDependents; private String propagationPolicy; private String resourceVersion; private String resourceVersionMatch; private Boolean sendInitialEvents; private Integer timeoutSeconds; private V1DeleteOptions body; private APIdeleteCollectionNamespacedLimitRangeRequest(String namespace) { this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedLimitRangeRequest */ public APIdeleteCollectionNamespacedLimitRangeRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedLimitRangeRequest */ public APIdeleteCollectionNamespacedLimitRangeRequest _continue(String _continue) { this._continue = _continue; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedLimitRangeRequest */ public APIdeleteCollectionNamespacedLimitRangeRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedLimitRangeRequest */ public APIdeleteCollectionNamespacedLimitRangeRequest fieldSelector(String fieldSelector) { this.fieldSelector = fieldSelector; return this; } /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedLimitRangeRequest */ public APIdeleteCollectionNamespacedLimitRangeRequest gracePeriodSeconds(Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedLimitRangeRequest */ public APIdeleteCollectionNamespacedLimitRangeRequest labelSelector(String labelSelector) { this.labelSelector = labelSelector; return this; } /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedLimitRangeRequest */ public APIdeleteCollectionNamespacedLimitRangeRequest limit(Integer limit) { this.limit = limit; return this; } /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedLimitRangeRequest */ public APIdeleteCollectionNamespacedLimitRangeRequest orphanDependents(Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedLimitRangeRequest */ public APIdeleteCollectionNamespacedLimitRangeRequest propagationPolicy(String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedLimitRangeRequest */ public APIdeleteCollectionNamespacedLimitRangeRequest resourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedLimitRangeRequest */ public APIdeleteCollectionNamespacedLimitRangeRequest resourceVersionMatch(String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNamespacedLimitRangeRequest */ public APIdeleteCollectionNamespacedLimitRangeRequest sendInitialEvents(Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedLimitRangeRequest */ public APIdeleteCollectionNamespacedLimitRangeRequest timeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } /** * Set body * @param body (optional) * @return APIdeleteCollectionNamespacedLimitRangeRequest */ public APIdeleteCollectionNamespacedLimitRangeRequest body(V1DeleteOptions body) { this.body = body; return this; } /** * Build call for deleteCollectionNamespacedLimitRange * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return deleteCollectionNamespacedLimitRangeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } /** * Execute deleteCollectionNamespacedLimitRange request * @return V1Status * @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 V1Status execute() throws ApiException { ApiResponse localVarResp = deleteCollectionNamespacedLimitRangeWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * Execute deleteCollectionNamespacedLimitRange request with HTTP info returned * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return deleteCollectionNamespacedLimitRangeWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); } /** * Execute deleteCollectionNamespacedLimitRange request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deleteCollectionNamespacedLimitRangeAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } } /** * * delete collection of LimitRange * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedLimitRangeRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIdeleteCollectionNamespacedLimitRangeRequest deleteCollectionNamespacedLimitRange(String namespace) { return new APIdeleteCollectionNamespacedLimitRangeRequest(namespace); } private okhttp3.Call deleteCollectionNamespacedPersistentVolumeClaimCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/persistentvolumeclaims" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (_continue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } if (gracePeriodSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } if (propagationPolicy != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } if (resourceVersionMatch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); } if (sendInitialEvents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedPersistentVolumeClaimValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedPersistentVolumeClaim(Async)"); } return deleteCollectionNamespacedPersistentVolumeClaimCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } private ApiResponse deleteCollectionNamespacedPersistentVolumeClaimWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedPersistentVolumeClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call deleteCollectionNamespacedPersistentVolumeClaimAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedPersistentVolumeClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIdeleteCollectionNamespacedPersistentVolumeClaimRequest { private final String namespace; private String pretty; private String _continue; private String dryRun; private String fieldSelector; private Integer gracePeriodSeconds; private String labelSelector; private Integer limit; private Boolean orphanDependents; private String propagationPolicy; private String resourceVersion; private String resourceVersionMatch; private Boolean sendInitialEvents; private Integer timeoutSeconds; private V1DeleteOptions body; private APIdeleteCollectionNamespacedPersistentVolumeClaimRequest(String namespace) { this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedPersistentVolumeClaimRequest */ public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedPersistentVolumeClaimRequest */ public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest _continue(String _continue) { this._continue = _continue; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedPersistentVolumeClaimRequest */ public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedPersistentVolumeClaimRequest */ public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest fieldSelector(String fieldSelector) { this.fieldSelector = fieldSelector; return this; } /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedPersistentVolumeClaimRequest */ public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest gracePeriodSeconds(Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedPersistentVolumeClaimRequest */ public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest labelSelector(String labelSelector) { this.labelSelector = labelSelector; return this; } /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedPersistentVolumeClaimRequest */ public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest limit(Integer limit) { this.limit = limit; return this; } /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedPersistentVolumeClaimRequest */ public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest orphanDependents(Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedPersistentVolumeClaimRequest */ public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest propagationPolicy(String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedPersistentVolumeClaimRequest */ public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest resourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedPersistentVolumeClaimRequest */ public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest resourceVersionMatch(String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNamespacedPersistentVolumeClaimRequest */ public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest sendInitialEvents(Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedPersistentVolumeClaimRequest */ public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest timeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } /** * Set body * @param body (optional) * @return APIdeleteCollectionNamespacedPersistentVolumeClaimRequest */ public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest body(V1DeleteOptions body) { this.body = body; return this; } /** * Build call for deleteCollectionNamespacedPersistentVolumeClaim * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return deleteCollectionNamespacedPersistentVolumeClaimCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } /** * Execute deleteCollectionNamespacedPersistentVolumeClaim request * @return V1Status * @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 V1Status execute() throws ApiException { ApiResponse localVarResp = deleteCollectionNamespacedPersistentVolumeClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * Execute deleteCollectionNamespacedPersistentVolumeClaim request with HTTP info returned * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return deleteCollectionNamespacedPersistentVolumeClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); } /** * Execute deleteCollectionNamespacedPersistentVolumeClaim request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deleteCollectionNamespacedPersistentVolumeClaimAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } } /** * * delete collection of PersistentVolumeClaim * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedPersistentVolumeClaimRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest deleteCollectionNamespacedPersistentVolumeClaim(String namespace) { return new APIdeleteCollectionNamespacedPersistentVolumeClaimRequest(namespace); } private okhttp3.Call deleteCollectionNamespacedPodCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (_continue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } if (gracePeriodSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } if (propagationPolicy != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } if (resourceVersionMatch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); } if (sendInitialEvents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedPodValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedPod(Async)"); } return deleteCollectionNamespacedPodCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } private ApiResponse deleteCollectionNamespacedPodWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedPodValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call deleteCollectionNamespacedPodAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedPodValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIdeleteCollectionNamespacedPodRequest { private final String namespace; private String pretty; private String _continue; private String dryRun; private String fieldSelector; private Integer gracePeriodSeconds; private String labelSelector; private Integer limit; private Boolean orphanDependents; private String propagationPolicy; private String resourceVersion; private String resourceVersionMatch; private Boolean sendInitialEvents; private Integer timeoutSeconds; private V1DeleteOptions body; private APIdeleteCollectionNamespacedPodRequest(String namespace) { this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedPodRequest */ public APIdeleteCollectionNamespacedPodRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedPodRequest */ public APIdeleteCollectionNamespacedPodRequest _continue(String _continue) { this._continue = _continue; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedPodRequest */ public APIdeleteCollectionNamespacedPodRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedPodRequest */ public APIdeleteCollectionNamespacedPodRequest fieldSelector(String fieldSelector) { this.fieldSelector = fieldSelector; return this; } /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedPodRequest */ public APIdeleteCollectionNamespacedPodRequest gracePeriodSeconds(Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedPodRequest */ public APIdeleteCollectionNamespacedPodRequest labelSelector(String labelSelector) { this.labelSelector = labelSelector; return this; } /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedPodRequest */ public APIdeleteCollectionNamespacedPodRequest limit(Integer limit) { this.limit = limit; return this; } /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedPodRequest */ public APIdeleteCollectionNamespacedPodRequest orphanDependents(Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedPodRequest */ public APIdeleteCollectionNamespacedPodRequest propagationPolicy(String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedPodRequest */ public APIdeleteCollectionNamespacedPodRequest resourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedPodRequest */ public APIdeleteCollectionNamespacedPodRequest resourceVersionMatch(String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNamespacedPodRequest */ public APIdeleteCollectionNamespacedPodRequest sendInitialEvents(Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedPodRequest */ public APIdeleteCollectionNamespacedPodRequest timeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } /** * Set body * @param body (optional) * @return APIdeleteCollectionNamespacedPodRequest */ public APIdeleteCollectionNamespacedPodRequest body(V1DeleteOptions body) { this.body = body; return this; } /** * Build call for deleteCollectionNamespacedPod * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return deleteCollectionNamespacedPodCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } /** * Execute deleteCollectionNamespacedPod request * @return V1Status * @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 V1Status execute() throws ApiException { ApiResponse localVarResp = deleteCollectionNamespacedPodWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * Execute deleteCollectionNamespacedPod request with HTTP info returned * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return deleteCollectionNamespacedPodWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); } /** * Execute deleteCollectionNamespacedPod request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deleteCollectionNamespacedPodAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } } /** * * delete collection of Pod * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedPodRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIdeleteCollectionNamespacedPodRequest deleteCollectionNamespacedPod(String namespace) { return new APIdeleteCollectionNamespacedPodRequest(namespace); } private okhttp3.Call deleteCollectionNamespacedPodTemplateCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/podtemplates" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (_continue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } if (gracePeriodSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } if (propagationPolicy != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } if (resourceVersionMatch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); } if (sendInitialEvents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedPodTemplateValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedPodTemplate(Async)"); } return deleteCollectionNamespacedPodTemplateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } private ApiResponse deleteCollectionNamespacedPodTemplateWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedPodTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call deleteCollectionNamespacedPodTemplateAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedPodTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIdeleteCollectionNamespacedPodTemplateRequest { private final String namespace; private String pretty; private String _continue; private String dryRun; private String fieldSelector; private Integer gracePeriodSeconds; private String labelSelector; private Integer limit; private Boolean orphanDependents; private String propagationPolicy; private String resourceVersion; private String resourceVersionMatch; private Boolean sendInitialEvents; private Integer timeoutSeconds; private V1DeleteOptions body; private APIdeleteCollectionNamespacedPodTemplateRequest(String namespace) { this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedPodTemplateRequest */ public APIdeleteCollectionNamespacedPodTemplateRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedPodTemplateRequest */ public APIdeleteCollectionNamespacedPodTemplateRequest _continue(String _continue) { this._continue = _continue; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedPodTemplateRequest */ public APIdeleteCollectionNamespacedPodTemplateRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedPodTemplateRequest */ public APIdeleteCollectionNamespacedPodTemplateRequest fieldSelector(String fieldSelector) { this.fieldSelector = fieldSelector; return this; } /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedPodTemplateRequest */ public APIdeleteCollectionNamespacedPodTemplateRequest gracePeriodSeconds(Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedPodTemplateRequest */ public APIdeleteCollectionNamespacedPodTemplateRequest labelSelector(String labelSelector) { this.labelSelector = labelSelector; return this; } /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedPodTemplateRequest */ public APIdeleteCollectionNamespacedPodTemplateRequest limit(Integer limit) { this.limit = limit; return this; } /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedPodTemplateRequest */ public APIdeleteCollectionNamespacedPodTemplateRequest orphanDependents(Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedPodTemplateRequest */ public APIdeleteCollectionNamespacedPodTemplateRequest propagationPolicy(String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedPodTemplateRequest */ public APIdeleteCollectionNamespacedPodTemplateRequest resourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedPodTemplateRequest */ public APIdeleteCollectionNamespacedPodTemplateRequest resourceVersionMatch(String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNamespacedPodTemplateRequest */ public APIdeleteCollectionNamespacedPodTemplateRequest sendInitialEvents(Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedPodTemplateRequest */ public APIdeleteCollectionNamespacedPodTemplateRequest timeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } /** * Set body * @param body (optional) * @return APIdeleteCollectionNamespacedPodTemplateRequest */ public APIdeleteCollectionNamespacedPodTemplateRequest body(V1DeleteOptions body) { this.body = body; return this; } /** * Build call for deleteCollectionNamespacedPodTemplate * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return deleteCollectionNamespacedPodTemplateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } /** * Execute deleteCollectionNamespacedPodTemplate request * @return V1Status * @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 V1Status execute() throws ApiException { ApiResponse localVarResp = deleteCollectionNamespacedPodTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * Execute deleteCollectionNamespacedPodTemplate request with HTTP info returned * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return deleteCollectionNamespacedPodTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); } /** * Execute deleteCollectionNamespacedPodTemplate request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deleteCollectionNamespacedPodTemplateAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } } /** * * delete collection of PodTemplate * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedPodTemplateRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIdeleteCollectionNamespacedPodTemplateRequest deleteCollectionNamespacedPodTemplate(String namespace) { return new APIdeleteCollectionNamespacedPodTemplateRequest(namespace); } private okhttp3.Call deleteCollectionNamespacedReplicationControllerCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/replicationcontrollers" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (_continue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } if (gracePeriodSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } if (propagationPolicy != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } if (resourceVersionMatch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); } if (sendInitialEvents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedReplicationControllerValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedReplicationController(Async)"); } return deleteCollectionNamespacedReplicationControllerCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } private ApiResponse deleteCollectionNamespacedReplicationControllerWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedReplicationControllerValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call deleteCollectionNamespacedReplicationControllerAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedReplicationControllerValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIdeleteCollectionNamespacedReplicationControllerRequest { private final String namespace; private String pretty; private String _continue; private String dryRun; private String fieldSelector; private Integer gracePeriodSeconds; private String labelSelector; private Integer limit; private Boolean orphanDependents; private String propagationPolicy; private String resourceVersion; private String resourceVersionMatch; private Boolean sendInitialEvents; private Integer timeoutSeconds; private V1DeleteOptions body; private APIdeleteCollectionNamespacedReplicationControllerRequest(String namespace) { this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedReplicationControllerRequest */ public APIdeleteCollectionNamespacedReplicationControllerRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedReplicationControllerRequest */ public APIdeleteCollectionNamespacedReplicationControllerRequest _continue(String _continue) { this._continue = _continue; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedReplicationControllerRequest */ public APIdeleteCollectionNamespacedReplicationControllerRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedReplicationControllerRequest */ public APIdeleteCollectionNamespacedReplicationControllerRequest fieldSelector(String fieldSelector) { this.fieldSelector = fieldSelector; return this; } /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedReplicationControllerRequest */ public APIdeleteCollectionNamespacedReplicationControllerRequest gracePeriodSeconds(Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedReplicationControllerRequest */ public APIdeleteCollectionNamespacedReplicationControllerRequest labelSelector(String labelSelector) { this.labelSelector = labelSelector; return this; } /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedReplicationControllerRequest */ public APIdeleteCollectionNamespacedReplicationControllerRequest limit(Integer limit) { this.limit = limit; return this; } /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedReplicationControllerRequest */ public APIdeleteCollectionNamespacedReplicationControllerRequest orphanDependents(Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedReplicationControllerRequest */ public APIdeleteCollectionNamespacedReplicationControllerRequest propagationPolicy(String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedReplicationControllerRequest */ public APIdeleteCollectionNamespacedReplicationControllerRequest resourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedReplicationControllerRequest */ public APIdeleteCollectionNamespacedReplicationControllerRequest resourceVersionMatch(String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNamespacedReplicationControllerRequest */ public APIdeleteCollectionNamespacedReplicationControllerRequest sendInitialEvents(Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedReplicationControllerRequest */ public APIdeleteCollectionNamespacedReplicationControllerRequest timeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } /** * Set body * @param body (optional) * @return APIdeleteCollectionNamespacedReplicationControllerRequest */ public APIdeleteCollectionNamespacedReplicationControllerRequest body(V1DeleteOptions body) { this.body = body; return this; } /** * Build call for deleteCollectionNamespacedReplicationController * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return deleteCollectionNamespacedReplicationControllerCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } /** * Execute deleteCollectionNamespacedReplicationController request * @return V1Status * @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 V1Status execute() throws ApiException { ApiResponse localVarResp = deleteCollectionNamespacedReplicationControllerWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * Execute deleteCollectionNamespacedReplicationController request with HTTP info returned * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return deleteCollectionNamespacedReplicationControllerWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); } /** * Execute deleteCollectionNamespacedReplicationController request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deleteCollectionNamespacedReplicationControllerAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } } /** * * delete collection of ReplicationController * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedReplicationControllerRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIdeleteCollectionNamespacedReplicationControllerRequest deleteCollectionNamespacedReplicationController(String namespace) { return new APIdeleteCollectionNamespacedReplicationControllerRequest(namespace); } private okhttp3.Call deleteCollectionNamespacedResourceQuotaCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/resourcequotas" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (_continue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } if (gracePeriodSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } if (propagationPolicy != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } if (resourceVersionMatch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); } if (sendInitialEvents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedResourceQuotaValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedResourceQuota(Async)"); } return deleteCollectionNamespacedResourceQuotaCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } private ApiResponse deleteCollectionNamespacedResourceQuotaWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedResourceQuotaValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call deleteCollectionNamespacedResourceQuotaAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedResourceQuotaValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIdeleteCollectionNamespacedResourceQuotaRequest { private final String namespace; private String pretty; private String _continue; private String dryRun; private String fieldSelector; private Integer gracePeriodSeconds; private String labelSelector; private Integer limit; private Boolean orphanDependents; private String propagationPolicy; private String resourceVersion; private String resourceVersionMatch; private Boolean sendInitialEvents; private Integer timeoutSeconds; private V1DeleteOptions body; private APIdeleteCollectionNamespacedResourceQuotaRequest(String namespace) { this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedResourceQuotaRequest */ public APIdeleteCollectionNamespacedResourceQuotaRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedResourceQuotaRequest */ public APIdeleteCollectionNamespacedResourceQuotaRequest _continue(String _continue) { this._continue = _continue; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedResourceQuotaRequest */ public APIdeleteCollectionNamespacedResourceQuotaRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedResourceQuotaRequest */ public APIdeleteCollectionNamespacedResourceQuotaRequest fieldSelector(String fieldSelector) { this.fieldSelector = fieldSelector; return this; } /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedResourceQuotaRequest */ public APIdeleteCollectionNamespacedResourceQuotaRequest gracePeriodSeconds(Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedResourceQuotaRequest */ public APIdeleteCollectionNamespacedResourceQuotaRequest labelSelector(String labelSelector) { this.labelSelector = labelSelector; return this; } /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedResourceQuotaRequest */ public APIdeleteCollectionNamespacedResourceQuotaRequest limit(Integer limit) { this.limit = limit; return this; } /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedResourceQuotaRequest */ public APIdeleteCollectionNamespacedResourceQuotaRequest orphanDependents(Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedResourceQuotaRequest */ public APIdeleteCollectionNamespacedResourceQuotaRequest propagationPolicy(String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedResourceQuotaRequest */ public APIdeleteCollectionNamespacedResourceQuotaRequest resourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedResourceQuotaRequest */ public APIdeleteCollectionNamespacedResourceQuotaRequest resourceVersionMatch(String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNamespacedResourceQuotaRequest */ public APIdeleteCollectionNamespacedResourceQuotaRequest sendInitialEvents(Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedResourceQuotaRequest */ public APIdeleteCollectionNamespacedResourceQuotaRequest timeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } /** * Set body * @param body (optional) * @return APIdeleteCollectionNamespacedResourceQuotaRequest */ public APIdeleteCollectionNamespacedResourceQuotaRequest body(V1DeleteOptions body) { this.body = body; return this; } /** * Build call for deleteCollectionNamespacedResourceQuota * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return deleteCollectionNamespacedResourceQuotaCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } /** * Execute deleteCollectionNamespacedResourceQuota request * @return V1Status * @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 V1Status execute() throws ApiException { ApiResponse localVarResp = deleteCollectionNamespacedResourceQuotaWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * Execute deleteCollectionNamespacedResourceQuota request with HTTP info returned * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return deleteCollectionNamespacedResourceQuotaWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); } /** * Execute deleteCollectionNamespacedResourceQuota request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deleteCollectionNamespacedResourceQuotaAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } } /** * * delete collection of ResourceQuota * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedResourceQuotaRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIdeleteCollectionNamespacedResourceQuotaRequest deleteCollectionNamespacedResourceQuota(String namespace) { return new APIdeleteCollectionNamespacedResourceQuotaRequest(namespace); } private okhttp3.Call deleteCollectionNamespacedSecretCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/secrets" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (_continue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } if (gracePeriodSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } if (propagationPolicy != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } if (resourceVersionMatch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); } if (sendInitialEvents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedSecretValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedSecret(Async)"); } return deleteCollectionNamespacedSecretCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } private ApiResponse deleteCollectionNamespacedSecretWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedSecretValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call deleteCollectionNamespacedSecretAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedSecretValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIdeleteCollectionNamespacedSecretRequest { private final String namespace; private String pretty; private String _continue; private String dryRun; private String fieldSelector; private Integer gracePeriodSeconds; private String labelSelector; private Integer limit; private Boolean orphanDependents; private String propagationPolicy; private String resourceVersion; private String resourceVersionMatch; private Boolean sendInitialEvents; private Integer timeoutSeconds; private V1DeleteOptions body; private APIdeleteCollectionNamespacedSecretRequest(String namespace) { this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedSecretRequest */ public APIdeleteCollectionNamespacedSecretRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedSecretRequest */ public APIdeleteCollectionNamespacedSecretRequest _continue(String _continue) { this._continue = _continue; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedSecretRequest */ public APIdeleteCollectionNamespacedSecretRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedSecretRequest */ public APIdeleteCollectionNamespacedSecretRequest fieldSelector(String fieldSelector) { this.fieldSelector = fieldSelector; return this; } /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedSecretRequest */ public APIdeleteCollectionNamespacedSecretRequest gracePeriodSeconds(Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedSecretRequest */ public APIdeleteCollectionNamespacedSecretRequest labelSelector(String labelSelector) { this.labelSelector = labelSelector; return this; } /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedSecretRequest */ public APIdeleteCollectionNamespacedSecretRequest limit(Integer limit) { this.limit = limit; return this; } /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedSecretRequest */ public APIdeleteCollectionNamespacedSecretRequest orphanDependents(Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedSecretRequest */ public APIdeleteCollectionNamespacedSecretRequest propagationPolicy(String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedSecretRequest */ public APIdeleteCollectionNamespacedSecretRequest resourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedSecretRequest */ public APIdeleteCollectionNamespacedSecretRequest resourceVersionMatch(String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNamespacedSecretRequest */ public APIdeleteCollectionNamespacedSecretRequest sendInitialEvents(Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedSecretRequest */ public APIdeleteCollectionNamespacedSecretRequest timeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } /** * Set body * @param body (optional) * @return APIdeleteCollectionNamespacedSecretRequest */ public APIdeleteCollectionNamespacedSecretRequest body(V1DeleteOptions body) { this.body = body; return this; } /** * Build call for deleteCollectionNamespacedSecret * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return deleteCollectionNamespacedSecretCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } /** * Execute deleteCollectionNamespacedSecret request * @return V1Status * @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 V1Status execute() throws ApiException { ApiResponse localVarResp = deleteCollectionNamespacedSecretWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * Execute deleteCollectionNamespacedSecret request with HTTP info returned * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return deleteCollectionNamespacedSecretWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); } /** * Execute deleteCollectionNamespacedSecret request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deleteCollectionNamespacedSecretAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } } /** * * delete collection of Secret * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedSecretRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIdeleteCollectionNamespacedSecretRequest deleteCollectionNamespacedSecret(String namespace) { return new APIdeleteCollectionNamespacedSecretRequest(namespace); } private okhttp3.Call deleteCollectionNamespacedServiceCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (_continue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } if (gracePeriodSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } if (propagationPolicy != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } if (resourceVersionMatch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); } if (sendInitialEvents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedServiceValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedService(Async)"); } return deleteCollectionNamespacedServiceCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } private ApiResponse deleteCollectionNamespacedServiceWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedServiceValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call deleteCollectionNamespacedServiceAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedServiceValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIdeleteCollectionNamespacedServiceRequest { private final String namespace; private String pretty; private String _continue; private String dryRun; private String fieldSelector; private Integer gracePeriodSeconds; private String labelSelector; private Integer limit; private Boolean orphanDependents; private String propagationPolicy; private String resourceVersion; private String resourceVersionMatch; private Boolean sendInitialEvents; private Integer timeoutSeconds; private V1DeleteOptions body; private APIdeleteCollectionNamespacedServiceRequest(String namespace) { this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedServiceRequest */ public APIdeleteCollectionNamespacedServiceRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedServiceRequest */ public APIdeleteCollectionNamespacedServiceRequest _continue(String _continue) { this._continue = _continue; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedServiceRequest */ public APIdeleteCollectionNamespacedServiceRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedServiceRequest */ public APIdeleteCollectionNamespacedServiceRequest fieldSelector(String fieldSelector) { this.fieldSelector = fieldSelector; return this; } /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedServiceRequest */ public APIdeleteCollectionNamespacedServiceRequest gracePeriodSeconds(Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedServiceRequest */ public APIdeleteCollectionNamespacedServiceRequest labelSelector(String labelSelector) { this.labelSelector = labelSelector; return this; } /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedServiceRequest */ public APIdeleteCollectionNamespacedServiceRequest limit(Integer limit) { this.limit = limit; return this; } /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedServiceRequest */ public APIdeleteCollectionNamespacedServiceRequest orphanDependents(Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedServiceRequest */ public APIdeleteCollectionNamespacedServiceRequest propagationPolicy(String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedServiceRequest */ public APIdeleteCollectionNamespacedServiceRequest resourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedServiceRequest */ public APIdeleteCollectionNamespacedServiceRequest resourceVersionMatch(String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNamespacedServiceRequest */ public APIdeleteCollectionNamespacedServiceRequest sendInitialEvents(Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedServiceRequest */ public APIdeleteCollectionNamespacedServiceRequest timeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } /** * Set body * @param body (optional) * @return APIdeleteCollectionNamespacedServiceRequest */ public APIdeleteCollectionNamespacedServiceRequest body(V1DeleteOptions body) { this.body = body; return this; } /** * Build call for deleteCollectionNamespacedService * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return deleteCollectionNamespacedServiceCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } /** * Execute deleteCollectionNamespacedService request * @return V1Status * @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 V1Status execute() throws ApiException { ApiResponse localVarResp = deleteCollectionNamespacedServiceWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * Execute deleteCollectionNamespacedService request with HTTP info returned * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return deleteCollectionNamespacedServiceWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); } /** * Execute deleteCollectionNamespacedService request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deleteCollectionNamespacedServiceAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } } /** * * delete collection of Service * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedServiceRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIdeleteCollectionNamespacedServiceRequest deleteCollectionNamespacedService(String namespace) { return new APIdeleteCollectionNamespacedServiceRequest(namespace); } private okhttp3.Call deleteCollectionNamespacedServiceAccountCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/serviceaccounts" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (_continue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } if (gracePeriodSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } if (propagationPolicy != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } if (resourceVersionMatch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); } if (sendInitialEvents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedServiceAccountValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedServiceAccount(Async)"); } return deleteCollectionNamespacedServiceAccountCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } private ApiResponse deleteCollectionNamespacedServiceAccountWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedServiceAccountValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call deleteCollectionNamespacedServiceAccountAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedServiceAccountValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIdeleteCollectionNamespacedServiceAccountRequest { private final String namespace; private String pretty; private String _continue; private String dryRun; private String fieldSelector; private Integer gracePeriodSeconds; private String labelSelector; private Integer limit; private Boolean orphanDependents; private String propagationPolicy; private String resourceVersion; private String resourceVersionMatch; private Boolean sendInitialEvents; private Integer timeoutSeconds; private V1DeleteOptions body; private APIdeleteCollectionNamespacedServiceAccountRequest(String namespace) { this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedServiceAccountRequest */ public APIdeleteCollectionNamespacedServiceAccountRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedServiceAccountRequest */ public APIdeleteCollectionNamespacedServiceAccountRequest _continue(String _continue) { this._continue = _continue; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedServiceAccountRequest */ public APIdeleteCollectionNamespacedServiceAccountRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedServiceAccountRequest */ public APIdeleteCollectionNamespacedServiceAccountRequest fieldSelector(String fieldSelector) { this.fieldSelector = fieldSelector; return this; } /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedServiceAccountRequest */ public APIdeleteCollectionNamespacedServiceAccountRequest gracePeriodSeconds(Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedServiceAccountRequest */ public APIdeleteCollectionNamespacedServiceAccountRequest labelSelector(String labelSelector) { this.labelSelector = labelSelector; return this; } /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedServiceAccountRequest */ public APIdeleteCollectionNamespacedServiceAccountRequest limit(Integer limit) { this.limit = limit; return this; } /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedServiceAccountRequest */ public APIdeleteCollectionNamespacedServiceAccountRequest orphanDependents(Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedServiceAccountRequest */ public APIdeleteCollectionNamespacedServiceAccountRequest propagationPolicy(String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedServiceAccountRequest */ public APIdeleteCollectionNamespacedServiceAccountRequest resourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedServiceAccountRequest */ public APIdeleteCollectionNamespacedServiceAccountRequest resourceVersionMatch(String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNamespacedServiceAccountRequest */ public APIdeleteCollectionNamespacedServiceAccountRequest sendInitialEvents(Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedServiceAccountRequest */ public APIdeleteCollectionNamespacedServiceAccountRequest timeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } /** * Set body * @param body (optional) * @return APIdeleteCollectionNamespacedServiceAccountRequest */ public APIdeleteCollectionNamespacedServiceAccountRequest body(V1DeleteOptions body) { this.body = body; return this; } /** * Build call for deleteCollectionNamespacedServiceAccount * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return deleteCollectionNamespacedServiceAccountCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } /** * Execute deleteCollectionNamespacedServiceAccount request * @return V1Status * @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 V1Status execute() throws ApiException { ApiResponse localVarResp = deleteCollectionNamespacedServiceAccountWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * Execute deleteCollectionNamespacedServiceAccount request with HTTP info returned * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return deleteCollectionNamespacedServiceAccountWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); } /** * Execute deleteCollectionNamespacedServiceAccount request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deleteCollectionNamespacedServiceAccountAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } } /** * * delete collection of ServiceAccount * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedServiceAccountRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIdeleteCollectionNamespacedServiceAccountRequest deleteCollectionNamespacedServiceAccount(String namespace) { return new APIdeleteCollectionNamespacedServiceAccountRequest(namespace); } private okhttp3.Call deleteCollectionNodeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/nodes"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (_continue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } if (gracePeriodSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } if (propagationPolicy != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } if (resourceVersionMatch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); } if (sendInitialEvents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNodeValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { return deleteCollectionNodeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } private ApiResponse deleteCollectionNodeWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNodeValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call deleteCollectionNodeAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNodeValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIdeleteCollectionNodeRequest { private String pretty; private String _continue; private String dryRun; private String fieldSelector; private Integer gracePeriodSeconds; private String labelSelector; private Integer limit; private Boolean orphanDependents; private String propagationPolicy; private String resourceVersion; private String resourceVersionMatch; private Boolean sendInitialEvents; private Integer timeoutSeconds; private V1DeleteOptions body; private APIdeleteCollectionNodeRequest() { } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNodeRequest */ public APIdeleteCollectionNodeRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNodeRequest */ public APIdeleteCollectionNodeRequest _continue(String _continue) { this._continue = _continue; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNodeRequest */ public APIdeleteCollectionNodeRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNodeRequest */ public APIdeleteCollectionNodeRequest fieldSelector(String fieldSelector) { this.fieldSelector = fieldSelector; return this; } /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNodeRequest */ public APIdeleteCollectionNodeRequest gracePeriodSeconds(Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNodeRequest */ public APIdeleteCollectionNodeRequest labelSelector(String labelSelector) { this.labelSelector = labelSelector; return this; } /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNodeRequest */ public APIdeleteCollectionNodeRequest limit(Integer limit) { this.limit = limit; return this; } /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNodeRequest */ public APIdeleteCollectionNodeRequest orphanDependents(Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNodeRequest */ public APIdeleteCollectionNodeRequest propagationPolicy(String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNodeRequest */ public APIdeleteCollectionNodeRequest resourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNodeRequest */ public APIdeleteCollectionNodeRequest resourceVersionMatch(String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNodeRequest */ public APIdeleteCollectionNodeRequest sendInitialEvents(Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNodeRequest */ public APIdeleteCollectionNodeRequest timeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } /** * Set body * @param body (optional) * @return APIdeleteCollectionNodeRequest */ public APIdeleteCollectionNodeRequest body(V1DeleteOptions body) { this.body = body; return this; } /** * Build call for deleteCollectionNode * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return deleteCollectionNodeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } /** * Execute deleteCollectionNode request * @return V1Status * @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 V1Status execute() throws ApiException { ApiResponse localVarResp = deleteCollectionNodeWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * Execute deleteCollectionNode request with HTTP info returned * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return deleteCollectionNodeWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); } /** * Execute deleteCollectionNode request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deleteCollectionNodeAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } } /** * * delete collection of Node * @return APIdeleteCollectionNodeRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIdeleteCollectionNodeRequest deleteCollectionNode() { return new APIdeleteCollectionNodeRequest(); } private okhttp3.Call deleteCollectionPersistentVolumeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/persistentvolumes"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (_continue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } if (gracePeriodSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } if (propagationPolicy != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } if (resourceVersionMatch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); } if (sendInitialEvents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionPersistentVolumeValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { return deleteCollectionPersistentVolumeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } private ApiResponse deleteCollectionPersistentVolumeWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionPersistentVolumeValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call deleteCollectionPersistentVolumeAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionPersistentVolumeValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIdeleteCollectionPersistentVolumeRequest { private String pretty; private String _continue; private String dryRun; private String fieldSelector; private Integer gracePeriodSeconds; private String labelSelector; private Integer limit; private Boolean orphanDependents; private String propagationPolicy; private String resourceVersion; private String resourceVersionMatch; private Boolean sendInitialEvents; private Integer timeoutSeconds; private V1DeleteOptions body; private APIdeleteCollectionPersistentVolumeRequest() { } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionPersistentVolumeRequest */ public APIdeleteCollectionPersistentVolumeRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionPersistentVolumeRequest */ public APIdeleteCollectionPersistentVolumeRequest _continue(String _continue) { this._continue = _continue; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionPersistentVolumeRequest */ public APIdeleteCollectionPersistentVolumeRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionPersistentVolumeRequest */ public APIdeleteCollectionPersistentVolumeRequest fieldSelector(String fieldSelector) { this.fieldSelector = fieldSelector; return this; } /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionPersistentVolumeRequest */ public APIdeleteCollectionPersistentVolumeRequest gracePeriodSeconds(Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionPersistentVolumeRequest */ public APIdeleteCollectionPersistentVolumeRequest labelSelector(String labelSelector) { this.labelSelector = labelSelector; return this; } /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionPersistentVolumeRequest */ public APIdeleteCollectionPersistentVolumeRequest limit(Integer limit) { this.limit = limit; return this; } /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionPersistentVolumeRequest */ public APIdeleteCollectionPersistentVolumeRequest orphanDependents(Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionPersistentVolumeRequest */ public APIdeleteCollectionPersistentVolumeRequest propagationPolicy(String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionPersistentVolumeRequest */ public APIdeleteCollectionPersistentVolumeRequest resourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionPersistentVolumeRequest */ public APIdeleteCollectionPersistentVolumeRequest resourceVersionMatch(String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionPersistentVolumeRequest */ public APIdeleteCollectionPersistentVolumeRequest sendInitialEvents(Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionPersistentVolumeRequest */ public APIdeleteCollectionPersistentVolumeRequest timeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } /** * Set body * @param body (optional) * @return APIdeleteCollectionPersistentVolumeRequest */ public APIdeleteCollectionPersistentVolumeRequest body(V1DeleteOptions body) { this.body = body; return this; } /** * Build call for deleteCollectionPersistentVolume * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return deleteCollectionPersistentVolumeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } /** * Execute deleteCollectionPersistentVolume request * @return V1Status * @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 V1Status execute() throws ApiException { ApiResponse localVarResp = deleteCollectionPersistentVolumeWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * Execute deleteCollectionPersistentVolume request with HTTP info returned * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return deleteCollectionPersistentVolumeWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); } /** * Execute deleteCollectionPersistentVolume request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deleteCollectionPersistentVolumeAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } } /** * * delete collection of PersistentVolume * @return APIdeleteCollectionPersistentVolumeRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIdeleteCollectionPersistentVolumeRequest deleteCollectionPersistentVolume() { return new APIdeleteCollectionPersistentVolumeRequest(); } private okhttp3.Call deleteNamespaceCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (gracePeriodSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } if (propagationPolicy != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespaceValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, 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 deleteNamespace(Async)"); } return deleteNamespaceCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } private ApiResponse deleteNamespaceWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespaceValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call deleteNamespaceAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespaceValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIdeleteNamespaceRequest { private final String name; private String pretty; private String dryRun; private Integer gracePeriodSeconds; private Boolean orphanDependents; private String propagationPolicy; private V1DeleteOptions body; private APIdeleteNamespaceRequest(String name) { this.name = name; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespaceRequest */ public APIdeleteNamespaceRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespaceRequest */ public APIdeleteNamespaceRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespaceRequest */ public APIdeleteNamespaceRequest gracePeriodSeconds(Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespaceRequest */ public APIdeleteNamespaceRequest orphanDependents(Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespaceRequest */ public APIdeleteNamespaceRequest propagationPolicy(String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } /** * Set body * @param body (optional) * @return APIdeleteNamespaceRequest */ public APIdeleteNamespaceRequest body(V1DeleteOptions body) { this.body = body; return this; } /** * Build call for deleteNamespace * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return deleteNamespaceCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } /** * Execute deleteNamespace request * @return V1Status * @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 -
202 Accepted -
401 Unauthorized -
*/ public V1Status execute() throws ApiException { ApiResponse localVarResp = deleteNamespaceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** * Execute deleteNamespace request with HTTP info returned * @return ApiResponse<V1Status> * @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 -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return deleteNamespaceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); } /** * Execute deleteNamespace request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deleteNamespaceAsync(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } } /** * * delete a Namespace * @param name name of the Namespace (required) * @return APIdeleteNamespaceRequest * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public APIdeleteNamespaceRequest deleteNamespace(String name) { return new APIdeleteNamespaceRequest(name); } private okhttp3.Call deleteNamespacedConfigMapCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/configmaps/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (gracePeriodSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } if (propagationPolicy != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedConfigMapValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, 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 deleteNamespacedConfigMap(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedConfigMap(Async)"); } return deleteNamespacedConfigMapCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } private ApiResponse deleteNamespacedConfigMapWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedConfigMapValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call deleteNamespacedConfigMapAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedConfigMapValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIdeleteNamespacedConfigMapRequest { private final String name; private final String namespace; private String pretty; private String dryRun; private Integer gracePeriodSeconds; private Boolean orphanDependents; private String propagationPolicy; private V1DeleteOptions body; private APIdeleteNamespacedConfigMapRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedConfigMapRequest */ public APIdeleteNamespacedConfigMapRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedConfigMapRequest */ public APIdeleteNamespacedConfigMapRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedConfigMapRequest */ public APIdeleteNamespacedConfigMapRequest gracePeriodSeconds(Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedConfigMapRequest */ public APIdeleteNamespacedConfigMapRequest orphanDependents(Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedConfigMapRequest */ public APIdeleteNamespacedConfigMapRequest propagationPolicy(String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } /** * Set body * @param body (optional) * @return APIdeleteNamespacedConfigMapRequest */ public APIdeleteNamespacedConfigMapRequest body(V1DeleteOptions body) { this.body = body; return this; } /** * Build call for deleteNamespacedConfigMap * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return deleteNamespacedConfigMapCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } /** * Execute deleteNamespacedConfigMap request * @return V1Status * @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 -
202 Accepted -
401 Unauthorized -
*/ public V1Status execute() throws ApiException { ApiResponse localVarResp = deleteNamespacedConfigMapWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** * Execute deleteNamespacedConfigMap request with HTTP info returned * @return ApiResponse<V1Status> * @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 -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return deleteNamespacedConfigMapWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); } /** * Execute deleteNamespacedConfigMap request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deleteNamespacedConfigMapAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } } /** * * delete a ConfigMap * @param name name of the ConfigMap (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedConfigMapRequest * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public APIdeleteNamespacedConfigMapRequest deleteNamespacedConfigMap(String name, String namespace) { return new APIdeleteNamespacedConfigMapRequest(name, namespace); } private okhttp3.Call deleteNamespacedEndpointsCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/endpoints/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (gracePeriodSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } if (propagationPolicy != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedEndpointsValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, 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 deleteNamespacedEndpoints(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedEndpoints(Async)"); } return deleteNamespacedEndpointsCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } private ApiResponse deleteNamespacedEndpointsWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedEndpointsValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call deleteNamespacedEndpointsAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedEndpointsValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIdeleteNamespacedEndpointsRequest { private final String name; private final String namespace; private String pretty; private String dryRun; private Integer gracePeriodSeconds; private Boolean orphanDependents; private String propagationPolicy; private V1DeleteOptions body; private APIdeleteNamespacedEndpointsRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedEndpointsRequest */ public APIdeleteNamespacedEndpointsRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedEndpointsRequest */ public APIdeleteNamespacedEndpointsRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedEndpointsRequest */ public APIdeleteNamespacedEndpointsRequest gracePeriodSeconds(Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedEndpointsRequest */ public APIdeleteNamespacedEndpointsRequest orphanDependents(Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedEndpointsRequest */ public APIdeleteNamespacedEndpointsRequest propagationPolicy(String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } /** * Set body * @param body (optional) * @return APIdeleteNamespacedEndpointsRequest */ public APIdeleteNamespacedEndpointsRequest body(V1DeleteOptions body) { this.body = body; return this; } /** * Build call for deleteNamespacedEndpoints * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return deleteNamespacedEndpointsCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } /** * Execute deleteNamespacedEndpoints request * @return V1Status * @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 -
202 Accepted -
401 Unauthorized -
*/ public V1Status execute() throws ApiException { ApiResponse localVarResp = deleteNamespacedEndpointsWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** * Execute deleteNamespacedEndpoints request with HTTP info returned * @return ApiResponse<V1Status> * @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 -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return deleteNamespacedEndpointsWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); } /** * Execute deleteNamespacedEndpoints request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deleteNamespacedEndpointsAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } } /** * * delete Endpoints * @param name name of the Endpoints (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedEndpointsRequest * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public APIdeleteNamespacedEndpointsRequest deleteNamespacedEndpoints(String name, String namespace) { return new APIdeleteNamespacedEndpointsRequest(name, namespace); } private okhttp3.Call deleteNamespacedEventCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/events/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (gracePeriodSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } if (propagationPolicy != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedEventValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, 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 deleteNamespacedEvent(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedEvent(Async)"); } return deleteNamespacedEventCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } private ApiResponse deleteNamespacedEventWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedEventValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call deleteNamespacedEventAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedEventValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIdeleteNamespacedEventRequest { private final String name; private final String namespace; private String pretty; private String dryRun; private Integer gracePeriodSeconds; private Boolean orphanDependents; private String propagationPolicy; private V1DeleteOptions body; private APIdeleteNamespacedEventRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedEventRequest */ public APIdeleteNamespacedEventRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedEventRequest */ public APIdeleteNamespacedEventRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedEventRequest */ public APIdeleteNamespacedEventRequest gracePeriodSeconds(Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedEventRequest */ public APIdeleteNamespacedEventRequest orphanDependents(Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedEventRequest */ public APIdeleteNamespacedEventRequest propagationPolicy(String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } /** * Set body * @param body (optional) * @return APIdeleteNamespacedEventRequest */ public APIdeleteNamespacedEventRequest body(V1DeleteOptions body) { this.body = body; return this; } /** * Build call for deleteNamespacedEvent * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return deleteNamespacedEventCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } /** * Execute deleteNamespacedEvent request * @return V1Status * @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 -
202 Accepted -
401 Unauthorized -
*/ public V1Status execute() throws ApiException { ApiResponse localVarResp = deleteNamespacedEventWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** * Execute deleteNamespacedEvent request with HTTP info returned * @return ApiResponse<V1Status> * @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 -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return deleteNamespacedEventWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); } /** * Execute deleteNamespacedEvent request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deleteNamespacedEventAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } } /** * * delete an Event * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedEventRequest * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public APIdeleteNamespacedEventRequest deleteNamespacedEvent(String name, String namespace) { return new APIdeleteNamespacedEventRequest(name, namespace); } private okhttp3.Call deleteNamespacedLimitRangeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/limitranges/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (gracePeriodSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } if (propagationPolicy != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedLimitRangeValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, 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 deleteNamespacedLimitRange(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedLimitRange(Async)"); } return deleteNamespacedLimitRangeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } private ApiResponse deleteNamespacedLimitRangeWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedLimitRangeValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call deleteNamespacedLimitRangeAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedLimitRangeValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIdeleteNamespacedLimitRangeRequest { private final String name; private final String namespace; private String pretty; private String dryRun; private Integer gracePeriodSeconds; private Boolean orphanDependents; private String propagationPolicy; private V1DeleteOptions body; private APIdeleteNamespacedLimitRangeRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedLimitRangeRequest */ public APIdeleteNamespacedLimitRangeRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedLimitRangeRequest */ public APIdeleteNamespacedLimitRangeRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedLimitRangeRequest */ public APIdeleteNamespacedLimitRangeRequest gracePeriodSeconds(Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedLimitRangeRequest */ public APIdeleteNamespacedLimitRangeRequest orphanDependents(Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedLimitRangeRequest */ public APIdeleteNamespacedLimitRangeRequest propagationPolicy(String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } /** * Set body * @param body (optional) * @return APIdeleteNamespacedLimitRangeRequest */ public APIdeleteNamespacedLimitRangeRequest body(V1DeleteOptions body) { this.body = body; return this; } /** * Build call for deleteNamespacedLimitRange * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return deleteNamespacedLimitRangeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } /** * Execute deleteNamespacedLimitRange request * @return V1Status * @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 -
202 Accepted -
401 Unauthorized -
*/ public V1Status execute() throws ApiException { ApiResponse localVarResp = deleteNamespacedLimitRangeWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** * Execute deleteNamespacedLimitRange request with HTTP info returned * @return ApiResponse<V1Status> * @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 -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return deleteNamespacedLimitRangeWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); } /** * Execute deleteNamespacedLimitRange request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deleteNamespacedLimitRangeAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } } /** * * delete a LimitRange * @param name name of the LimitRange (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedLimitRangeRequest * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public APIdeleteNamespacedLimitRangeRequest deleteNamespacedLimitRange(String name, String namespace) { return new APIdeleteNamespacedLimitRangeRequest(name, namespace); } private okhttp3.Call deleteNamespacedPersistentVolumeClaimCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (gracePeriodSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } if (propagationPolicy != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedPersistentVolumeClaimValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, 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 deleteNamespacedPersistentVolumeClaim(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedPersistentVolumeClaim(Async)"); } return deleteNamespacedPersistentVolumeClaimCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } private ApiResponse deleteNamespacedPersistentVolumeClaimWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedPersistentVolumeClaimValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call deleteNamespacedPersistentVolumeClaimAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedPersistentVolumeClaimValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIdeleteNamespacedPersistentVolumeClaimRequest { private final String name; private final String namespace; private String pretty; private String dryRun; private Integer gracePeriodSeconds; private Boolean orphanDependents; private String propagationPolicy; private V1DeleteOptions body; private APIdeleteNamespacedPersistentVolumeClaimRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedPersistentVolumeClaimRequest */ public APIdeleteNamespacedPersistentVolumeClaimRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedPersistentVolumeClaimRequest */ public APIdeleteNamespacedPersistentVolumeClaimRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedPersistentVolumeClaimRequest */ public APIdeleteNamespacedPersistentVolumeClaimRequest gracePeriodSeconds(Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedPersistentVolumeClaimRequest */ public APIdeleteNamespacedPersistentVolumeClaimRequest orphanDependents(Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedPersistentVolumeClaimRequest */ public APIdeleteNamespacedPersistentVolumeClaimRequest propagationPolicy(String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } /** * Set body * @param body (optional) * @return APIdeleteNamespacedPersistentVolumeClaimRequest */ public APIdeleteNamespacedPersistentVolumeClaimRequest body(V1DeleteOptions body) { this.body = body; return this; } /** * Build call for deleteNamespacedPersistentVolumeClaim * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return deleteNamespacedPersistentVolumeClaimCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } /** * Execute deleteNamespacedPersistentVolumeClaim request * @return V1PersistentVolumeClaim * @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 -
202 Accepted -
401 Unauthorized -
*/ public V1PersistentVolumeClaim execute() throws ApiException { ApiResponse localVarResp = deleteNamespacedPersistentVolumeClaimWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** * Execute deleteNamespacedPersistentVolumeClaim request with HTTP info returned * @return ApiResponse<V1PersistentVolumeClaim> * @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 -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return deleteNamespacedPersistentVolumeClaimWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); } /** * Execute deleteNamespacedPersistentVolumeClaim request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deleteNamespacedPersistentVolumeClaimAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } } /** * * delete a PersistentVolumeClaim * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedPersistentVolumeClaimRequest * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public APIdeleteNamespacedPersistentVolumeClaimRequest deleteNamespacedPersistentVolumeClaim(String name, String namespace) { return new APIdeleteNamespacedPersistentVolumeClaimRequest(name, namespace); } private okhttp3.Call deleteNamespacedPodCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (gracePeriodSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } if (propagationPolicy != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedPodValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, 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 deleteNamespacedPod(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedPod(Async)"); } return deleteNamespacedPodCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } private ApiResponse deleteNamespacedPodWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedPodValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call deleteNamespacedPodAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedPodValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIdeleteNamespacedPodRequest { private final String name; private final String namespace; private String pretty; private String dryRun; private Integer gracePeriodSeconds; private Boolean orphanDependents; private String propagationPolicy; private V1DeleteOptions body; private APIdeleteNamespacedPodRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedPodRequest */ public APIdeleteNamespacedPodRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedPodRequest */ public APIdeleteNamespacedPodRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedPodRequest */ public APIdeleteNamespacedPodRequest gracePeriodSeconds(Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedPodRequest */ public APIdeleteNamespacedPodRequest orphanDependents(Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedPodRequest */ public APIdeleteNamespacedPodRequest propagationPolicy(String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } /** * Set body * @param body (optional) * @return APIdeleteNamespacedPodRequest */ public APIdeleteNamespacedPodRequest body(V1DeleteOptions body) { this.body = body; return this; } /** * Build call for deleteNamespacedPod * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return deleteNamespacedPodCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } /** * Execute deleteNamespacedPod request * @return V1Pod * @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 -
202 Accepted -
401 Unauthorized -
*/ public V1Pod execute() throws ApiException { ApiResponse localVarResp = deleteNamespacedPodWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** * Execute deleteNamespacedPod request with HTTP info returned * @return ApiResponse<V1Pod> * @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 -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return deleteNamespacedPodWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); } /** * Execute deleteNamespacedPod request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deleteNamespacedPodAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } } /** * * delete a Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedPodRequest * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public APIdeleteNamespacedPodRequest deleteNamespacedPod(String name, String namespace) { return new APIdeleteNamespacedPodRequest(name, namespace); } private okhttp3.Call deleteNamespacedPodTemplateCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/podtemplates/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (gracePeriodSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } if (propagationPolicy != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedPodTemplateValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, 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 deleteNamespacedPodTemplate(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedPodTemplate(Async)"); } return deleteNamespacedPodTemplateCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } private ApiResponse deleteNamespacedPodTemplateWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedPodTemplateValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call deleteNamespacedPodTemplateAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedPodTemplateValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIdeleteNamespacedPodTemplateRequest { private final String name; private final String namespace; private String pretty; private String dryRun; private Integer gracePeriodSeconds; private Boolean orphanDependents; private String propagationPolicy; private V1DeleteOptions body; private APIdeleteNamespacedPodTemplateRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedPodTemplateRequest */ public APIdeleteNamespacedPodTemplateRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedPodTemplateRequest */ public APIdeleteNamespacedPodTemplateRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedPodTemplateRequest */ public APIdeleteNamespacedPodTemplateRequest gracePeriodSeconds(Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedPodTemplateRequest */ public APIdeleteNamespacedPodTemplateRequest orphanDependents(Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedPodTemplateRequest */ public APIdeleteNamespacedPodTemplateRequest propagationPolicy(String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } /** * Set body * @param body (optional) * @return APIdeleteNamespacedPodTemplateRequest */ public APIdeleteNamespacedPodTemplateRequest body(V1DeleteOptions body) { this.body = body; return this; } /** * Build call for deleteNamespacedPodTemplate * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return deleteNamespacedPodTemplateCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } /** * Execute deleteNamespacedPodTemplate request * @return V1PodTemplate * @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 -
202 Accepted -
401 Unauthorized -
*/ public V1PodTemplate execute() throws ApiException { ApiResponse localVarResp = deleteNamespacedPodTemplateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** * Execute deleteNamespacedPodTemplate request with HTTP info returned * @return ApiResponse<V1PodTemplate> * @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 -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return deleteNamespacedPodTemplateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); } /** * Execute deleteNamespacedPodTemplate request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deleteNamespacedPodTemplateAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } } /** * * delete a PodTemplate * @param name name of the PodTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedPodTemplateRequest * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public APIdeleteNamespacedPodTemplateRequest deleteNamespacedPodTemplate(String name, String namespace) { return new APIdeleteNamespacedPodTemplateRequest(name, namespace); } private okhttp3.Call deleteNamespacedReplicationControllerCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (gracePeriodSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } if (propagationPolicy != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedReplicationControllerValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, 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 deleteNamespacedReplicationController(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedReplicationController(Async)"); } return deleteNamespacedReplicationControllerCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } private ApiResponse deleteNamespacedReplicationControllerWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedReplicationControllerValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call deleteNamespacedReplicationControllerAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedReplicationControllerValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIdeleteNamespacedReplicationControllerRequest { private final String name; private final String namespace; private String pretty; private String dryRun; private Integer gracePeriodSeconds; private Boolean orphanDependents; private String propagationPolicy; private V1DeleteOptions body; private APIdeleteNamespacedReplicationControllerRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedReplicationControllerRequest */ public APIdeleteNamespacedReplicationControllerRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedReplicationControllerRequest */ public APIdeleteNamespacedReplicationControllerRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedReplicationControllerRequest */ public APIdeleteNamespacedReplicationControllerRequest gracePeriodSeconds(Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedReplicationControllerRequest */ public APIdeleteNamespacedReplicationControllerRequest orphanDependents(Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedReplicationControllerRequest */ public APIdeleteNamespacedReplicationControllerRequest propagationPolicy(String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } /** * Set body * @param body (optional) * @return APIdeleteNamespacedReplicationControllerRequest */ public APIdeleteNamespacedReplicationControllerRequest body(V1DeleteOptions body) { this.body = body; return this; } /** * Build call for deleteNamespacedReplicationController * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return deleteNamespacedReplicationControllerCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } /** * Execute deleteNamespacedReplicationController request * @return V1Status * @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 -
202 Accepted -
401 Unauthorized -
*/ public V1Status execute() throws ApiException { ApiResponse localVarResp = deleteNamespacedReplicationControllerWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** * Execute deleteNamespacedReplicationController request with HTTP info returned * @return ApiResponse<V1Status> * @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 -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return deleteNamespacedReplicationControllerWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); } /** * Execute deleteNamespacedReplicationController request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deleteNamespacedReplicationControllerAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } } /** * * delete a ReplicationController * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedReplicationControllerRequest * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public APIdeleteNamespacedReplicationControllerRequest deleteNamespacedReplicationController(String name, String namespace) { return new APIdeleteNamespacedReplicationControllerRequest(name, namespace); } private okhttp3.Call deleteNamespacedResourceQuotaCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/resourcequotas/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (gracePeriodSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } if (propagationPolicy != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedResourceQuotaValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, 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 deleteNamespacedResourceQuota(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedResourceQuota(Async)"); } return deleteNamespacedResourceQuotaCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } private ApiResponse deleteNamespacedResourceQuotaWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedResourceQuotaValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call deleteNamespacedResourceQuotaAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedResourceQuotaValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIdeleteNamespacedResourceQuotaRequest { private final String name; private final String namespace; private String pretty; private String dryRun; private Integer gracePeriodSeconds; private Boolean orphanDependents; private String propagationPolicy; private V1DeleteOptions body; private APIdeleteNamespacedResourceQuotaRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedResourceQuotaRequest */ public APIdeleteNamespacedResourceQuotaRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedResourceQuotaRequest */ public APIdeleteNamespacedResourceQuotaRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedResourceQuotaRequest */ public APIdeleteNamespacedResourceQuotaRequest gracePeriodSeconds(Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedResourceQuotaRequest */ public APIdeleteNamespacedResourceQuotaRequest orphanDependents(Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedResourceQuotaRequest */ public APIdeleteNamespacedResourceQuotaRequest propagationPolicy(String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } /** * Set body * @param body (optional) * @return APIdeleteNamespacedResourceQuotaRequest */ public APIdeleteNamespacedResourceQuotaRequest body(V1DeleteOptions body) { this.body = body; return this; } /** * Build call for deleteNamespacedResourceQuota * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return deleteNamespacedResourceQuotaCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } /** * Execute deleteNamespacedResourceQuota request * @return V1ResourceQuota * @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 -
202 Accepted -
401 Unauthorized -
*/ public V1ResourceQuota execute() throws ApiException { ApiResponse localVarResp = deleteNamespacedResourceQuotaWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** * Execute deleteNamespacedResourceQuota request with HTTP info returned * @return ApiResponse<V1ResourceQuota> * @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 -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return deleteNamespacedResourceQuotaWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); } /** * Execute deleteNamespacedResourceQuota request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deleteNamespacedResourceQuotaAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } } /** * * delete a ResourceQuota * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedResourceQuotaRequest * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public APIdeleteNamespacedResourceQuotaRequest deleteNamespacedResourceQuota(String name, String namespace) { return new APIdeleteNamespacedResourceQuotaRequest(name, namespace); } private okhttp3.Call deleteNamespacedSecretCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/secrets/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (gracePeriodSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } if (propagationPolicy != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedSecretValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, 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 deleteNamespacedSecret(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedSecret(Async)"); } return deleteNamespacedSecretCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } private ApiResponse deleteNamespacedSecretWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedSecretValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call deleteNamespacedSecretAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedSecretValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIdeleteNamespacedSecretRequest { private final String name; private final String namespace; private String pretty; private String dryRun; private Integer gracePeriodSeconds; private Boolean orphanDependents; private String propagationPolicy; private V1DeleteOptions body; private APIdeleteNamespacedSecretRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedSecretRequest */ public APIdeleteNamespacedSecretRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedSecretRequest */ public APIdeleteNamespacedSecretRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedSecretRequest */ public APIdeleteNamespacedSecretRequest gracePeriodSeconds(Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedSecretRequest */ public APIdeleteNamespacedSecretRequest orphanDependents(Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedSecretRequest */ public APIdeleteNamespacedSecretRequest propagationPolicy(String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } /** * Set body * @param body (optional) * @return APIdeleteNamespacedSecretRequest */ public APIdeleteNamespacedSecretRequest body(V1DeleteOptions body) { this.body = body; return this; } /** * Build call for deleteNamespacedSecret * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return deleteNamespacedSecretCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } /** * Execute deleteNamespacedSecret request * @return V1Status * @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 -
202 Accepted -
401 Unauthorized -
*/ public V1Status execute() throws ApiException { ApiResponse localVarResp = deleteNamespacedSecretWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** * Execute deleteNamespacedSecret request with HTTP info returned * @return ApiResponse<V1Status> * @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 -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return deleteNamespacedSecretWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); } /** * Execute deleteNamespacedSecret request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deleteNamespacedSecretAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } } /** * * delete a Secret * @param name name of the Secret (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedSecretRequest * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public APIdeleteNamespacedSecretRequest deleteNamespacedSecret(String name, String namespace) { return new APIdeleteNamespacedSecretRequest(name, namespace); } private okhttp3.Call deleteNamespacedServiceCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (gracePeriodSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } if (propagationPolicy != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedServiceValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, 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 deleteNamespacedService(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedService(Async)"); } return deleteNamespacedServiceCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } private ApiResponse deleteNamespacedServiceWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedServiceValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call deleteNamespacedServiceAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedServiceValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIdeleteNamespacedServiceRequest { private final String name; private final String namespace; private String pretty; private String dryRun; private Integer gracePeriodSeconds; private Boolean orphanDependents; private String propagationPolicy; private V1DeleteOptions body; private APIdeleteNamespacedServiceRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedServiceRequest */ public APIdeleteNamespacedServiceRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedServiceRequest */ public APIdeleteNamespacedServiceRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedServiceRequest */ public APIdeleteNamespacedServiceRequest gracePeriodSeconds(Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedServiceRequest */ public APIdeleteNamespacedServiceRequest orphanDependents(Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedServiceRequest */ public APIdeleteNamespacedServiceRequest propagationPolicy(String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } /** * Set body * @param body (optional) * @return APIdeleteNamespacedServiceRequest */ public APIdeleteNamespacedServiceRequest body(V1DeleteOptions body) { this.body = body; return this; } /** * Build call for deleteNamespacedService * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return deleteNamespacedServiceCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } /** * Execute deleteNamespacedService request * @return V1Service * @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 -
202 Accepted -
401 Unauthorized -
*/ public V1Service execute() throws ApiException { ApiResponse localVarResp = deleteNamespacedServiceWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** * Execute deleteNamespacedService request with HTTP info returned * @return ApiResponse<V1Service> * @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 -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return deleteNamespacedServiceWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); } /** * Execute deleteNamespacedService request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deleteNamespacedServiceAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } } /** * * delete a Service * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedServiceRequest * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public APIdeleteNamespacedServiceRequest deleteNamespacedService(String name, String namespace) { return new APIdeleteNamespacedServiceRequest(name, namespace); } private okhttp3.Call deleteNamespacedServiceAccountCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/serviceaccounts/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (gracePeriodSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } if (propagationPolicy != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedServiceAccountValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, 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 deleteNamespacedServiceAccount(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedServiceAccount(Async)"); } return deleteNamespacedServiceAccountCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } private ApiResponse deleteNamespacedServiceAccountWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedServiceAccountValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call deleteNamespacedServiceAccountAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedServiceAccountValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIdeleteNamespacedServiceAccountRequest { private final String name; private final String namespace; private String pretty; private String dryRun; private Integer gracePeriodSeconds; private Boolean orphanDependents; private String propagationPolicy; private V1DeleteOptions body; private APIdeleteNamespacedServiceAccountRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedServiceAccountRequest */ public APIdeleteNamespacedServiceAccountRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedServiceAccountRequest */ public APIdeleteNamespacedServiceAccountRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedServiceAccountRequest */ public APIdeleteNamespacedServiceAccountRequest gracePeriodSeconds(Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedServiceAccountRequest */ public APIdeleteNamespacedServiceAccountRequest orphanDependents(Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedServiceAccountRequest */ public APIdeleteNamespacedServiceAccountRequest propagationPolicy(String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } /** * Set body * @param body (optional) * @return APIdeleteNamespacedServiceAccountRequest */ public APIdeleteNamespacedServiceAccountRequest body(V1DeleteOptions body) { this.body = body; return this; } /** * Build call for deleteNamespacedServiceAccount * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return deleteNamespacedServiceAccountCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } /** * Execute deleteNamespacedServiceAccount request * @return V1ServiceAccount * @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 -
202 Accepted -
401 Unauthorized -
*/ public V1ServiceAccount execute() throws ApiException { ApiResponse localVarResp = deleteNamespacedServiceAccountWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** * Execute deleteNamespacedServiceAccount request with HTTP info returned * @return ApiResponse<V1ServiceAccount> * @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 -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return deleteNamespacedServiceAccountWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); } /** * Execute deleteNamespacedServiceAccount request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deleteNamespacedServiceAccountAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } } /** * * delete a ServiceAccount * @param name name of the ServiceAccount (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedServiceAccountRequest * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public APIdeleteNamespacedServiceAccountRequest deleteNamespacedServiceAccount(String name, String namespace) { return new APIdeleteNamespacedServiceAccountRequest(name, namespace); } private okhttp3.Call deleteNodeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/nodes/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (gracePeriodSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } if (propagationPolicy != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNodeValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, 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 deleteNode(Async)"); } return deleteNodeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } private ApiResponse deleteNodeWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNodeValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call deleteNodeAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNodeValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIdeleteNodeRequest { private final String name; private String pretty; private String dryRun; private Integer gracePeriodSeconds; private Boolean orphanDependents; private String propagationPolicy; private V1DeleteOptions body; private APIdeleteNodeRequest(String name) { this.name = name; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNodeRequest */ public APIdeleteNodeRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNodeRequest */ public APIdeleteNodeRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNodeRequest */ public APIdeleteNodeRequest gracePeriodSeconds(Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNodeRequest */ public APIdeleteNodeRequest orphanDependents(Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNodeRequest */ public APIdeleteNodeRequest propagationPolicy(String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } /** * Set body * @param body (optional) * @return APIdeleteNodeRequest */ public APIdeleteNodeRequest body(V1DeleteOptions body) { this.body = body; return this; } /** * Build call for deleteNode * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return deleteNodeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } /** * Execute deleteNode request * @return V1Status * @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 -
202 Accepted -
401 Unauthorized -
*/ public V1Status execute() throws ApiException { ApiResponse localVarResp = deleteNodeWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** * Execute deleteNode request with HTTP info returned * @return ApiResponse<V1Status> * @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 -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return deleteNodeWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); } /** * Execute deleteNode request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deleteNodeAsync(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } } /** * * delete a Node * @param name name of the Node (required) * @return APIdeleteNodeRequest * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public APIdeleteNodeRequest deleteNode(String name) { return new APIdeleteNodeRequest(name); } private okhttp3.Call deletePersistentVolumeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/persistentvolumes/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (gracePeriodSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } if (propagationPolicy != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deletePersistentVolumeValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, 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 deletePersistentVolume(Async)"); } return deletePersistentVolumeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } private ApiResponse deletePersistentVolumeWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deletePersistentVolumeValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call deletePersistentVolumeAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deletePersistentVolumeValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIdeletePersistentVolumeRequest { private final String name; private String pretty; private String dryRun; private Integer gracePeriodSeconds; private Boolean orphanDependents; private String propagationPolicy; private V1DeleteOptions body; private APIdeletePersistentVolumeRequest(String name) { this.name = name; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeletePersistentVolumeRequest */ public APIdeletePersistentVolumeRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeletePersistentVolumeRequest */ public APIdeletePersistentVolumeRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeletePersistentVolumeRequest */ public APIdeletePersistentVolumeRequest gracePeriodSeconds(Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeletePersistentVolumeRequest */ public APIdeletePersistentVolumeRequest orphanDependents(Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeletePersistentVolumeRequest */ public APIdeletePersistentVolumeRequest propagationPolicy(String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } /** * Set body * @param body (optional) * @return APIdeletePersistentVolumeRequest */ public APIdeletePersistentVolumeRequest body(V1DeleteOptions body) { this.body = body; return this; } /** * Build call for deletePersistentVolume * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return deletePersistentVolumeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } /** * Execute deletePersistentVolume request * @return V1PersistentVolume * @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 -
202 Accepted -
401 Unauthorized -
*/ public V1PersistentVolume execute() throws ApiException { ApiResponse localVarResp = deletePersistentVolumeWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** * Execute deletePersistentVolume request with HTTP info returned * @return ApiResponse<V1PersistentVolume> * @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 -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return deletePersistentVolumeWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); } /** * Execute deletePersistentVolume request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deletePersistentVolumeAsync(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } } /** * * delete a PersistentVolume * @param name name of the PersistentVolume (required) * @return APIdeletePersistentVolumeRequest * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public APIdeletePersistentVolumeRequest deletePersistentVolume(String name) { return new APIdeletePersistentVolumeRequest(name); } private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { return getAPIResourcesCall(_callback); } private ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetAPIResourcesRequest { private APIgetAPIResourcesRequest() { } /** * Build call for getAPIResources * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return getAPIResourcesCall(_callback); } /** * Execute getAPIResources request * @return V1APIResourceList * @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 V1APIResourceList execute() throws ApiException { ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); return localVarResp.getData(); } /** * Execute getAPIResources request with HTTP info returned * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return getAPIResourcesWithHttpInfo(); } /** * Execute getAPIResources request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getAPIResourcesAsync(_callback); } } /** * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } private okhttp3.Call listComponentStatusCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/componentstatuses"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } if (_continue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } if (resourceVersionMatch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); } if (sendInitialEvents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } if (watch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listComponentStatusValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { return listComponentStatusCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } private ApiResponse listComponentStatusWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { okhttp3.Call localVarCall = listComponentStatusValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call listComponentStatusAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listComponentStatusValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIlistComponentStatusRequest { private Boolean allowWatchBookmarks; private String _continue; private String fieldSelector; private String labelSelector; private Integer limit; private String pretty; private String resourceVersion; private String resourceVersionMatch; private Boolean sendInitialEvents; private Integer timeoutSeconds; private Boolean watch; private APIlistComponentStatusRequest() { } /** * Set allowWatchBookmarks * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistComponentStatusRequest */ public APIlistComponentStatusRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistComponentStatusRequest */ public APIlistComponentStatusRequest _continue(String _continue) { this._continue = _continue; return this; } /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistComponentStatusRequest */ public APIlistComponentStatusRequest fieldSelector(String fieldSelector) { this.fieldSelector = fieldSelector; return this; } /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistComponentStatusRequest */ public APIlistComponentStatusRequest labelSelector(String labelSelector) { this.labelSelector = labelSelector; return this; } /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistComponentStatusRequest */ public APIlistComponentStatusRequest limit(Integer limit) { this.limit = limit; return this; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistComponentStatusRequest */ public APIlistComponentStatusRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistComponentStatusRequest */ public APIlistComponentStatusRequest resourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistComponentStatusRequest */ public APIlistComponentStatusRequest resourceVersionMatch(String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistComponentStatusRequest */ public APIlistComponentStatusRequest sendInitialEvents(Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistComponentStatusRequest */ public APIlistComponentStatusRequest timeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } /** * Set watch * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistComponentStatusRequest */ public APIlistComponentStatusRequest watch(Boolean watch) { this.watch = watch; return this; } /** * Build call for listComponentStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return listComponentStatusCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } /** * Execute listComponentStatus request * @return V1ComponentStatusList * @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 V1ComponentStatusList execute() throws ApiException { ApiResponse localVarResp = listComponentStatusWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** * Execute listComponentStatus request with HTTP info returned * @return ApiResponse<V1ComponentStatusList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return listComponentStatusWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); } /** * Execute listComponentStatus request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return listComponentStatusAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } } /** * * list objects of kind ComponentStatus * @return APIlistComponentStatusRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIlistComponentStatusRequest listComponentStatus() { return new APIlistComponentStatusRequest(); } private okhttp3.Call listConfigMapForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/configmaps"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } if (_continue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } if (resourceVersionMatch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); } if (sendInitialEvents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } if (watch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listConfigMapForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { return listConfigMapForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } private ApiResponse listConfigMapForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { okhttp3.Call localVarCall = listConfigMapForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call listConfigMapForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listConfigMapForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIlistConfigMapForAllNamespacesRequest { private Boolean allowWatchBookmarks; private String _continue; private String fieldSelector; private String labelSelector; private Integer limit; private String pretty; private String resourceVersion; private String resourceVersionMatch; private Boolean sendInitialEvents; private Integer timeoutSeconds; private Boolean watch; private APIlistConfigMapForAllNamespacesRequest() { } /** * Set allowWatchBookmarks * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistConfigMapForAllNamespacesRequest */ public APIlistConfigMapForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistConfigMapForAllNamespacesRequest */ public APIlistConfigMapForAllNamespacesRequest _continue(String _continue) { this._continue = _continue; return this; } /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistConfigMapForAllNamespacesRequest */ public APIlistConfigMapForAllNamespacesRequest fieldSelector(String fieldSelector) { this.fieldSelector = fieldSelector; return this; } /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistConfigMapForAllNamespacesRequest */ public APIlistConfigMapForAllNamespacesRequest labelSelector(String labelSelector) { this.labelSelector = labelSelector; return this; } /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistConfigMapForAllNamespacesRequest */ public APIlistConfigMapForAllNamespacesRequest limit(Integer limit) { this.limit = limit; return this; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistConfigMapForAllNamespacesRequest */ public APIlistConfigMapForAllNamespacesRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistConfigMapForAllNamespacesRequest */ public APIlistConfigMapForAllNamespacesRequest resourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistConfigMapForAllNamespacesRequest */ public APIlistConfigMapForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistConfigMapForAllNamespacesRequest */ public APIlistConfigMapForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistConfigMapForAllNamespacesRequest */ public APIlistConfigMapForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } /** * Set watch * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistConfigMapForAllNamespacesRequest */ public APIlistConfigMapForAllNamespacesRequest watch(Boolean watch) { this.watch = watch; return this; } /** * Build call for listConfigMapForAllNamespaces * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return listConfigMapForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } /** * Execute listConfigMapForAllNamespaces request * @return V1ConfigMapList * @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 V1ConfigMapList execute() throws ApiException { ApiResponse localVarResp = listConfigMapForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** * Execute listConfigMapForAllNamespaces request with HTTP info returned * @return ApiResponse<V1ConfigMapList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return listConfigMapForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); } /** * Execute listConfigMapForAllNamespaces request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return listConfigMapForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } } /** * * list or watch objects of kind ConfigMap * @return APIlistConfigMapForAllNamespacesRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIlistConfigMapForAllNamespacesRequest listConfigMapForAllNamespaces() { return new APIlistConfigMapForAllNamespacesRequest(); } private okhttp3.Call listEndpointsForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/endpoints"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } if (_continue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } if (resourceVersionMatch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); } if (sendInitialEvents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } if (watch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listEndpointsForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { return listEndpointsForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } private ApiResponse listEndpointsForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { okhttp3.Call localVarCall = listEndpointsForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call listEndpointsForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listEndpointsForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIlistEndpointsForAllNamespacesRequest { private Boolean allowWatchBookmarks; private String _continue; private String fieldSelector; private String labelSelector; private Integer limit; private String pretty; private String resourceVersion; private String resourceVersionMatch; private Boolean sendInitialEvents; private Integer timeoutSeconds; private Boolean watch; private APIlistEndpointsForAllNamespacesRequest() { } /** * Set allowWatchBookmarks * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistEndpointsForAllNamespacesRequest */ public APIlistEndpointsForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistEndpointsForAllNamespacesRequest */ public APIlistEndpointsForAllNamespacesRequest _continue(String _continue) { this._continue = _continue; return this; } /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistEndpointsForAllNamespacesRequest */ public APIlistEndpointsForAllNamespacesRequest fieldSelector(String fieldSelector) { this.fieldSelector = fieldSelector; return this; } /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistEndpointsForAllNamespacesRequest */ public APIlistEndpointsForAllNamespacesRequest labelSelector(String labelSelector) { this.labelSelector = labelSelector; return this; } /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistEndpointsForAllNamespacesRequest */ public APIlistEndpointsForAllNamespacesRequest limit(Integer limit) { this.limit = limit; return this; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistEndpointsForAllNamespacesRequest */ public APIlistEndpointsForAllNamespacesRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistEndpointsForAllNamespacesRequest */ public APIlistEndpointsForAllNamespacesRequest resourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistEndpointsForAllNamespacesRequest */ public APIlistEndpointsForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistEndpointsForAllNamespacesRequest */ public APIlistEndpointsForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistEndpointsForAllNamespacesRequest */ public APIlistEndpointsForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } /** * Set watch * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistEndpointsForAllNamespacesRequest */ public APIlistEndpointsForAllNamespacesRequest watch(Boolean watch) { this.watch = watch; return this; } /** * Build call for listEndpointsForAllNamespaces * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return listEndpointsForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } /** * Execute listEndpointsForAllNamespaces request * @return V1EndpointsList * @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 V1EndpointsList execute() throws ApiException { ApiResponse localVarResp = listEndpointsForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** * Execute listEndpointsForAllNamespaces request with HTTP info returned * @return ApiResponse<V1EndpointsList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return listEndpointsForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); } /** * Execute listEndpointsForAllNamespaces request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return listEndpointsForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } } /** * * list or watch objects of kind Endpoints * @return APIlistEndpointsForAllNamespacesRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIlistEndpointsForAllNamespacesRequest listEndpointsForAllNamespaces() { return new APIlistEndpointsForAllNamespacesRequest(); } private okhttp3.Call listEventForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/events"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } if (_continue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } if (resourceVersionMatch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); } if (sendInitialEvents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } if (watch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listEventForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { return listEventForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } private ApiResponse listEventForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { okhttp3.Call localVarCall = listEventForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call listEventForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listEventForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIlistEventForAllNamespacesRequest { private Boolean allowWatchBookmarks; private String _continue; private String fieldSelector; private String labelSelector; private Integer limit; private String pretty; private String resourceVersion; private String resourceVersionMatch; private Boolean sendInitialEvents; private Integer timeoutSeconds; private Boolean watch; private APIlistEventForAllNamespacesRequest() { } /** * Set allowWatchBookmarks * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistEventForAllNamespacesRequest */ public APIlistEventForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistEventForAllNamespacesRequest */ public APIlistEventForAllNamespacesRequest _continue(String _continue) { this._continue = _continue; return this; } /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistEventForAllNamespacesRequest */ public APIlistEventForAllNamespacesRequest fieldSelector(String fieldSelector) { this.fieldSelector = fieldSelector; return this; } /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistEventForAllNamespacesRequest */ public APIlistEventForAllNamespacesRequest labelSelector(String labelSelector) { this.labelSelector = labelSelector; return this; } /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistEventForAllNamespacesRequest */ public APIlistEventForAllNamespacesRequest limit(Integer limit) { this.limit = limit; return this; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistEventForAllNamespacesRequest */ public APIlistEventForAllNamespacesRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistEventForAllNamespacesRequest */ public APIlistEventForAllNamespacesRequest resourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistEventForAllNamespacesRequest */ public APIlistEventForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistEventForAllNamespacesRequest */ public APIlistEventForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistEventForAllNamespacesRequest */ public APIlistEventForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } /** * Set watch * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistEventForAllNamespacesRequest */ public APIlistEventForAllNamespacesRequest watch(Boolean watch) { this.watch = watch; return this; } /** * Build call for listEventForAllNamespaces * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return listEventForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } /** * Execute listEventForAllNamespaces request * @return CoreV1EventList * @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 CoreV1EventList execute() throws ApiException { ApiResponse localVarResp = listEventForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** * Execute listEventForAllNamespaces request with HTTP info returned * @return ApiResponse<CoreV1EventList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return listEventForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); } /** * Execute listEventForAllNamespaces request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return listEventForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } } /** * * list or watch objects of kind Event * @return APIlistEventForAllNamespacesRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIlistEventForAllNamespacesRequest listEventForAllNamespaces() { return new APIlistEventForAllNamespacesRequest(); } private okhttp3.Call listLimitRangeForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/limitranges"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } if (_continue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } if (resourceVersionMatch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); } if (sendInitialEvents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } if (watch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listLimitRangeForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { return listLimitRangeForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } private ApiResponse listLimitRangeForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { okhttp3.Call localVarCall = listLimitRangeForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call listLimitRangeForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listLimitRangeForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIlistLimitRangeForAllNamespacesRequest { private Boolean allowWatchBookmarks; private String _continue; private String fieldSelector; private String labelSelector; private Integer limit; private String pretty; private String resourceVersion; private String resourceVersionMatch; private Boolean sendInitialEvents; private Integer timeoutSeconds; private Boolean watch; private APIlistLimitRangeForAllNamespacesRequest() { } /** * Set allowWatchBookmarks * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistLimitRangeForAllNamespacesRequest */ public APIlistLimitRangeForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistLimitRangeForAllNamespacesRequest */ public APIlistLimitRangeForAllNamespacesRequest _continue(String _continue) { this._continue = _continue; return this; } /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistLimitRangeForAllNamespacesRequest */ public APIlistLimitRangeForAllNamespacesRequest fieldSelector(String fieldSelector) { this.fieldSelector = fieldSelector; return this; } /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistLimitRangeForAllNamespacesRequest */ public APIlistLimitRangeForAllNamespacesRequest labelSelector(String labelSelector) { this.labelSelector = labelSelector; return this; } /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistLimitRangeForAllNamespacesRequest */ public APIlistLimitRangeForAllNamespacesRequest limit(Integer limit) { this.limit = limit; return this; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistLimitRangeForAllNamespacesRequest */ public APIlistLimitRangeForAllNamespacesRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistLimitRangeForAllNamespacesRequest */ public APIlistLimitRangeForAllNamespacesRequest resourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistLimitRangeForAllNamespacesRequest */ public APIlistLimitRangeForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistLimitRangeForAllNamespacesRequest */ public APIlistLimitRangeForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistLimitRangeForAllNamespacesRequest */ public APIlistLimitRangeForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } /** * Set watch * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistLimitRangeForAllNamespacesRequest */ public APIlistLimitRangeForAllNamespacesRequest watch(Boolean watch) { this.watch = watch; return this; } /** * Build call for listLimitRangeForAllNamespaces * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return listLimitRangeForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } /** * Execute listLimitRangeForAllNamespaces request * @return V1LimitRangeList * @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 V1LimitRangeList execute() throws ApiException { ApiResponse localVarResp = listLimitRangeForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** * Execute listLimitRangeForAllNamespaces request with HTTP info returned * @return ApiResponse<V1LimitRangeList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return listLimitRangeForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); } /** * Execute listLimitRangeForAllNamespaces request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return listLimitRangeForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } } /** * * list or watch objects of kind LimitRange * @return APIlistLimitRangeForAllNamespacesRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIlistLimitRangeForAllNamespacesRequest listLimitRangeForAllNamespaces() { return new APIlistLimitRangeForAllNamespacesRequest(); } private okhttp3.Call listNamespaceCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } if (_continue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } if (resourceVersionMatch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); } if (sendInitialEvents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } if (watch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespaceValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { return listNamespaceCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } private ApiResponse listNamespaceWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespaceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call listNamespaceAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespaceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIlistNamespaceRequest { private String pretty; private Boolean allowWatchBookmarks; private String _continue; private String fieldSelector; private String labelSelector; private Integer limit; private String resourceVersion; private String resourceVersionMatch; private Boolean sendInitialEvents; private Integer timeoutSeconds; private Boolean watch; private APIlistNamespaceRequest() { } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespaceRequest */ public APIlistNamespaceRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set allowWatchBookmarks * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespaceRequest */ public APIlistNamespaceRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespaceRequest */ public APIlistNamespaceRequest _continue(String _continue) { this._continue = _continue; return this; } /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespaceRequest */ public APIlistNamespaceRequest fieldSelector(String fieldSelector) { this.fieldSelector = fieldSelector; return this; } /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespaceRequest */ public APIlistNamespaceRequest labelSelector(String labelSelector) { this.labelSelector = labelSelector; return this; } /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespaceRequest */ public APIlistNamespaceRequest limit(Integer limit) { this.limit = limit; return this; } /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespaceRequest */ public APIlistNamespaceRequest resourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespaceRequest */ public APIlistNamespaceRequest resourceVersionMatch(String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespaceRequest */ public APIlistNamespaceRequest sendInitialEvents(Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespaceRequest */ public APIlistNamespaceRequest timeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } /** * Set watch * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespaceRequest */ public APIlistNamespaceRequest watch(Boolean watch) { this.watch = watch; return this; } /** * Build call for listNamespace * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return listNamespaceCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } /** * Execute listNamespace request * @return V1NamespaceList * @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 V1NamespaceList execute() throws ApiException { ApiResponse localVarResp = listNamespaceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** * Execute listNamespace request with HTTP info returned * @return ApiResponse<V1NamespaceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return listNamespaceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); } /** * Execute listNamespace request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return listNamespaceAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } } /** * * list or watch objects of kind Namespace * @return APIlistNamespaceRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIlistNamespaceRequest listNamespace() { return new APIlistNamespaceRequest(); } private okhttp3.Call listNamespacedConfigMapCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/configmaps" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } if (_continue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } if (resourceVersionMatch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); } if (sendInitialEvents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } if (watch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedConfigMapValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedConfigMap(Async)"); } return listNamespacedConfigMapCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } private ApiResponse listNamespacedConfigMapWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedConfigMapValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call listNamespacedConfigMapAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedConfigMapValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIlistNamespacedConfigMapRequest { private final String namespace; private String pretty; private Boolean allowWatchBookmarks; private String _continue; private String fieldSelector; private String labelSelector; private Integer limit; private String resourceVersion; private String resourceVersionMatch; private Boolean sendInitialEvents; private Integer timeoutSeconds; private Boolean watch; private APIlistNamespacedConfigMapRequest(String namespace) { this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedConfigMapRequest */ public APIlistNamespacedConfigMapRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set allowWatchBookmarks * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedConfigMapRequest */ public APIlistNamespacedConfigMapRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedConfigMapRequest */ public APIlistNamespacedConfigMapRequest _continue(String _continue) { this._continue = _continue; return this; } /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedConfigMapRequest */ public APIlistNamespacedConfigMapRequest fieldSelector(String fieldSelector) { this.fieldSelector = fieldSelector; return this; } /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedConfigMapRequest */ public APIlistNamespacedConfigMapRequest labelSelector(String labelSelector) { this.labelSelector = labelSelector; return this; } /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedConfigMapRequest */ public APIlistNamespacedConfigMapRequest limit(Integer limit) { this.limit = limit; return this; } /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedConfigMapRequest */ public APIlistNamespacedConfigMapRequest resourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedConfigMapRequest */ public APIlistNamespacedConfigMapRequest resourceVersionMatch(String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedConfigMapRequest */ public APIlistNamespacedConfigMapRequest sendInitialEvents(Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedConfigMapRequest */ public APIlistNamespacedConfigMapRequest timeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } /** * Set watch * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespacedConfigMapRequest */ public APIlistNamespacedConfigMapRequest watch(Boolean watch) { this.watch = watch; return this; } /** * Build call for listNamespacedConfigMap * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return listNamespacedConfigMapCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } /** * Execute listNamespacedConfigMap request * @return V1ConfigMapList * @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 V1ConfigMapList execute() throws ApiException { ApiResponse localVarResp = listNamespacedConfigMapWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** * Execute listNamespacedConfigMap request with HTTP info returned * @return ApiResponse<V1ConfigMapList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return listNamespacedConfigMapWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); } /** * Execute listNamespacedConfigMap request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return listNamespacedConfigMapAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } } /** * * list or watch objects of kind ConfigMap * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedConfigMapRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIlistNamespacedConfigMapRequest listNamespacedConfigMap(String namespace) { return new APIlistNamespacedConfigMapRequest(namespace); } private okhttp3.Call listNamespacedEndpointsCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/endpoints" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } if (_continue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } if (resourceVersionMatch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); } if (sendInitialEvents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } if (watch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedEndpointsValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedEndpoints(Async)"); } return listNamespacedEndpointsCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } private ApiResponse listNamespacedEndpointsWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedEndpointsValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call listNamespacedEndpointsAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedEndpointsValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIlistNamespacedEndpointsRequest { private final String namespace; private String pretty; private Boolean allowWatchBookmarks; private String _continue; private String fieldSelector; private String labelSelector; private Integer limit; private String resourceVersion; private String resourceVersionMatch; private Boolean sendInitialEvents; private Integer timeoutSeconds; private Boolean watch; private APIlistNamespacedEndpointsRequest(String namespace) { this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedEndpointsRequest */ public APIlistNamespacedEndpointsRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set allowWatchBookmarks * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedEndpointsRequest */ public APIlistNamespacedEndpointsRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedEndpointsRequest */ public APIlistNamespacedEndpointsRequest _continue(String _continue) { this._continue = _continue; return this; } /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedEndpointsRequest */ public APIlistNamespacedEndpointsRequest fieldSelector(String fieldSelector) { this.fieldSelector = fieldSelector; return this; } /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedEndpointsRequest */ public APIlistNamespacedEndpointsRequest labelSelector(String labelSelector) { this.labelSelector = labelSelector; return this; } /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedEndpointsRequest */ public APIlistNamespacedEndpointsRequest limit(Integer limit) { this.limit = limit; return this; } /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedEndpointsRequest */ public APIlistNamespacedEndpointsRequest resourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedEndpointsRequest */ public APIlistNamespacedEndpointsRequest resourceVersionMatch(String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedEndpointsRequest */ public APIlistNamespacedEndpointsRequest sendInitialEvents(Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedEndpointsRequest */ public APIlistNamespacedEndpointsRequest timeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } /** * Set watch * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespacedEndpointsRequest */ public APIlistNamespacedEndpointsRequest watch(Boolean watch) { this.watch = watch; return this; } /** * Build call for listNamespacedEndpoints * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return listNamespacedEndpointsCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } /** * Execute listNamespacedEndpoints request * @return V1EndpointsList * @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 V1EndpointsList execute() throws ApiException { ApiResponse localVarResp = listNamespacedEndpointsWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** * Execute listNamespacedEndpoints request with HTTP info returned * @return ApiResponse<V1EndpointsList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return listNamespacedEndpointsWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); } /** * Execute listNamespacedEndpoints request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return listNamespacedEndpointsAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } } /** * * list or watch objects of kind Endpoints * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedEndpointsRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIlistNamespacedEndpointsRequest listNamespacedEndpoints(String namespace) { return new APIlistNamespacedEndpointsRequest(namespace); } private okhttp3.Call listNamespacedEventCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/events" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } if (_continue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } if (resourceVersionMatch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); } if (sendInitialEvents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } if (watch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedEventValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedEvent(Async)"); } return listNamespacedEventCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } private ApiResponse listNamespacedEventWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedEventValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call listNamespacedEventAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedEventValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIlistNamespacedEventRequest { private final String namespace; private String pretty; private Boolean allowWatchBookmarks; private String _continue; private String fieldSelector; private String labelSelector; private Integer limit; private String resourceVersion; private String resourceVersionMatch; private Boolean sendInitialEvents; private Integer timeoutSeconds; private Boolean watch; private APIlistNamespacedEventRequest(String namespace) { this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedEventRequest */ public APIlistNamespacedEventRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set allowWatchBookmarks * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedEventRequest */ public APIlistNamespacedEventRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedEventRequest */ public APIlistNamespacedEventRequest _continue(String _continue) { this._continue = _continue; return this; } /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedEventRequest */ public APIlistNamespacedEventRequest fieldSelector(String fieldSelector) { this.fieldSelector = fieldSelector; return this; } /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedEventRequest */ public APIlistNamespacedEventRequest labelSelector(String labelSelector) { this.labelSelector = labelSelector; return this; } /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedEventRequest */ public APIlistNamespacedEventRequest limit(Integer limit) { this.limit = limit; return this; } /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedEventRequest */ public APIlistNamespacedEventRequest resourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedEventRequest */ public APIlistNamespacedEventRequest resourceVersionMatch(String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedEventRequest */ public APIlistNamespacedEventRequest sendInitialEvents(Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedEventRequest */ public APIlistNamespacedEventRequest timeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } /** * Set watch * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespacedEventRequest */ public APIlistNamespacedEventRequest watch(Boolean watch) { this.watch = watch; return this; } /** * Build call for listNamespacedEvent * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return listNamespacedEventCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } /** * Execute listNamespacedEvent request * @return CoreV1EventList * @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 CoreV1EventList execute() throws ApiException { ApiResponse localVarResp = listNamespacedEventWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** * Execute listNamespacedEvent request with HTTP info returned * @return ApiResponse<CoreV1EventList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return listNamespacedEventWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); } /** * Execute listNamespacedEvent request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return listNamespacedEventAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } } /** * * list or watch objects of kind Event * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedEventRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIlistNamespacedEventRequest listNamespacedEvent(String namespace) { return new APIlistNamespacedEventRequest(namespace); } private okhttp3.Call listNamespacedLimitRangeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/limitranges" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } if (_continue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } if (resourceVersionMatch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); } if (sendInitialEvents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } if (watch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedLimitRangeValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedLimitRange(Async)"); } return listNamespacedLimitRangeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } private ApiResponse listNamespacedLimitRangeWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedLimitRangeValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call listNamespacedLimitRangeAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedLimitRangeValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIlistNamespacedLimitRangeRequest { private final String namespace; private String pretty; private Boolean allowWatchBookmarks; private String _continue; private String fieldSelector; private String labelSelector; private Integer limit; private String resourceVersion; private String resourceVersionMatch; private Boolean sendInitialEvents; private Integer timeoutSeconds; private Boolean watch; private APIlistNamespacedLimitRangeRequest(String namespace) { this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedLimitRangeRequest */ public APIlistNamespacedLimitRangeRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set allowWatchBookmarks * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedLimitRangeRequest */ public APIlistNamespacedLimitRangeRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedLimitRangeRequest */ public APIlistNamespacedLimitRangeRequest _continue(String _continue) { this._continue = _continue; return this; } /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedLimitRangeRequest */ public APIlistNamespacedLimitRangeRequest fieldSelector(String fieldSelector) { this.fieldSelector = fieldSelector; return this; } /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedLimitRangeRequest */ public APIlistNamespacedLimitRangeRequest labelSelector(String labelSelector) { this.labelSelector = labelSelector; return this; } /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedLimitRangeRequest */ public APIlistNamespacedLimitRangeRequest limit(Integer limit) { this.limit = limit; return this; } /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedLimitRangeRequest */ public APIlistNamespacedLimitRangeRequest resourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedLimitRangeRequest */ public APIlistNamespacedLimitRangeRequest resourceVersionMatch(String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedLimitRangeRequest */ public APIlistNamespacedLimitRangeRequest sendInitialEvents(Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedLimitRangeRequest */ public APIlistNamespacedLimitRangeRequest timeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } /** * Set watch * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespacedLimitRangeRequest */ public APIlistNamespacedLimitRangeRequest watch(Boolean watch) { this.watch = watch; return this; } /** * Build call for listNamespacedLimitRange * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return listNamespacedLimitRangeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } /** * Execute listNamespacedLimitRange request * @return V1LimitRangeList * @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 V1LimitRangeList execute() throws ApiException { ApiResponse localVarResp = listNamespacedLimitRangeWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** * Execute listNamespacedLimitRange request with HTTP info returned * @return ApiResponse<V1LimitRangeList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return listNamespacedLimitRangeWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); } /** * Execute listNamespacedLimitRange request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return listNamespacedLimitRangeAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } } /** * * list or watch objects of kind LimitRange * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedLimitRangeRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIlistNamespacedLimitRangeRequest listNamespacedLimitRange(String namespace) { return new APIlistNamespacedLimitRangeRequest(namespace); } private okhttp3.Call listNamespacedPersistentVolumeClaimCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/persistentvolumeclaims" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } if (_continue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } if (resourceVersionMatch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); } if (sendInitialEvents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } if (watch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedPersistentVolumeClaimValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedPersistentVolumeClaim(Async)"); } return listNamespacedPersistentVolumeClaimCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } private ApiResponse listNamespacedPersistentVolumeClaimWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedPersistentVolumeClaimValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call listNamespacedPersistentVolumeClaimAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedPersistentVolumeClaimValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIlistNamespacedPersistentVolumeClaimRequest { private final String namespace; private String pretty; private Boolean allowWatchBookmarks; private String _continue; private String fieldSelector; private String labelSelector; private Integer limit; private String resourceVersion; private String resourceVersionMatch; private Boolean sendInitialEvents; private Integer timeoutSeconds; private Boolean watch; private APIlistNamespacedPersistentVolumeClaimRequest(String namespace) { this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedPersistentVolumeClaimRequest */ public APIlistNamespacedPersistentVolumeClaimRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set allowWatchBookmarks * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedPersistentVolumeClaimRequest */ public APIlistNamespacedPersistentVolumeClaimRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedPersistentVolumeClaimRequest */ public APIlistNamespacedPersistentVolumeClaimRequest _continue(String _continue) { this._continue = _continue; return this; } /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedPersistentVolumeClaimRequest */ public APIlistNamespacedPersistentVolumeClaimRequest fieldSelector(String fieldSelector) { this.fieldSelector = fieldSelector; return this; } /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedPersistentVolumeClaimRequest */ public APIlistNamespacedPersistentVolumeClaimRequest labelSelector(String labelSelector) { this.labelSelector = labelSelector; return this; } /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedPersistentVolumeClaimRequest */ public APIlistNamespacedPersistentVolumeClaimRequest limit(Integer limit) { this.limit = limit; return this; } /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedPersistentVolumeClaimRequest */ public APIlistNamespacedPersistentVolumeClaimRequest resourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedPersistentVolumeClaimRequest */ public APIlistNamespacedPersistentVolumeClaimRequest resourceVersionMatch(String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedPersistentVolumeClaimRequest */ public APIlistNamespacedPersistentVolumeClaimRequest sendInitialEvents(Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedPersistentVolumeClaimRequest */ public APIlistNamespacedPersistentVolumeClaimRequest timeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } /** * Set watch * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespacedPersistentVolumeClaimRequest */ public APIlistNamespacedPersistentVolumeClaimRequest watch(Boolean watch) { this.watch = watch; return this; } /** * Build call for listNamespacedPersistentVolumeClaim * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return listNamespacedPersistentVolumeClaimCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } /** * Execute listNamespacedPersistentVolumeClaim request * @return V1PersistentVolumeClaimList * @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 V1PersistentVolumeClaimList execute() throws ApiException { ApiResponse localVarResp = listNamespacedPersistentVolumeClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** * Execute listNamespacedPersistentVolumeClaim request with HTTP info returned * @return ApiResponse<V1PersistentVolumeClaimList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return listNamespacedPersistentVolumeClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); } /** * Execute listNamespacedPersistentVolumeClaim request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return listNamespacedPersistentVolumeClaimAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } } /** * * list or watch objects of kind PersistentVolumeClaim * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedPersistentVolumeClaimRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIlistNamespacedPersistentVolumeClaimRequest listNamespacedPersistentVolumeClaim(String namespace) { return new APIlistNamespacedPersistentVolumeClaimRequest(namespace); } private okhttp3.Call listNamespacedPodCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } if (_continue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } if (resourceVersionMatch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); } if (sendInitialEvents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } if (watch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedPodValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedPod(Async)"); } return listNamespacedPodCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } private ApiResponse listNamespacedPodWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedPodValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call listNamespacedPodAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedPodValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIlistNamespacedPodRequest { private final String namespace; private String pretty; private Boolean allowWatchBookmarks; private String _continue; private String fieldSelector; private String labelSelector; private Integer limit; private String resourceVersion; private String resourceVersionMatch; private Boolean sendInitialEvents; private Integer timeoutSeconds; private Boolean watch; private APIlistNamespacedPodRequest(String namespace) { this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedPodRequest */ public APIlistNamespacedPodRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set allowWatchBookmarks * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedPodRequest */ public APIlistNamespacedPodRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedPodRequest */ public APIlistNamespacedPodRequest _continue(String _continue) { this._continue = _continue; return this; } /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedPodRequest */ public APIlistNamespacedPodRequest fieldSelector(String fieldSelector) { this.fieldSelector = fieldSelector; return this; } /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedPodRequest */ public APIlistNamespacedPodRequest labelSelector(String labelSelector) { this.labelSelector = labelSelector; return this; } /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedPodRequest */ public APIlistNamespacedPodRequest limit(Integer limit) { this.limit = limit; return this; } /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedPodRequest */ public APIlistNamespacedPodRequest resourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedPodRequest */ public APIlistNamespacedPodRequest resourceVersionMatch(String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedPodRequest */ public APIlistNamespacedPodRequest sendInitialEvents(Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedPodRequest */ public APIlistNamespacedPodRequest timeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } /** * Set watch * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespacedPodRequest */ public APIlistNamespacedPodRequest watch(Boolean watch) { this.watch = watch; return this; } /** * Build call for listNamespacedPod * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return listNamespacedPodCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } /** * Execute listNamespacedPod request * @return V1PodList * @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 V1PodList execute() throws ApiException { ApiResponse localVarResp = listNamespacedPodWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** * Execute listNamespacedPod request with HTTP info returned * @return ApiResponse<V1PodList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return listNamespacedPodWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); } /** * Execute listNamespacedPod request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return listNamespacedPodAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } } /** * * list or watch objects of kind Pod * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedPodRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIlistNamespacedPodRequest listNamespacedPod(String namespace) { return new APIlistNamespacedPodRequest(namespace); } private okhttp3.Call listNamespacedPodTemplateCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/podtemplates" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } if (_continue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } if (resourceVersionMatch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); } if (sendInitialEvents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } if (watch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedPodTemplateValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedPodTemplate(Async)"); } return listNamespacedPodTemplateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } private ApiResponse listNamespacedPodTemplateWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedPodTemplateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call listNamespacedPodTemplateAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedPodTemplateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIlistNamespacedPodTemplateRequest { private final String namespace; private String pretty; private Boolean allowWatchBookmarks; private String _continue; private String fieldSelector; private String labelSelector; private Integer limit; private String resourceVersion; private String resourceVersionMatch; private Boolean sendInitialEvents; private Integer timeoutSeconds; private Boolean watch; private APIlistNamespacedPodTemplateRequest(String namespace) { this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedPodTemplateRequest */ public APIlistNamespacedPodTemplateRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set allowWatchBookmarks * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedPodTemplateRequest */ public APIlistNamespacedPodTemplateRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedPodTemplateRequest */ public APIlistNamespacedPodTemplateRequest _continue(String _continue) { this._continue = _continue; return this; } /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedPodTemplateRequest */ public APIlistNamespacedPodTemplateRequest fieldSelector(String fieldSelector) { this.fieldSelector = fieldSelector; return this; } /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedPodTemplateRequest */ public APIlistNamespacedPodTemplateRequest labelSelector(String labelSelector) { this.labelSelector = labelSelector; return this; } /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedPodTemplateRequest */ public APIlistNamespacedPodTemplateRequest limit(Integer limit) { this.limit = limit; return this; } /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedPodTemplateRequest */ public APIlistNamespacedPodTemplateRequest resourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedPodTemplateRequest */ public APIlistNamespacedPodTemplateRequest resourceVersionMatch(String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedPodTemplateRequest */ public APIlistNamespacedPodTemplateRequest sendInitialEvents(Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedPodTemplateRequest */ public APIlistNamespacedPodTemplateRequest timeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } /** * Set watch * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespacedPodTemplateRequest */ public APIlistNamespacedPodTemplateRequest watch(Boolean watch) { this.watch = watch; return this; } /** * Build call for listNamespacedPodTemplate * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return listNamespacedPodTemplateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } /** * Execute listNamespacedPodTemplate request * @return V1PodTemplateList * @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 V1PodTemplateList execute() throws ApiException { ApiResponse localVarResp = listNamespacedPodTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** * Execute listNamespacedPodTemplate request with HTTP info returned * @return ApiResponse<V1PodTemplateList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return listNamespacedPodTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); } /** * Execute listNamespacedPodTemplate request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return listNamespacedPodTemplateAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } } /** * * list or watch objects of kind PodTemplate * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedPodTemplateRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIlistNamespacedPodTemplateRequest listNamespacedPodTemplate(String namespace) { return new APIlistNamespacedPodTemplateRequest(namespace); } private okhttp3.Call listNamespacedReplicationControllerCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/replicationcontrollers" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } if (_continue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } if (resourceVersionMatch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); } if (sendInitialEvents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } if (watch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedReplicationControllerValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedReplicationController(Async)"); } return listNamespacedReplicationControllerCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } private ApiResponse listNamespacedReplicationControllerWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedReplicationControllerValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call listNamespacedReplicationControllerAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedReplicationControllerValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIlistNamespacedReplicationControllerRequest { private final String namespace; private String pretty; private Boolean allowWatchBookmarks; private String _continue; private String fieldSelector; private String labelSelector; private Integer limit; private String resourceVersion; private String resourceVersionMatch; private Boolean sendInitialEvents; private Integer timeoutSeconds; private Boolean watch; private APIlistNamespacedReplicationControllerRequest(String namespace) { this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedReplicationControllerRequest */ public APIlistNamespacedReplicationControllerRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set allowWatchBookmarks * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedReplicationControllerRequest */ public APIlistNamespacedReplicationControllerRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedReplicationControllerRequest */ public APIlistNamespacedReplicationControllerRequest _continue(String _continue) { this._continue = _continue; return this; } /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedReplicationControllerRequest */ public APIlistNamespacedReplicationControllerRequest fieldSelector(String fieldSelector) { this.fieldSelector = fieldSelector; return this; } /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedReplicationControllerRequest */ public APIlistNamespacedReplicationControllerRequest labelSelector(String labelSelector) { this.labelSelector = labelSelector; return this; } /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedReplicationControllerRequest */ public APIlistNamespacedReplicationControllerRequest limit(Integer limit) { this.limit = limit; return this; } /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedReplicationControllerRequest */ public APIlistNamespacedReplicationControllerRequest resourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedReplicationControllerRequest */ public APIlistNamespacedReplicationControllerRequest resourceVersionMatch(String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedReplicationControllerRequest */ public APIlistNamespacedReplicationControllerRequest sendInitialEvents(Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedReplicationControllerRequest */ public APIlistNamespacedReplicationControllerRequest timeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } /** * Set watch * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespacedReplicationControllerRequest */ public APIlistNamespacedReplicationControllerRequest watch(Boolean watch) { this.watch = watch; return this; } /** * Build call for listNamespacedReplicationController * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return listNamespacedReplicationControllerCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } /** * Execute listNamespacedReplicationController request * @return V1ReplicationControllerList * @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 V1ReplicationControllerList execute() throws ApiException { ApiResponse localVarResp = listNamespacedReplicationControllerWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** * Execute listNamespacedReplicationController request with HTTP info returned * @return ApiResponse<V1ReplicationControllerList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return listNamespacedReplicationControllerWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); } /** * Execute listNamespacedReplicationController request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return listNamespacedReplicationControllerAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } } /** * * list or watch objects of kind ReplicationController * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedReplicationControllerRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIlistNamespacedReplicationControllerRequest listNamespacedReplicationController(String namespace) { return new APIlistNamespacedReplicationControllerRequest(namespace); } private okhttp3.Call listNamespacedResourceQuotaCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/resourcequotas" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } if (_continue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } if (resourceVersionMatch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); } if (sendInitialEvents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } if (watch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedResourceQuotaValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedResourceQuota(Async)"); } return listNamespacedResourceQuotaCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } private ApiResponse listNamespacedResourceQuotaWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedResourceQuotaValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call listNamespacedResourceQuotaAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedResourceQuotaValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIlistNamespacedResourceQuotaRequest { private final String namespace; private String pretty; private Boolean allowWatchBookmarks; private String _continue; private String fieldSelector; private String labelSelector; private Integer limit; private String resourceVersion; private String resourceVersionMatch; private Boolean sendInitialEvents; private Integer timeoutSeconds; private Boolean watch; private APIlistNamespacedResourceQuotaRequest(String namespace) { this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedResourceQuotaRequest */ public APIlistNamespacedResourceQuotaRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set allowWatchBookmarks * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedResourceQuotaRequest */ public APIlistNamespacedResourceQuotaRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedResourceQuotaRequest */ public APIlistNamespacedResourceQuotaRequest _continue(String _continue) { this._continue = _continue; return this; } /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedResourceQuotaRequest */ public APIlistNamespacedResourceQuotaRequest fieldSelector(String fieldSelector) { this.fieldSelector = fieldSelector; return this; } /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedResourceQuotaRequest */ public APIlistNamespacedResourceQuotaRequest labelSelector(String labelSelector) { this.labelSelector = labelSelector; return this; } /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedResourceQuotaRequest */ public APIlistNamespacedResourceQuotaRequest limit(Integer limit) { this.limit = limit; return this; } /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedResourceQuotaRequest */ public APIlistNamespacedResourceQuotaRequest resourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedResourceQuotaRequest */ public APIlistNamespacedResourceQuotaRequest resourceVersionMatch(String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedResourceQuotaRequest */ public APIlistNamespacedResourceQuotaRequest sendInitialEvents(Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedResourceQuotaRequest */ public APIlistNamespacedResourceQuotaRequest timeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } /** * Set watch * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespacedResourceQuotaRequest */ public APIlistNamespacedResourceQuotaRequest watch(Boolean watch) { this.watch = watch; return this; } /** * Build call for listNamespacedResourceQuota * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return listNamespacedResourceQuotaCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } /** * Execute listNamespacedResourceQuota request * @return V1ResourceQuotaList * @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 V1ResourceQuotaList execute() throws ApiException { ApiResponse localVarResp = listNamespacedResourceQuotaWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** * Execute listNamespacedResourceQuota request with HTTP info returned * @return ApiResponse<V1ResourceQuotaList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return listNamespacedResourceQuotaWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); } /** * Execute listNamespacedResourceQuota request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return listNamespacedResourceQuotaAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } } /** * * list or watch objects of kind ResourceQuota * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedResourceQuotaRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIlistNamespacedResourceQuotaRequest listNamespacedResourceQuota(String namespace) { return new APIlistNamespacedResourceQuotaRequest(namespace); } private okhttp3.Call listNamespacedSecretCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/secrets" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } if (_continue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } if (resourceVersionMatch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); } if (sendInitialEvents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } if (watch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedSecretValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedSecret(Async)"); } return listNamespacedSecretCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } private ApiResponse listNamespacedSecretWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedSecretValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call listNamespacedSecretAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedSecretValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIlistNamespacedSecretRequest { private final String namespace; private String pretty; private Boolean allowWatchBookmarks; private String _continue; private String fieldSelector; private String labelSelector; private Integer limit; private String resourceVersion; private String resourceVersionMatch; private Boolean sendInitialEvents; private Integer timeoutSeconds; private Boolean watch; private APIlistNamespacedSecretRequest(String namespace) { this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedSecretRequest */ public APIlistNamespacedSecretRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set allowWatchBookmarks * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedSecretRequest */ public APIlistNamespacedSecretRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedSecretRequest */ public APIlistNamespacedSecretRequest _continue(String _continue) { this._continue = _continue; return this; } /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedSecretRequest */ public APIlistNamespacedSecretRequest fieldSelector(String fieldSelector) { this.fieldSelector = fieldSelector; return this; } /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedSecretRequest */ public APIlistNamespacedSecretRequest labelSelector(String labelSelector) { this.labelSelector = labelSelector; return this; } /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedSecretRequest */ public APIlistNamespacedSecretRequest limit(Integer limit) { this.limit = limit; return this; } /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedSecretRequest */ public APIlistNamespacedSecretRequest resourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedSecretRequest */ public APIlistNamespacedSecretRequest resourceVersionMatch(String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedSecretRequest */ public APIlistNamespacedSecretRequest sendInitialEvents(Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedSecretRequest */ public APIlistNamespacedSecretRequest timeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } /** * Set watch * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespacedSecretRequest */ public APIlistNamespacedSecretRequest watch(Boolean watch) { this.watch = watch; return this; } /** * Build call for listNamespacedSecret * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return listNamespacedSecretCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } /** * Execute listNamespacedSecret request * @return V1SecretList * @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 V1SecretList execute() throws ApiException { ApiResponse localVarResp = listNamespacedSecretWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** * Execute listNamespacedSecret request with HTTP info returned * @return ApiResponse<V1SecretList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return listNamespacedSecretWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); } /** * Execute listNamespacedSecret request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return listNamespacedSecretAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } } /** * * list or watch objects of kind Secret * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedSecretRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIlistNamespacedSecretRequest listNamespacedSecret(String namespace) { return new APIlistNamespacedSecretRequest(namespace); } private okhttp3.Call listNamespacedServiceCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } if (_continue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } if (resourceVersionMatch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); } if (sendInitialEvents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } if (watch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedServiceValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedService(Async)"); } return listNamespacedServiceCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } private ApiResponse listNamespacedServiceWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedServiceValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call listNamespacedServiceAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedServiceValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIlistNamespacedServiceRequest { private final String namespace; private String pretty; private Boolean allowWatchBookmarks; private String _continue; private String fieldSelector; private String labelSelector; private Integer limit; private String resourceVersion; private String resourceVersionMatch; private Boolean sendInitialEvents; private Integer timeoutSeconds; private Boolean watch; private APIlistNamespacedServiceRequest(String namespace) { this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedServiceRequest */ public APIlistNamespacedServiceRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set allowWatchBookmarks * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedServiceRequest */ public APIlistNamespacedServiceRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedServiceRequest */ public APIlistNamespacedServiceRequest _continue(String _continue) { this._continue = _continue; return this; } /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedServiceRequest */ public APIlistNamespacedServiceRequest fieldSelector(String fieldSelector) { this.fieldSelector = fieldSelector; return this; } /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedServiceRequest */ public APIlistNamespacedServiceRequest labelSelector(String labelSelector) { this.labelSelector = labelSelector; return this; } /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedServiceRequest */ public APIlistNamespacedServiceRequest limit(Integer limit) { this.limit = limit; return this; } /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedServiceRequest */ public APIlistNamespacedServiceRequest resourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedServiceRequest */ public APIlistNamespacedServiceRequest resourceVersionMatch(String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedServiceRequest */ public APIlistNamespacedServiceRequest sendInitialEvents(Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedServiceRequest */ public APIlistNamespacedServiceRequest timeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } /** * Set watch * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespacedServiceRequest */ public APIlistNamespacedServiceRequest watch(Boolean watch) { this.watch = watch; return this; } /** * Build call for listNamespacedService * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return listNamespacedServiceCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } /** * Execute listNamespacedService request * @return V1ServiceList * @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 V1ServiceList execute() throws ApiException { ApiResponse localVarResp = listNamespacedServiceWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** * Execute listNamespacedService request with HTTP info returned * @return ApiResponse<V1ServiceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return listNamespacedServiceWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); } /** * Execute listNamespacedService request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return listNamespacedServiceAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } } /** * * list or watch objects of kind Service * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedServiceRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIlistNamespacedServiceRequest listNamespacedService(String namespace) { return new APIlistNamespacedServiceRequest(namespace); } private okhttp3.Call listNamespacedServiceAccountCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/serviceaccounts" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } if (_continue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } if (resourceVersionMatch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); } if (sendInitialEvents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } if (watch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedServiceAccountValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedServiceAccount(Async)"); } return listNamespacedServiceAccountCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } private ApiResponse listNamespacedServiceAccountWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedServiceAccountValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call listNamespacedServiceAccountAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedServiceAccountValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIlistNamespacedServiceAccountRequest { private final String namespace; private String pretty; private Boolean allowWatchBookmarks; private String _continue; private String fieldSelector; private String labelSelector; private Integer limit; private String resourceVersion; private String resourceVersionMatch; private Boolean sendInitialEvents; private Integer timeoutSeconds; private Boolean watch; private APIlistNamespacedServiceAccountRequest(String namespace) { this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedServiceAccountRequest */ public APIlistNamespacedServiceAccountRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set allowWatchBookmarks * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedServiceAccountRequest */ public APIlistNamespacedServiceAccountRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedServiceAccountRequest */ public APIlistNamespacedServiceAccountRequest _continue(String _continue) { this._continue = _continue; return this; } /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedServiceAccountRequest */ public APIlistNamespacedServiceAccountRequest fieldSelector(String fieldSelector) { this.fieldSelector = fieldSelector; return this; } /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedServiceAccountRequest */ public APIlistNamespacedServiceAccountRequest labelSelector(String labelSelector) { this.labelSelector = labelSelector; return this; } /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedServiceAccountRequest */ public APIlistNamespacedServiceAccountRequest limit(Integer limit) { this.limit = limit; return this; } /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedServiceAccountRequest */ public APIlistNamespacedServiceAccountRequest resourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedServiceAccountRequest */ public APIlistNamespacedServiceAccountRequest resourceVersionMatch(String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedServiceAccountRequest */ public APIlistNamespacedServiceAccountRequest sendInitialEvents(Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedServiceAccountRequest */ public APIlistNamespacedServiceAccountRequest timeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } /** * Set watch * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNamespacedServiceAccountRequest */ public APIlistNamespacedServiceAccountRequest watch(Boolean watch) { this.watch = watch; return this; } /** * Build call for listNamespacedServiceAccount * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return listNamespacedServiceAccountCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } /** * Execute listNamespacedServiceAccount request * @return V1ServiceAccountList * @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 V1ServiceAccountList execute() throws ApiException { ApiResponse localVarResp = listNamespacedServiceAccountWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** * Execute listNamespacedServiceAccount request with HTTP info returned * @return ApiResponse<V1ServiceAccountList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return listNamespacedServiceAccountWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); } /** * Execute listNamespacedServiceAccount request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return listNamespacedServiceAccountAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } } /** * * list or watch objects of kind ServiceAccount * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedServiceAccountRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIlistNamespacedServiceAccountRequest listNamespacedServiceAccount(String namespace) { return new APIlistNamespacedServiceAccountRequest(namespace); } private okhttp3.Call listNodeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/nodes"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } if (_continue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } if (resourceVersionMatch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); } if (sendInitialEvents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } if (watch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNodeValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { return listNodeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } private ApiResponse listNodeWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNodeValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call listNodeAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNodeValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIlistNodeRequest { private String pretty; private Boolean allowWatchBookmarks; private String _continue; private String fieldSelector; private String labelSelector; private Integer limit; private String resourceVersion; private String resourceVersionMatch; private Boolean sendInitialEvents; private Integer timeoutSeconds; private Boolean watch; private APIlistNodeRequest() { } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNodeRequest */ public APIlistNodeRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set allowWatchBookmarks * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNodeRequest */ public APIlistNodeRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNodeRequest */ public APIlistNodeRequest _continue(String _continue) { this._continue = _continue; return this; } /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNodeRequest */ public APIlistNodeRequest fieldSelector(String fieldSelector) { this.fieldSelector = fieldSelector; return this; } /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNodeRequest */ public APIlistNodeRequest labelSelector(String labelSelector) { this.labelSelector = labelSelector; return this; } /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNodeRequest */ public APIlistNodeRequest limit(Integer limit) { this.limit = limit; return this; } /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNodeRequest */ public APIlistNodeRequest resourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNodeRequest */ public APIlistNodeRequest resourceVersionMatch(String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNodeRequest */ public APIlistNodeRequest sendInitialEvents(Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNodeRequest */ public APIlistNodeRequest timeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } /** * Set watch * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistNodeRequest */ public APIlistNodeRequest watch(Boolean watch) { this.watch = watch; return this; } /** * Build call for listNode * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return listNodeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } /** * Execute listNode request * @return V1NodeList * @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 V1NodeList execute() throws ApiException { ApiResponse localVarResp = listNodeWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** * Execute listNode request with HTTP info returned * @return ApiResponse<V1NodeList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return listNodeWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); } /** * Execute listNode request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return listNodeAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } } /** * * list or watch objects of kind Node * @return APIlistNodeRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIlistNodeRequest listNode() { return new APIlistNodeRequest(); } private okhttp3.Call listPersistentVolumeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/persistentvolumes"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } if (_continue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } if (resourceVersionMatch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); } if (sendInitialEvents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } if (watch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listPersistentVolumeValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { return listPersistentVolumeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } private ApiResponse listPersistentVolumeWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { okhttp3.Call localVarCall = listPersistentVolumeValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call listPersistentVolumeAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listPersistentVolumeValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIlistPersistentVolumeRequest { private String pretty; private Boolean allowWatchBookmarks; private String _continue; private String fieldSelector; private String labelSelector; private Integer limit; private String resourceVersion; private String resourceVersionMatch; private Boolean sendInitialEvents; private Integer timeoutSeconds; private Boolean watch; private APIlistPersistentVolumeRequest() { } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistPersistentVolumeRequest */ public APIlistPersistentVolumeRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set allowWatchBookmarks * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistPersistentVolumeRequest */ public APIlistPersistentVolumeRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistPersistentVolumeRequest */ public APIlistPersistentVolumeRequest _continue(String _continue) { this._continue = _continue; return this; } /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistPersistentVolumeRequest */ public APIlistPersistentVolumeRequest fieldSelector(String fieldSelector) { this.fieldSelector = fieldSelector; return this; } /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistPersistentVolumeRequest */ public APIlistPersistentVolumeRequest labelSelector(String labelSelector) { this.labelSelector = labelSelector; return this; } /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistPersistentVolumeRequest */ public APIlistPersistentVolumeRequest limit(Integer limit) { this.limit = limit; return this; } /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistPersistentVolumeRequest */ public APIlistPersistentVolumeRequest resourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistPersistentVolumeRequest */ public APIlistPersistentVolumeRequest resourceVersionMatch(String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistPersistentVolumeRequest */ public APIlistPersistentVolumeRequest sendInitialEvents(Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistPersistentVolumeRequest */ public APIlistPersistentVolumeRequest timeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } /** * Set watch * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistPersistentVolumeRequest */ public APIlistPersistentVolumeRequest watch(Boolean watch) { this.watch = watch; return this; } /** * Build call for listPersistentVolume * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return listPersistentVolumeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } /** * Execute listPersistentVolume request * @return V1PersistentVolumeList * @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 V1PersistentVolumeList execute() throws ApiException { ApiResponse localVarResp = listPersistentVolumeWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** * Execute listPersistentVolume request with HTTP info returned * @return ApiResponse<V1PersistentVolumeList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return listPersistentVolumeWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); } /** * Execute listPersistentVolume request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return listPersistentVolumeAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } } /** * * list or watch objects of kind PersistentVolume * @return APIlistPersistentVolumeRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIlistPersistentVolumeRequest listPersistentVolume() { return new APIlistPersistentVolumeRequest(); } private okhttp3.Call listPersistentVolumeClaimForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/persistentvolumeclaims"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } if (_continue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } if (resourceVersionMatch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); } if (sendInitialEvents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } if (watch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listPersistentVolumeClaimForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { return listPersistentVolumeClaimForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } private ApiResponse listPersistentVolumeClaimForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { okhttp3.Call localVarCall = listPersistentVolumeClaimForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call listPersistentVolumeClaimForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listPersistentVolumeClaimForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIlistPersistentVolumeClaimForAllNamespacesRequest { private Boolean allowWatchBookmarks; private String _continue; private String fieldSelector; private String labelSelector; private Integer limit; private String pretty; private String resourceVersion; private String resourceVersionMatch; private Boolean sendInitialEvents; private Integer timeoutSeconds; private Boolean watch; private APIlistPersistentVolumeClaimForAllNamespacesRequest() { } /** * Set allowWatchBookmarks * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistPersistentVolumeClaimForAllNamespacesRequest */ public APIlistPersistentVolumeClaimForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistPersistentVolumeClaimForAllNamespacesRequest */ public APIlistPersistentVolumeClaimForAllNamespacesRequest _continue(String _continue) { this._continue = _continue; return this; } /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistPersistentVolumeClaimForAllNamespacesRequest */ public APIlistPersistentVolumeClaimForAllNamespacesRequest fieldSelector(String fieldSelector) { this.fieldSelector = fieldSelector; return this; } /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistPersistentVolumeClaimForAllNamespacesRequest */ public APIlistPersistentVolumeClaimForAllNamespacesRequest labelSelector(String labelSelector) { this.labelSelector = labelSelector; return this; } /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistPersistentVolumeClaimForAllNamespacesRequest */ public APIlistPersistentVolumeClaimForAllNamespacesRequest limit(Integer limit) { this.limit = limit; return this; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistPersistentVolumeClaimForAllNamespacesRequest */ public APIlistPersistentVolumeClaimForAllNamespacesRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistPersistentVolumeClaimForAllNamespacesRequest */ public APIlistPersistentVolumeClaimForAllNamespacesRequest resourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistPersistentVolumeClaimForAllNamespacesRequest */ public APIlistPersistentVolumeClaimForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistPersistentVolumeClaimForAllNamespacesRequest */ public APIlistPersistentVolumeClaimForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistPersistentVolumeClaimForAllNamespacesRequest */ public APIlistPersistentVolumeClaimForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } /** * Set watch * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistPersistentVolumeClaimForAllNamespacesRequest */ public APIlistPersistentVolumeClaimForAllNamespacesRequest watch(Boolean watch) { this.watch = watch; return this; } /** * Build call for listPersistentVolumeClaimForAllNamespaces * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return listPersistentVolumeClaimForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } /** * Execute listPersistentVolumeClaimForAllNamespaces request * @return V1PersistentVolumeClaimList * @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 V1PersistentVolumeClaimList execute() throws ApiException { ApiResponse localVarResp = listPersistentVolumeClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** * Execute listPersistentVolumeClaimForAllNamespaces request with HTTP info returned * @return ApiResponse<V1PersistentVolumeClaimList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return listPersistentVolumeClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); } /** * Execute listPersistentVolumeClaimForAllNamespaces request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return listPersistentVolumeClaimForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } } /** * * list or watch objects of kind PersistentVolumeClaim * @return APIlistPersistentVolumeClaimForAllNamespacesRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIlistPersistentVolumeClaimForAllNamespacesRequest listPersistentVolumeClaimForAllNamespaces() { return new APIlistPersistentVolumeClaimForAllNamespacesRequest(); } private okhttp3.Call listPodForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/pods"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } if (_continue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } if (resourceVersionMatch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); } if (sendInitialEvents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } if (watch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listPodForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { return listPodForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } private ApiResponse listPodForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { okhttp3.Call localVarCall = listPodForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call listPodForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listPodForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIlistPodForAllNamespacesRequest { private Boolean allowWatchBookmarks; private String _continue; private String fieldSelector; private String labelSelector; private Integer limit; private String pretty; private String resourceVersion; private String resourceVersionMatch; private Boolean sendInitialEvents; private Integer timeoutSeconds; private Boolean watch; private APIlistPodForAllNamespacesRequest() { } /** * Set allowWatchBookmarks * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistPodForAllNamespacesRequest */ public APIlistPodForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistPodForAllNamespacesRequest */ public APIlistPodForAllNamespacesRequest _continue(String _continue) { this._continue = _continue; return this; } /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistPodForAllNamespacesRequest */ public APIlistPodForAllNamespacesRequest fieldSelector(String fieldSelector) { this.fieldSelector = fieldSelector; return this; } /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistPodForAllNamespacesRequest */ public APIlistPodForAllNamespacesRequest labelSelector(String labelSelector) { this.labelSelector = labelSelector; return this; } /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistPodForAllNamespacesRequest */ public APIlistPodForAllNamespacesRequest limit(Integer limit) { this.limit = limit; return this; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistPodForAllNamespacesRequest */ public APIlistPodForAllNamespacesRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistPodForAllNamespacesRequest */ public APIlistPodForAllNamespacesRequest resourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistPodForAllNamespacesRequest */ public APIlistPodForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistPodForAllNamespacesRequest */ public APIlistPodForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistPodForAllNamespacesRequest */ public APIlistPodForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } /** * Set watch * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistPodForAllNamespacesRequest */ public APIlistPodForAllNamespacesRequest watch(Boolean watch) { this.watch = watch; return this; } /** * Build call for listPodForAllNamespaces * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return listPodForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } /** * Execute listPodForAllNamespaces request * @return V1PodList * @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 V1PodList execute() throws ApiException { ApiResponse localVarResp = listPodForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** * Execute listPodForAllNamespaces request with HTTP info returned * @return ApiResponse<V1PodList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return listPodForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); } /** * Execute listPodForAllNamespaces request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return listPodForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } } /** * * list or watch objects of kind Pod * @return APIlistPodForAllNamespacesRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIlistPodForAllNamespacesRequest listPodForAllNamespaces() { return new APIlistPodForAllNamespacesRequest(); } private okhttp3.Call listPodTemplateForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/podtemplates"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } if (_continue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } if (resourceVersionMatch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); } if (sendInitialEvents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } if (watch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listPodTemplateForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { return listPodTemplateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } private ApiResponse listPodTemplateForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { okhttp3.Call localVarCall = listPodTemplateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call listPodTemplateForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listPodTemplateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIlistPodTemplateForAllNamespacesRequest { private Boolean allowWatchBookmarks; private String _continue; private String fieldSelector; private String labelSelector; private Integer limit; private String pretty; private String resourceVersion; private String resourceVersionMatch; private Boolean sendInitialEvents; private Integer timeoutSeconds; private Boolean watch; private APIlistPodTemplateForAllNamespacesRequest() { } /** * Set allowWatchBookmarks * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistPodTemplateForAllNamespacesRequest */ public APIlistPodTemplateForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistPodTemplateForAllNamespacesRequest */ public APIlistPodTemplateForAllNamespacesRequest _continue(String _continue) { this._continue = _continue; return this; } /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistPodTemplateForAllNamespacesRequest */ public APIlistPodTemplateForAllNamespacesRequest fieldSelector(String fieldSelector) { this.fieldSelector = fieldSelector; return this; } /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistPodTemplateForAllNamespacesRequest */ public APIlistPodTemplateForAllNamespacesRequest labelSelector(String labelSelector) { this.labelSelector = labelSelector; return this; } /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistPodTemplateForAllNamespacesRequest */ public APIlistPodTemplateForAllNamespacesRequest limit(Integer limit) { this.limit = limit; return this; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistPodTemplateForAllNamespacesRequest */ public APIlistPodTemplateForAllNamespacesRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistPodTemplateForAllNamespacesRequest */ public APIlistPodTemplateForAllNamespacesRequest resourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistPodTemplateForAllNamespacesRequest */ public APIlistPodTemplateForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistPodTemplateForAllNamespacesRequest */ public APIlistPodTemplateForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistPodTemplateForAllNamespacesRequest */ public APIlistPodTemplateForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } /** * Set watch * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistPodTemplateForAllNamespacesRequest */ public APIlistPodTemplateForAllNamespacesRequest watch(Boolean watch) { this.watch = watch; return this; } /** * Build call for listPodTemplateForAllNamespaces * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return listPodTemplateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } /** * Execute listPodTemplateForAllNamespaces request * @return V1PodTemplateList * @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 V1PodTemplateList execute() throws ApiException { ApiResponse localVarResp = listPodTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** * Execute listPodTemplateForAllNamespaces request with HTTP info returned * @return ApiResponse<V1PodTemplateList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return listPodTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); } /** * Execute listPodTemplateForAllNamespaces request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return listPodTemplateForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } } /** * * list or watch objects of kind PodTemplate * @return APIlistPodTemplateForAllNamespacesRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIlistPodTemplateForAllNamespacesRequest listPodTemplateForAllNamespaces() { return new APIlistPodTemplateForAllNamespacesRequest(); } private okhttp3.Call listReplicationControllerForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/replicationcontrollers"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } if (_continue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } if (resourceVersionMatch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); } if (sendInitialEvents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } if (watch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listReplicationControllerForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { return listReplicationControllerForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } private ApiResponse listReplicationControllerForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { okhttp3.Call localVarCall = listReplicationControllerForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call listReplicationControllerForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listReplicationControllerForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIlistReplicationControllerForAllNamespacesRequest { private Boolean allowWatchBookmarks; private String _continue; private String fieldSelector; private String labelSelector; private Integer limit; private String pretty; private String resourceVersion; private String resourceVersionMatch; private Boolean sendInitialEvents; private Integer timeoutSeconds; private Boolean watch; private APIlistReplicationControllerForAllNamespacesRequest() { } /** * Set allowWatchBookmarks * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistReplicationControllerForAllNamespacesRequest */ public APIlistReplicationControllerForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistReplicationControllerForAllNamespacesRequest */ public APIlistReplicationControllerForAllNamespacesRequest _continue(String _continue) { this._continue = _continue; return this; } /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistReplicationControllerForAllNamespacesRequest */ public APIlistReplicationControllerForAllNamespacesRequest fieldSelector(String fieldSelector) { this.fieldSelector = fieldSelector; return this; } /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistReplicationControllerForAllNamespacesRequest */ public APIlistReplicationControllerForAllNamespacesRequest labelSelector(String labelSelector) { this.labelSelector = labelSelector; return this; } /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistReplicationControllerForAllNamespacesRequest */ public APIlistReplicationControllerForAllNamespacesRequest limit(Integer limit) { this.limit = limit; return this; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistReplicationControllerForAllNamespacesRequest */ public APIlistReplicationControllerForAllNamespacesRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistReplicationControllerForAllNamespacesRequest */ public APIlistReplicationControllerForAllNamespacesRequest resourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistReplicationControllerForAllNamespacesRequest */ public APIlistReplicationControllerForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistReplicationControllerForAllNamespacesRequest */ public APIlistReplicationControllerForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistReplicationControllerForAllNamespacesRequest */ public APIlistReplicationControllerForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } /** * Set watch * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistReplicationControllerForAllNamespacesRequest */ public APIlistReplicationControllerForAllNamespacesRequest watch(Boolean watch) { this.watch = watch; return this; } /** * Build call for listReplicationControllerForAllNamespaces * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return listReplicationControllerForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } /** * Execute listReplicationControllerForAllNamespaces request * @return V1ReplicationControllerList * @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 V1ReplicationControllerList execute() throws ApiException { ApiResponse localVarResp = listReplicationControllerForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** * Execute listReplicationControllerForAllNamespaces request with HTTP info returned * @return ApiResponse<V1ReplicationControllerList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return listReplicationControllerForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); } /** * Execute listReplicationControllerForAllNamespaces request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return listReplicationControllerForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } } /** * * list or watch objects of kind ReplicationController * @return APIlistReplicationControllerForAllNamespacesRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIlistReplicationControllerForAllNamespacesRequest listReplicationControllerForAllNamespaces() { return new APIlistReplicationControllerForAllNamespacesRequest(); } private okhttp3.Call listResourceQuotaForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/resourcequotas"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } if (_continue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } if (resourceVersionMatch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); } if (sendInitialEvents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } if (watch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listResourceQuotaForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { return listResourceQuotaForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } private ApiResponse listResourceQuotaForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { okhttp3.Call localVarCall = listResourceQuotaForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call listResourceQuotaForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listResourceQuotaForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIlistResourceQuotaForAllNamespacesRequest { private Boolean allowWatchBookmarks; private String _continue; private String fieldSelector; private String labelSelector; private Integer limit; private String pretty; private String resourceVersion; private String resourceVersionMatch; private Boolean sendInitialEvents; private Integer timeoutSeconds; private Boolean watch; private APIlistResourceQuotaForAllNamespacesRequest() { } /** * Set allowWatchBookmarks * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistResourceQuotaForAllNamespacesRequest */ public APIlistResourceQuotaForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistResourceQuotaForAllNamespacesRequest */ public APIlistResourceQuotaForAllNamespacesRequest _continue(String _continue) { this._continue = _continue; return this; } /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistResourceQuotaForAllNamespacesRequest */ public APIlistResourceQuotaForAllNamespacesRequest fieldSelector(String fieldSelector) { this.fieldSelector = fieldSelector; return this; } /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistResourceQuotaForAllNamespacesRequest */ public APIlistResourceQuotaForAllNamespacesRequest labelSelector(String labelSelector) { this.labelSelector = labelSelector; return this; } /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistResourceQuotaForAllNamespacesRequest */ public APIlistResourceQuotaForAllNamespacesRequest limit(Integer limit) { this.limit = limit; return this; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistResourceQuotaForAllNamespacesRequest */ public APIlistResourceQuotaForAllNamespacesRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistResourceQuotaForAllNamespacesRequest */ public APIlistResourceQuotaForAllNamespacesRequest resourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistResourceQuotaForAllNamespacesRequest */ public APIlistResourceQuotaForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistResourceQuotaForAllNamespacesRequest */ public APIlistResourceQuotaForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistResourceQuotaForAllNamespacesRequest */ public APIlistResourceQuotaForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } /** * Set watch * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistResourceQuotaForAllNamespacesRequest */ public APIlistResourceQuotaForAllNamespacesRequest watch(Boolean watch) { this.watch = watch; return this; } /** * Build call for listResourceQuotaForAllNamespaces * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return listResourceQuotaForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } /** * Execute listResourceQuotaForAllNamespaces request * @return V1ResourceQuotaList * @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 V1ResourceQuotaList execute() throws ApiException { ApiResponse localVarResp = listResourceQuotaForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** * Execute listResourceQuotaForAllNamespaces request with HTTP info returned * @return ApiResponse<V1ResourceQuotaList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return listResourceQuotaForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); } /** * Execute listResourceQuotaForAllNamespaces request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return listResourceQuotaForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } } /** * * list or watch objects of kind ResourceQuota * @return APIlistResourceQuotaForAllNamespacesRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIlistResourceQuotaForAllNamespacesRequest listResourceQuotaForAllNamespaces() { return new APIlistResourceQuotaForAllNamespacesRequest(); } private okhttp3.Call listSecretForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/secrets"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } if (_continue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } if (resourceVersionMatch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); } if (sendInitialEvents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } if (watch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listSecretForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { return listSecretForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } private ApiResponse listSecretForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { okhttp3.Call localVarCall = listSecretForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call listSecretForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listSecretForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIlistSecretForAllNamespacesRequest { private Boolean allowWatchBookmarks; private String _continue; private String fieldSelector; private String labelSelector; private Integer limit; private String pretty; private String resourceVersion; private String resourceVersionMatch; private Boolean sendInitialEvents; private Integer timeoutSeconds; private Boolean watch; private APIlistSecretForAllNamespacesRequest() { } /** * Set allowWatchBookmarks * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistSecretForAllNamespacesRequest */ public APIlistSecretForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistSecretForAllNamespacesRequest */ public APIlistSecretForAllNamespacesRequest _continue(String _continue) { this._continue = _continue; return this; } /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistSecretForAllNamespacesRequest */ public APIlistSecretForAllNamespacesRequest fieldSelector(String fieldSelector) { this.fieldSelector = fieldSelector; return this; } /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistSecretForAllNamespacesRequest */ public APIlistSecretForAllNamespacesRequest labelSelector(String labelSelector) { this.labelSelector = labelSelector; return this; } /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistSecretForAllNamespacesRequest */ public APIlistSecretForAllNamespacesRequest limit(Integer limit) { this.limit = limit; return this; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistSecretForAllNamespacesRequest */ public APIlistSecretForAllNamespacesRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistSecretForAllNamespacesRequest */ public APIlistSecretForAllNamespacesRequest resourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistSecretForAllNamespacesRequest */ public APIlistSecretForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistSecretForAllNamespacesRequest */ public APIlistSecretForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistSecretForAllNamespacesRequest */ public APIlistSecretForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } /** * Set watch * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistSecretForAllNamespacesRequest */ public APIlistSecretForAllNamespacesRequest watch(Boolean watch) { this.watch = watch; return this; } /** * Build call for listSecretForAllNamespaces * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return listSecretForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } /** * Execute listSecretForAllNamespaces request * @return V1SecretList * @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 V1SecretList execute() throws ApiException { ApiResponse localVarResp = listSecretForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** * Execute listSecretForAllNamespaces request with HTTP info returned * @return ApiResponse<V1SecretList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return listSecretForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); } /** * Execute listSecretForAllNamespaces request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return listSecretForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } } /** * * list or watch objects of kind Secret * @return APIlistSecretForAllNamespacesRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIlistSecretForAllNamespacesRequest listSecretForAllNamespaces() { return new APIlistSecretForAllNamespacesRequest(); } private okhttp3.Call listServiceAccountForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/serviceaccounts"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } if (_continue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } if (resourceVersionMatch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); } if (sendInitialEvents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } if (watch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listServiceAccountForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { return listServiceAccountForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } private ApiResponse listServiceAccountForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { okhttp3.Call localVarCall = listServiceAccountForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call listServiceAccountForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listServiceAccountForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIlistServiceAccountForAllNamespacesRequest { private Boolean allowWatchBookmarks; private String _continue; private String fieldSelector; private String labelSelector; private Integer limit; private String pretty; private String resourceVersion; private String resourceVersionMatch; private Boolean sendInitialEvents; private Integer timeoutSeconds; private Boolean watch; private APIlistServiceAccountForAllNamespacesRequest() { } /** * Set allowWatchBookmarks * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistServiceAccountForAllNamespacesRequest */ public APIlistServiceAccountForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistServiceAccountForAllNamespacesRequest */ public APIlistServiceAccountForAllNamespacesRequest _continue(String _continue) { this._continue = _continue; return this; } /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistServiceAccountForAllNamespacesRequest */ public APIlistServiceAccountForAllNamespacesRequest fieldSelector(String fieldSelector) { this.fieldSelector = fieldSelector; return this; } /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistServiceAccountForAllNamespacesRequest */ public APIlistServiceAccountForAllNamespacesRequest labelSelector(String labelSelector) { this.labelSelector = labelSelector; return this; } /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistServiceAccountForAllNamespacesRequest */ public APIlistServiceAccountForAllNamespacesRequest limit(Integer limit) { this.limit = limit; return this; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistServiceAccountForAllNamespacesRequest */ public APIlistServiceAccountForAllNamespacesRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistServiceAccountForAllNamespacesRequest */ public APIlistServiceAccountForAllNamespacesRequest resourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistServiceAccountForAllNamespacesRequest */ public APIlistServiceAccountForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistServiceAccountForAllNamespacesRequest */ public APIlistServiceAccountForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistServiceAccountForAllNamespacesRequest */ public APIlistServiceAccountForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } /** * Set watch * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistServiceAccountForAllNamespacesRequest */ public APIlistServiceAccountForAllNamespacesRequest watch(Boolean watch) { this.watch = watch; return this; } /** * Build call for listServiceAccountForAllNamespaces * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return listServiceAccountForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } /** * Execute listServiceAccountForAllNamespaces request * @return V1ServiceAccountList * @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 V1ServiceAccountList execute() throws ApiException { ApiResponse localVarResp = listServiceAccountForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** * Execute listServiceAccountForAllNamespaces request with HTTP info returned * @return ApiResponse<V1ServiceAccountList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return listServiceAccountForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); } /** * Execute listServiceAccountForAllNamespaces request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return listServiceAccountForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } } /** * * list or watch objects of kind ServiceAccount * @return APIlistServiceAccountForAllNamespacesRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIlistServiceAccountForAllNamespacesRequest listServiceAccountForAllNamespaces() { return new APIlistServiceAccountForAllNamespacesRequest(); } private okhttp3.Call listServiceForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/services"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } if (_continue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } if (resourceVersionMatch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); } if (sendInitialEvents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } if (watch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listServiceForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { return listServiceForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } private ApiResponse listServiceForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { okhttp3.Call localVarCall = listServiceForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call listServiceForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listServiceForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIlistServiceForAllNamespacesRequest { private Boolean allowWatchBookmarks; private String _continue; private String fieldSelector; private String labelSelector; private Integer limit; private String pretty; private String resourceVersion; private String resourceVersionMatch; private Boolean sendInitialEvents; private Integer timeoutSeconds; private Boolean watch; private APIlistServiceForAllNamespacesRequest() { } /** * Set allowWatchBookmarks * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistServiceForAllNamespacesRequest */ public APIlistServiceForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistServiceForAllNamespacesRequest */ public APIlistServiceForAllNamespacesRequest _continue(String _continue) { this._continue = _continue; return this; } /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistServiceForAllNamespacesRequest */ public APIlistServiceForAllNamespacesRequest fieldSelector(String fieldSelector) { this.fieldSelector = fieldSelector; return this; } /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistServiceForAllNamespacesRequest */ public APIlistServiceForAllNamespacesRequest labelSelector(String labelSelector) { this.labelSelector = labelSelector; return this; } /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistServiceForAllNamespacesRequest */ public APIlistServiceForAllNamespacesRequest limit(Integer limit) { this.limit = limit; return this; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistServiceForAllNamespacesRequest */ public APIlistServiceForAllNamespacesRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistServiceForAllNamespacesRequest */ public APIlistServiceForAllNamespacesRequest resourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistServiceForAllNamespacesRequest */ public APIlistServiceForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistServiceForAllNamespacesRequest */ public APIlistServiceForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistServiceForAllNamespacesRequest */ public APIlistServiceForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } /** * Set watch * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return APIlistServiceForAllNamespacesRequest */ public APIlistServiceForAllNamespacesRequest watch(Boolean watch) { this.watch = watch; return this; } /** * Build call for listServiceForAllNamespaces * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return listServiceForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } /** * Execute listServiceForAllNamespaces request * @return V1ServiceList * @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 V1ServiceList execute() throws ApiException { ApiResponse localVarResp = listServiceForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** * Execute listServiceForAllNamespaces request with HTTP info returned * @return ApiResponse<V1ServiceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return listServiceForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); } /** * Execute listServiceForAllNamespaces request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return listServiceForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } } /** * * list or watch objects of kind Service * @return APIlistServiceForAllNamespacesRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIlistServiceForAllNamespacesRequest listServiceForAllNamespaces() { return new APIlistServiceForAllNamespacesRequest(); } private okhttp3.Call patchNamespaceCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } if (force != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespaceValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, 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 patchNamespace(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling patchNamespace(Async)"); } return patchNamespaceCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } private ApiResponse patchNamespaceWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespaceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call patchNamespaceAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespaceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpatchNamespaceRequest { private final String name; private final V1Patch body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private Boolean force; private APIpatchNamespaceRequest(String name, V1Patch body) { this.name = name; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespaceRequest */ public APIpatchNamespaceRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespaceRequest */ public APIpatchNamespaceRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespaceRequest */ public APIpatchNamespaceRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespaceRequest */ public APIpatchNamespaceRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Set force * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespaceRequest */ public APIpatchNamespaceRequest force(Boolean force) { this.force = force; return this; } /** * Build call for patchNamespace * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return patchNamespaceCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** * Execute patchNamespace request * @return V1Namespace * @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 -
201 Created -
401 Unauthorized -
*/ public V1Namespace execute() throws ApiException { ApiResponse localVarResp = patchNamespaceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** * Execute patchNamespace request with HTTP info returned * @return ApiResponse<V1Namespace> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return patchNamespaceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** * Execute patchNamespace request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return patchNamespaceAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * * partially update the specified Namespace * @param name name of the Namespace (required) * @param body (required) * @return APIpatchNamespaceRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIpatchNamespaceRequest patchNamespace(String name, V1Patch body) { return new APIpatchNamespaceRequest(name, body); } private okhttp3.Call patchNamespaceStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{name}/status" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } if (force != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespaceStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, 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 patchNamespaceStatus(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling patchNamespaceStatus(Async)"); } return patchNamespaceStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } private ApiResponse patchNamespaceStatusWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespaceStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call patchNamespaceStatusAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespaceStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpatchNamespaceStatusRequest { private final String name; private final V1Patch body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private Boolean force; private APIpatchNamespaceStatusRequest(String name, V1Patch body) { this.name = name; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespaceStatusRequest */ public APIpatchNamespaceStatusRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespaceStatusRequest */ public APIpatchNamespaceStatusRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespaceStatusRequest */ public APIpatchNamespaceStatusRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespaceStatusRequest */ public APIpatchNamespaceStatusRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Set force * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespaceStatusRequest */ public APIpatchNamespaceStatusRequest force(Boolean force) { this.force = force; return this; } /** * Build call for patchNamespaceStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return patchNamespaceStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** * Execute patchNamespaceStatus request * @return V1Namespace * @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 -
201 Created -
401 Unauthorized -
*/ public V1Namespace execute() throws ApiException { ApiResponse localVarResp = patchNamespaceStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** * Execute patchNamespaceStatus request with HTTP info returned * @return ApiResponse<V1Namespace> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return patchNamespaceStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** * Execute patchNamespaceStatus request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return patchNamespaceStatusAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * * partially update status of the specified Namespace * @param name name of the Namespace (required) * @param body (required) * @return APIpatchNamespaceStatusRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIpatchNamespaceStatusRequest patchNamespaceStatus(String name, V1Patch body) { return new APIpatchNamespaceStatusRequest(name, body); } private okhttp3.Call patchNamespacedConfigMapCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/configmaps/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } if (force != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedConfigMapValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, 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 patchNamespacedConfigMap(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedConfigMap(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedConfigMap(Async)"); } return patchNamespacedConfigMapCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } private ApiResponse patchNamespacedConfigMapWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedConfigMapValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call patchNamespacedConfigMapAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedConfigMapValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpatchNamespacedConfigMapRequest { private final String name; private final String namespace; private final V1Patch body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private Boolean force; private APIpatchNamespacedConfigMapRequest(String name, String namespace, V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedConfigMapRequest */ public APIpatchNamespacedConfigMapRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedConfigMapRequest */ public APIpatchNamespacedConfigMapRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedConfigMapRequest */ public APIpatchNamespacedConfigMapRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedConfigMapRequest */ public APIpatchNamespacedConfigMapRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Set force * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedConfigMapRequest */ public APIpatchNamespacedConfigMapRequest force(Boolean force) { this.force = force; return this; } /** * Build call for patchNamespacedConfigMap * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return patchNamespacedConfigMapCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** * Execute patchNamespacedConfigMap request * @return V1ConfigMap * @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 -
201 Created -
401 Unauthorized -
*/ public V1ConfigMap execute() throws ApiException { ApiResponse localVarResp = patchNamespacedConfigMapWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** * Execute patchNamespacedConfigMap request with HTTP info returned * @return ApiResponse<V1ConfigMap> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return patchNamespacedConfigMapWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** * Execute patchNamespacedConfigMap request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return patchNamespacedConfigMapAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * * partially update the specified ConfigMap * @param name name of the ConfigMap (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIpatchNamespacedConfigMapRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIpatchNamespacedConfigMapRequest patchNamespacedConfigMap(String name, String namespace, V1Patch body) { return new APIpatchNamespacedConfigMapRequest(name, namespace, body); } private okhttp3.Call patchNamespacedEndpointsCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/endpoints/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } if (force != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedEndpointsValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, 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 patchNamespacedEndpoints(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedEndpoints(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedEndpoints(Async)"); } return patchNamespacedEndpointsCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } private ApiResponse patchNamespacedEndpointsWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedEndpointsValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call patchNamespacedEndpointsAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedEndpointsValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpatchNamespacedEndpointsRequest { private final String name; private final String namespace; private final V1Patch body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private Boolean force; private APIpatchNamespacedEndpointsRequest(String name, String namespace, V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedEndpointsRequest */ public APIpatchNamespacedEndpointsRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedEndpointsRequest */ public APIpatchNamespacedEndpointsRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedEndpointsRequest */ public APIpatchNamespacedEndpointsRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedEndpointsRequest */ public APIpatchNamespacedEndpointsRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Set force * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedEndpointsRequest */ public APIpatchNamespacedEndpointsRequest force(Boolean force) { this.force = force; return this; } /** * Build call for patchNamespacedEndpoints * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return patchNamespacedEndpointsCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** * Execute patchNamespacedEndpoints request * @return V1Endpoints * @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 -
201 Created -
401 Unauthorized -
*/ public V1Endpoints execute() throws ApiException { ApiResponse localVarResp = patchNamespacedEndpointsWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** * Execute patchNamespacedEndpoints request with HTTP info returned * @return ApiResponse<V1Endpoints> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return patchNamespacedEndpointsWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** * Execute patchNamespacedEndpoints request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return patchNamespacedEndpointsAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * * partially update the specified Endpoints * @param name name of the Endpoints (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIpatchNamespacedEndpointsRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIpatchNamespacedEndpointsRequest patchNamespacedEndpoints(String name, String namespace, V1Patch body) { return new APIpatchNamespacedEndpointsRequest(name, namespace, body); } private okhttp3.Call patchNamespacedEventCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/events/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } if (force != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedEventValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, 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 patchNamespacedEvent(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedEvent(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedEvent(Async)"); } return patchNamespacedEventCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } private ApiResponse patchNamespacedEventWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedEventValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call patchNamespacedEventAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedEventValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpatchNamespacedEventRequest { private final String name; private final String namespace; private final V1Patch body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private Boolean force; private APIpatchNamespacedEventRequest(String name, String namespace, V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedEventRequest */ public APIpatchNamespacedEventRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedEventRequest */ public APIpatchNamespacedEventRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedEventRequest */ public APIpatchNamespacedEventRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedEventRequest */ public APIpatchNamespacedEventRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Set force * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedEventRequest */ public APIpatchNamespacedEventRequest force(Boolean force) { this.force = force; return this; } /** * Build call for patchNamespacedEvent * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return patchNamespacedEventCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** * Execute patchNamespacedEvent request * @return CoreV1Event * @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 -
201 Created -
401 Unauthorized -
*/ public CoreV1Event execute() throws ApiException { ApiResponse localVarResp = patchNamespacedEventWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** * Execute patchNamespacedEvent request with HTTP info returned * @return ApiResponse<CoreV1Event> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return patchNamespacedEventWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** * Execute patchNamespacedEvent request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return patchNamespacedEventAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * * partially update the specified Event * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIpatchNamespacedEventRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIpatchNamespacedEventRequest patchNamespacedEvent(String name, String namespace, V1Patch body) { return new APIpatchNamespacedEventRequest(name, namespace, body); } private okhttp3.Call patchNamespacedLimitRangeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/limitranges/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } if (force != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedLimitRangeValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, 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 patchNamespacedLimitRange(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedLimitRange(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedLimitRange(Async)"); } return patchNamespacedLimitRangeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } private ApiResponse patchNamespacedLimitRangeWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedLimitRangeValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call patchNamespacedLimitRangeAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedLimitRangeValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpatchNamespacedLimitRangeRequest { private final String name; private final String namespace; private final V1Patch body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private Boolean force; private APIpatchNamespacedLimitRangeRequest(String name, String namespace, V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedLimitRangeRequest */ public APIpatchNamespacedLimitRangeRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedLimitRangeRequest */ public APIpatchNamespacedLimitRangeRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedLimitRangeRequest */ public APIpatchNamespacedLimitRangeRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedLimitRangeRequest */ public APIpatchNamespacedLimitRangeRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Set force * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedLimitRangeRequest */ public APIpatchNamespacedLimitRangeRequest force(Boolean force) { this.force = force; return this; } /** * Build call for patchNamespacedLimitRange * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return patchNamespacedLimitRangeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** * Execute patchNamespacedLimitRange request * @return V1LimitRange * @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 -
201 Created -
401 Unauthorized -
*/ public V1LimitRange execute() throws ApiException { ApiResponse localVarResp = patchNamespacedLimitRangeWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** * Execute patchNamespacedLimitRange request with HTTP info returned * @return ApiResponse<V1LimitRange> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return patchNamespacedLimitRangeWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** * Execute patchNamespacedLimitRange request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return patchNamespacedLimitRangeAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * * partially update the specified LimitRange * @param name name of the LimitRange (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIpatchNamespacedLimitRangeRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIpatchNamespacedLimitRangeRequest patchNamespacedLimitRange(String name, String namespace, V1Patch body) { return new APIpatchNamespacedLimitRangeRequest(name, namespace, body); } private okhttp3.Call patchNamespacedPersistentVolumeClaimCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } if (force != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedPersistentVolumeClaimValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, 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 patchNamespacedPersistentVolumeClaim(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedPersistentVolumeClaim(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedPersistentVolumeClaim(Async)"); } return patchNamespacedPersistentVolumeClaimCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } private ApiResponse patchNamespacedPersistentVolumeClaimWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedPersistentVolumeClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call patchNamespacedPersistentVolumeClaimAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedPersistentVolumeClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpatchNamespacedPersistentVolumeClaimRequest { private final String name; private final String namespace; private final V1Patch body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private Boolean force; private APIpatchNamespacedPersistentVolumeClaimRequest(String name, String namespace, V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedPersistentVolumeClaimRequest */ public APIpatchNamespacedPersistentVolumeClaimRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedPersistentVolumeClaimRequest */ public APIpatchNamespacedPersistentVolumeClaimRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedPersistentVolumeClaimRequest */ public APIpatchNamespacedPersistentVolumeClaimRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedPersistentVolumeClaimRequest */ public APIpatchNamespacedPersistentVolumeClaimRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Set force * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedPersistentVolumeClaimRequest */ public APIpatchNamespacedPersistentVolumeClaimRequest force(Boolean force) { this.force = force; return this; } /** * Build call for patchNamespacedPersistentVolumeClaim * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return patchNamespacedPersistentVolumeClaimCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** * Execute patchNamespacedPersistentVolumeClaim request * @return V1PersistentVolumeClaim * @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 -
201 Created -
401 Unauthorized -
*/ public V1PersistentVolumeClaim execute() throws ApiException { ApiResponse localVarResp = patchNamespacedPersistentVolumeClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** * Execute patchNamespacedPersistentVolumeClaim request with HTTP info returned * @return ApiResponse<V1PersistentVolumeClaim> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return patchNamespacedPersistentVolumeClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** * Execute patchNamespacedPersistentVolumeClaim request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return patchNamespacedPersistentVolumeClaimAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * * partially update the specified PersistentVolumeClaim * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIpatchNamespacedPersistentVolumeClaimRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIpatchNamespacedPersistentVolumeClaimRequest patchNamespacedPersistentVolumeClaim(String name, String namespace, V1Patch body) { return new APIpatchNamespacedPersistentVolumeClaimRequest(name, namespace, body); } private okhttp3.Call patchNamespacedPersistentVolumeClaimStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } if (force != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedPersistentVolumeClaimStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, 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 patchNamespacedPersistentVolumeClaimStatus(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedPersistentVolumeClaimStatus(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedPersistentVolumeClaimStatus(Async)"); } return patchNamespacedPersistentVolumeClaimStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } private ApiResponse patchNamespacedPersistentVolumeClaimStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedPersistentVolumeClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call patchNamespacedPersistentVolumeClaimStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedPersistentVolumeClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpatchNamespacedPersistentVolumeClaimStatusRequest { private final String name; private final String namespace; private final V1Patch body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private Boolean force; private APIpatchNamespacedPersistentVolumeClaimStatusRequest(String name, String namespace, V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedPersistentVolumeClaimStatusRequest */ public APIpatchNamespacedPersistentVolumeClaimStatusRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedPersistentVolumeClaimStatusRequest */ public APIpatchNamespacedPersistentVolumeClaimStatusRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedPersistentVolumeClaimStatusRequest */ public APIpatchNamespacedPersistentVolumeClaimStatusRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedPersistentVolumeClaimStatusRequest */ public APIpatchNamespacedPersistentVolumeClaimStatusRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Set force * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedPersistentVolumeClaimStatusRequest */ public APIpatchNamespacedPersistentVolumeClaimStatusRequest force(Boolean force) { this.force = force; return this; } /** * Build call for patchNamespacedPersistentVolumeClaimStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return patchNamespacedPersistentVolumeClaimStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** * Execute patchNamespacedPersistentVolumeClaimStatus request * @return V1PersistentVolumeClaim * @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 -
201 Created -
401 Unauthorized -
*/ public V1PersistentVolumeClaim execute() throws ApiException { ApiResponse localVarResp = patchNamespacedPersistentVolumeClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** * Execute patchNamespacedPersistentVolumeClaimStatus request with HTTP info returned * @return ApiResponse<V1PersistentVolumeClaim> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return patchNamespacedPersistentVolumeClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** * Execute patchNamespacedPersistentVolumeClaimStatus request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return patchNamespacedPersistentVolumeClaimStatusAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * * partially update status of the specified PersistentVolumeClaim * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIpatchNamespacedPersistentVolumeClaimStatusRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIpatchNamespacedPersistentVolumeClaimStatusRequest patchNamespacedPersistentVolumeClaimStatus(String name, String namespace, V1Patch body) { return new APIpatchNamespacedPersistentVolumeClaimStatusRequest(name, namespace, body); } private okhttp3.Call patchNamespacedPodCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } if (force != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedPodValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, 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 patchNamespacedPod(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedPod(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedPod(Async)"); } return patchNamespacedPodCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } private ApiResponse patchNamespacedPodWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedPodValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call patchNamespacedPodAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedPodValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpatchNamespacedPodRequest { private final String name; private final String namespace; private final V1Patch body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private Boolean force; private APIpatchNamespacedPodRequest(String name, String namespace, V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedPodRequest */ public APIpatchNamespacedPodRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedPodRequest */ public APIpatchNamespacedPodRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedPodRequest */ public APIpatchNamespacedPodRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedPodRequest */ public APIpatchNamespacedPodRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Set force * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedPodRequest */ public APIpatchNamespacedPodRequest force(Boolean force) { this.force = force; return this; } /** * Build call for patchNamespacedPod * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return patchNamespacedPodCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** * Execute patchNamespacedPod request * @return V1Pod * @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 -
201 Created -
401 Unauthorized -
*/ public V1Pod execute() throws ApiException { ApiResponse localVarResp = patchNamespacedPodWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** * Execute patchNamespacedPod request with HTTP info returned * @return ApiResponse<V1Pod> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return patchNamespacedPodWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** * Execute patchNamespacedPod request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return patchNamespacedPodAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * * partially update the specified Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIpatchNamespacedPodRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIpatchNamespacedPodRequest patchNamespacedPod(String name, String namespace, V1Patch body) { return new APIpatchNamespacedPodRequest(name, namespace, body); } private okhttp3.Call patchNamespacedPodEphemeralcontainersCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/ephemeralcontainers" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } if (force != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedPodEphemeralcontainersValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, 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 patchNamespacedPodEphemeralcontainers(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedPodEphemeralcontainers(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedPodEphemeralcontainers(Async)"); } return patchNamespacedPodEphemeralcontainersCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } private ApiResponse patchNamespacedPodEphemeralcontainersWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedPodEphemeralcontainersValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call patchNamespacedPodEphemeralcontainersAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedPodEphemeralcontainersValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpatchNamespacedPodEphemeralcontainersRequest { private final String name; private final String namespace; private final V1Patch body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private Boolean force; private APIpatchNamespacedPodEphemeralcontainersRequest(String name, String namespace, V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedPodEphemeralcontainersRequest */ public APIpatchNamespacedPodEphemeralcontainersRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedPodEphemeralcontainersRequest */ public APIpatchNamespacedPodEphemeralcontainersRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedPodEphemeralcontainersRequest */ public APIpatchNamespacedPodEphemeralcontainersRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedPodEphemeralcontainersRequest */ public APIpatchNamespacedPodEphemeralcontainersRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Set force * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedPodEphemeralcontainersRequest */ public APIpatchNamespacedPodEphemeralcontainersRequest force(Boolean force) { this.force = force; return this; } /** * Build call for patchNamespacedPodEphemeralcontainers * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return patchNamespacedPodEphemeralcontainersCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** * Execute patchNamespacedPodEphemeralcontainers request * @return V1Pod * @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 -
201 Created -
401 Unauthorized -
*/ public V1Pod execute() throws ApiException { ApiResponse localVarResp = patchNamespacedPodEphemeralcontainersWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** * Execute patchNamespacedPodEphemeralcontainers request with HTTP info returned * @return ApiResponse<V1Pod> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return patchNamespacedPodEphemeralcontainersWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** * Execute patchNamespacedPodEphemeralcontainers request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return patchNamespacedPodEphemeralcontainersAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * * partially update ephemeralcontainers of the specified Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIpatchNamespacedPodEphemeralcontainersRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIpatchNamespacedPodEphemeralcontainersRequest patchNamespacedPodEphemeralcontainers(String name, String namespace, V1Patch body) { return new APIpatchNamespacedPodEphemeralcontainersRequest(name, namespace, body); } private okhttp3.Call patchNamespacedPodStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/status" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } if (force != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedPodStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, 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 patchNamespacedPodStatus(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedPodStatus(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedPodStatus(Async)"); } return patchNamespacedPodStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } private ApiResponse patchNamespacedPodStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedPodStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call patchNamespacedPodStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedPodStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpatchNamespacedPodStatusRequest { private final String name; private final String namespace; private final V1Patch body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private Boolean force; private APIpatchNamespacedPodStatusRequest(String name, String namespace, V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedPodStatusRequest */ public APIpatchNamespacedPodStatusRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedPodStatusRequest */ public APIpatchNamespacedPodStatusRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedPodStatusRequest */ public APIpatchNamespacedPodStatusRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedPodStatusRequest */ public APIpatchNamespacedPodStatusRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Set force * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedPodStatusRequest */ public APIpatchNamespacedPodStatusRequest force(Boolean force) { this.force = force; return this; } /** * Build call for patchNamespacedPodStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return patchNamespacedPodStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** * Execute patchNamespacedPodStatus request * @return V1Pod * @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 -
201 Created -
401 Unauthorized -
*/ public V1Pod execute() throws ApiException { ApiResponse localVarResp = patchNamespacedPodStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** * Execute patchNamespacedPodStatus request with HTTP info returned * @return ApiResponse<V1Pod> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return patchNamespacedPodStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** * Execute patchNamespacedPodStatus request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return patchNamespacedPodStatusAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * * partially update status of the specified Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIpatchNamespacedPodStatusRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIpatchNamespacedPodStatusRequest patchNamespacedPodStatus(String name, String namespace, V1Patch body) { return new APIpatchNamespacedPodStatusRequest(name, namespace, body); } private okhttp3.Call patchNamespacedPodTemplateCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/podtemplates/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } if (force != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedPodTemplateValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, 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 patchNamespacedPodTemplate(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedPodTemplate(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedPodTemplate(Async)"); } return patchNamespacedPodTemplateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } private ApiResponse patchNamespacedPodTemplateWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedPodTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call patchNamespacedPodTemplateAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedPodTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpatchNamespacedPodTemplateRequest { private final String name; private final String namespace; private final V1Patch body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private Boolean force; private APIpatchNamespacedPodTemplateRequest(String name, String namespace, V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedPodTemplateRequest */ public APIpatchNamespacedPodTemplateRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedPodTemplateRequest */ public APIpatchNamespacedPodTemplateRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedPodTemplateRequest */ public APIpatchNamespacedPodTemplateRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedPodTemplateRequest */ public APIpatchNamespacedPodTemplateRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Set force * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedPodTemplateRequest */ public APIpatchNamespacedPodTemplateRequest force(Boolean force) { this.force = force; return this; } /** * Build call for patchNamespacedPodTemplate * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return patchNamespacedPodTemplateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** * Execute patchNamespacedPodTemplate request * @return V1PodTemplate * @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 -
201 Created -
401 Unauthorized -
*/ public V1PodTemplate execute() throws ApiException { ApiResponse localVarResp = patchNamespacedPodTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** * Execute patchNamespacedPodTemplate request with HTTP info returned * @return ApiResponse<V1PodTemplate> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return patchNamespacedPodTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** * Execute patchNamespacedPodTemplate request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return patchNamespacedPodTemplateAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * * partially update the specified PodTemplate * @param name name of the PodTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIpatchNamespacedPodTemplateRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIpatchNamespacedPodTemplateRequest patchNamespacedPodTemplate(String name, String namespace, V1Patch body) { return new APIpatchNamespacedPodTemplateRequest(name, namespace, body); } private okhttp3.Call patchNamespacedReplicationControllerCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } if (force != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedReplicationControllerValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, 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 patchNamespacedReplicationController(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedReplicationController(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedReplicationController(Async)"); } return patchNamespacedReplicationControllerCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } private ApiResponse patchNamespacedReplicationControllerWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedReplicationControllerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call patchNamespacedReplicationControllerAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedReplicationControllerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpatchNamespacedReplicationControllerRequest { private final String name; private final String namespace; private final V1Patch body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private Boolean force; private APIpatchNamespacedReplicationControllerRequest(String name, String namespace, V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedReplicationControllerRequest */ public APIpatchNamespacedReplicationControllerRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedReplicationControllerRequest */ public APIpatchNamespacedReplicationControllerRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedReplicationControllerRequest */ public APIpatchNamespacedReplicationControllerRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedReplicationControllerRequest */ public APIpatchNamespacedReplicationControllerRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Set force * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedReplicationControllerRequest */ public APIpatchNamespacedReplicationControllerRequest force(Boolean force) { this.force = force; return this; } /** * Build call for patchNamespacedReplicationController * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return patchNamespacedReplicationControllerCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** * Execute patchNamespacedReplicationController request * @return V1ReplicationController * @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 -
201 Created -
401 Unauthorized -
*/ public V1ReplicationController execute() throws ApiException { ApiResponse localVarResp = patchNamespacedReplicationControllerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** * Execute patchNamespacedReplicationController request with HTTP info returned * @return ApiResponse<V1ReplicationController> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return patchNamespacedReplicationControllerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** * Execute patchNamespacedReplicationController request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return patchNamespacedReplicationControllerAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * * partially update the specified ReplicationController * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIpatchNamespacedReplicationControllerRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIpatchNamespacedReplicationControllerRequest patchNamespacedReplicationController(String name, String namespace, V1Patch body) { return new APIpatchNamespacedReplicationControllerRequest(name, namespace, body); } private okhttp3.Call patchNamespacedReplicationControllerScaleCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } if (force != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedReplicationControllerScaleValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, 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 patchNamespacedReplicationControllerScale(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedReplicationControllerScale(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedReplicationControllerScale(Async)"); } return patchNamespacedReplicationControllerScaleCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } private ApiResponse patchNamespacedReplicationControllerScaleWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedReplicationControllerScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call patchNamespacedReplicationControllerScaleAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedReplicationControllerScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpatchNamespacedReplicationControllerScaleRequest { private final String name; private final String namespace; private final V1Patch body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private Boolean force; private APIpatchNamespacedReplicationControllerScaleRequest(String name, String namespace, V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedReplicationControllerScaleRequest */ public APIpatchNamespacedReplicationControllerScaleRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedReplicationControllerScaleRequest */ public APIpatchNamespacedReplicationControllerScaleRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedReplicationControllerScaleRequest */ public APIpatchNamespacedReplicationControllerScaleRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedReplicationControllerScaleRequest */ public APIpatchNamespacedReplicationControllerScaleRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Set force * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedReplicationControllerScaleRequest */ public APIpatchNamespacedReplicationControllerScaleRequest force(Boolean force) { this.force = force; return this; } /** * Build call for patchNamespacedReplicationControllerScale * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return patchNamespacedReplicationControllerScaleCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** * Execute patchNamespacedReplicationControllerScale request * @return V1Scale * @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 -
201 Created -
401 Unauthorized -
*/ public V1Scale execute() throws ApiException { ApiResponse localVarResp = patchNamespacedReplicationControllerScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** * Execute patchNamespacedReplicationControllerScale request with HTTP info returned * @return ApiResponse<V1Scale> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return patchNamespacedReplicationControllerScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** * Execute patchNamespacedReplicationControllerScale request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return patchNamespacedReplicationControllerScaleAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * * partially update scale of the specified ReplicationController * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIpatchNamespacedReplicationControllerScaleRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIpatchNamespacedReplicationControllerScaleRequest patchNamespacedReplicationControllerScale(String name, String namespace, V1Patch body) { return new APIpatchNamespacedReplicationControllerScaleRequest(name, namespace, body); } private okhttp3.Call patchNamespacedReplicationControllerStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } if (force != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedReplicationControllerStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, 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 patchNamespacedReplicationControllerStatus(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedReplicationControllerStatus(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedReplicationControllerStatus(Async)"); } return patchNamespacedReplicationControllerStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } private ApiResponse patchNamespacedReplicationControllerStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedReplicationControllerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call patchNamespacedReplicationControllerStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedReplicationControllerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpatchNamespacedReplicationControllerStatusRequest { private final String name; private final String namespace; private final V1Patch body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private Boolean force; private APIpatchNamespacedReplicationControllerStatusRequest(String name, String namespace, V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedReplicationControllerStatusRequest */ public APIpatchNamespacedReplicationControllerStatusRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedReplicationControllerStatusRequest */ public APIpatchNamespacedReplicationControllerStatusRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedReplicationControllerStatusRequest */ public APIpatchNamespacedReplicationControllerStatusRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedReplicationControllerStatusRequest */ public APIpatchNamespacedReplicationControllerStatusRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Set force * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedReplicationControllerStatusRequest */ public APIpatchNamespacedReplicationControllerStatusRequest force(Boolean force) { this.force = force; return this; } /** * Build call for patchNamespacedReplicationControllerStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return patchNamespacedReplicationControllerStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** * Execute patchNamespacedReplicationControllerStatus request * @return V1ReplicationController * @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 -
201 Created -
401 Unauthorized -
*/ public V1ReplicationController execute() throws ApiException { ApiResponse localVarResp = patchNamespacedReplicationControllerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** * Execute patchNamespacedReplicationControllerStatus request with HTTP info returned * @return ApiResponse<V1ReplicationController> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return patchNamespacedReplicationControllerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** * Execute patchNamespacedReplicationControllerStatus request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return patchNamespacedReplicationControllerStatusAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * * partially update status of the specified ReplicationController * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIpatchNamespacedReplicationControllerStatusRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIpatchNamespacedReplicationControllerStatusRequest patchNamespacedReplicationControllerStatus(String name, String namespace, V1Patch body) { return new APIpatchNamespacedReplicationControllerStatusRequest(name, namespace, body); } private okhttp3.Call patchNamespacedResourceQuotaCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/resourcequotas/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } if (force != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedResourceQuotaValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, 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 patchNamespacedResourceQuota(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedResourceQuota(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedResourceQuota(Async)"); } return patchNamespacedResourceQuotaCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } private ApiResponse patchNamespacedResourceQuotaWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedResourceQuotaValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call patchNamespacedResourceQuotaAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedResourceQuotaValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpatchNamespacedResourceQuotaRequest { private final String name; private final String namespace; private final V1Patch body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private Boolean force; private APIpatchNamespacedResourceQuotaRequest(String name, String namespace, V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedResourceQuotaRequest */ public APIpatchNamespacedResourceQuotaRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedResourceQuotaRequest */ public APIpatchNamespacedResourceQuotaRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedResourceQuotaRequest */ public APIpatchNamespacedResourceQuotaRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedResourceQuotaRequest */ public APIpatchNamespacedResourceQuotaRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Set force * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedResourceQuotaRequest */ public APIpatchNamespacedResourceQuotaRequest force(Boolean force) { this.force = force; return this; } /** * Build call for patchNamespacedResourceQuota * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return patchNamespacedResourceQuotaCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** * Execute patchNamespacedResourceQuota request * @return V1ResourceQuota * @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 -
201 Created -
401 Unauthorized -
*/ public V1ResourceQuota execute() throws ApiException { ApiResponse localVarResp = patchNamespacedResourceQuotaWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** * Execute patchNamespacedResourceQuota request with HTTP info returned * @return ApiResponse<V1ResourceQuota> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return patchNamespacedResourceQuotaWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** * Execute patchNamespacedResourceQuota request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return patchNamespacedResourceQuotaAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * * partially update the specified ResourceQuota * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIpatchNamespacedResourceQuotaRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIpatchNamespacedResourceQuotaRequest patchNamespacedResourceQuota(String name, String namespace, V1Patch body) { return new APIpatchNamespacedResourceQuotaRequest(name, namespace, body); } private okhttp3.Call patchNamespacedResourceQuotaStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/resourcequotas/{name}/status" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } if (force != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedResourceQuotaStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, 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 patchNamespacedResourceQuotaStatus(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedResourceQuotaStatus(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedResourceQuotaStatus(Async)"); } return patchNamespacedResourceQuotaStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } private ApiResponse patchNamespacedResourceQuotaStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedResourceQuotaStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call patchNamespacedResourceQuotaStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedResourceQuotaStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpatchNamespacedResourceQuotaStatusRequest { private final String name; private final String namespace; private final V1Patch body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private Boolean force; private APIpatchNamespacedResourceQuotaStatusRequest(String name, String namespace, V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedResourceQuotaStatusRequest */ public APIpatchNamespacedResourceQuotaStatusRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedResourceQuotaStatusRequest */ public APIpatchNamespacedResourceQuotaStatusRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedResourceQuotaStatusRequest */ public APIpatchNamespacedResourceQuotaStatusRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedResourceQuotaStatusRequest */ public APIpatchNamespacedResourceQuotaStatusRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Set force * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedResourceQuotaStatusRequest */ public APIpatchNamespacedResourceQuotaStatusRequest force(Boolean force) { this.force = force; return this; } /** * Build call for patchNamespacedResourceQuotaStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return patchNamespacedResourceQuotaStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** * Execute patchNamespacedResourceQuotaStatus request * @return V1ResourceQuota * @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 -
201 Created -
401 Unauthorized -
*/ public V1ResourceQuota execute() throws ApiException { ApiResponse localVarResp = patchNamespacedResourceQuotaStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** * Execute patchNamespacedResourceQuotaStatus request with HTTP info returned * @return ApiResponse<V1ResourceQuota> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return patchNamespacedResourceQuotaStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** * Execute patchNamespacedResourceQuotaStatus request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return patchNamespacedResourceQuotaStatusAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * * partially update status of the specified ResourceQuota * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIpatchNamespacedResourceQuotaStatusRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIpatchNamespacedResourceQuotaStatusRequest patchNamespacedResourceQuotaStatus(String name, String namespace, V1Patch body) { return new APIpatchNamespacedResourceQuotaStatusRequest(name, namespace, body); } private okhttp3.Call patchNamespacedSecretCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/secrets/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } if (force != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedSecretValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, 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 patchNamespacedSecret(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedSecret(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedSecret(Async)"); } return patchNamespacedSecretCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } private ApiResponse patchNamespacedSecretWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedSecretValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call patchNamespacedSecretAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedSecretValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpatchNamespacedSecretRequest { private final String name; private final String namespace; private final V1Patch body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private Boolean force; private APIpatchNamespacedSecretRequest(String name, String namespace, V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedSecretRequest */ public APIpatchNamespacedSecretRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedSecretRequest */ public APIpatchNamespacedSecretRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedSecretRequest */ public APIpatchNamespacedSecretRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedSecretRequest */ public APIpatchNamespacedSecretRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Set force * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedSecretRequest */ public APIpatchNamespacedSecretRequest force(Boolean force) { this.force = force; return this; } /** * Build call for patchNamespacedSecret * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return patchNamespacedSecretCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** * Execute patchNamespacedSecret request * @return V1Secret * @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 -
201 Created -
401 Unauthorized -
*/ public V1Secret execute() throws ApiException { ApiResponse localVarResp = patchNamespacedSecretWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** * Execute patchNamespacedSecret request with HTTP info returned * @return ApiResponse<V1Secret> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return patchNamespacedSecretWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** * Execute patchNamespacedSecret request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return patchNamespacedSecretAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * * partially update the specified Secret * @param name name of the Secret (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIpatchNamespacedSecretRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIpatchNamespacedSecretRequest patchNamespacedSecret(String name, String namespace, V1Patch body) { return new APIpatchNamespacedSecretRequest(name, namespace, body); } private okhttp3.Call patchNamespacedServiceCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } if (force != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedServiceValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, 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 patchNamespacedService(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedService(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedService(Async)"); } return patchNamespacedServiceCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } private ApiResponse patchNamespacedServiceWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedServiceValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call patchNamespacedServiceAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedServiceValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpatchNamespacedServiceRequest { private final String name; private final String namespace; private final V1Patch body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private Boolean force; private APIpatchNamespacedServiceRequest(String name, String namespace, V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedServiceRequest */ public APIpatchNamespacedServiceRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedServiceRequest */ public APIpatchNamespacedServiceRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedServiceRequest */ public APIpatchNamespacedServiceRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedServiceRequest */ public APIpatchNamespacedServiceRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Set force * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedServiceRequest */ public APIpatchNamespacedServiceRequest force(Boolean force) { this.force = force; return this; } /** * Build call for patchNamespacedService * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return patchNamespacedServiceCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** * Execute patchNamespacedService request * @return V1Service * @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 -
201 Created -
401 Unauthorized -
*/ public V1Service execute() throws ApiException { ApiResponse localVarResp = patchNamespacedServiceWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** * Execute patchNamespacedService request with HTTP info returned * @return ApiResponse<V1Service> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return patchNamespacedServiceWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** * Execute patchNamespacedService request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return patchNamespacedServiceAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * * partially update the specified Service * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIpatchNamespacedServiceRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIpatchNamespacedServiceRequest patchNamespacedService(String name, String namespace, V1Patch body) { return new APIpatchNamespacedServiceRequest(name, namespace, body); } private okhttp3.Call patchNamespacedServiceAccountCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/serviceaccounts/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } if (force != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedServiceAccountValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, 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 patchNamespacedServiceAccount(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedServiceAccount(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedServiceAccount(Async)"); } return patchNamespacedServiceAccountCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } private ApiResponse patchNamespacedServiceAccountWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedServiceAccountValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call patchNamespacedServiceAccountAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedServiceAccountValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpatchNamespacedServiceAccountRequest { private final String name; private final String namespace; private final V1Patch body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private Boolean force; private APIpatchNamespacedServiceAccountRequest(String name, String namespace, V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedServiceAccountRequest */ public APIpatchNamespacedServiceAccountRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedServiceAccountRequest */ public APIpatchNamespacedServiceAccountRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedServiceAccountRequest */ public APIpatchNamespacedServiceAccountRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedServiceAccountRequest */ public APIpatchNamespacedServiceAccountRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Set force * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedServiceAccountRequest */ public APIpatchNamespacedServiceAccountRequest force(Boolean force) { this.force = force; return this; } /** * Build call for patchNamespacedServiceAccount * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return patchNamespacedServiceAccountCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** * Execute patchNamespacedServiceAccount request * @return V1ServiceAccount * @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 -
201 Created -
401 Unauthorized -
*/ public V1ServiceAccount execute() throws ApiException { ApiResponse localVarResp = patchNamespacedServiceAccountWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** * Execute patchNamespacedServiceAccount request with HTTP info returned * @return ApiResponse<V1ServiceAccount> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return patchNamespacedServiceAccountWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** * Execute patchNamespacedServiceAccount request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return patchNamespacedServiceAccountAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * * partially update the specified ServiceAccount * @param name name of the ServiceAccount (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIpatchNamespacedServiceAccountRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIpatchNamespacedServiceAccountRequest patchNamespacedServiceAccount(String name, String namespace, V1Patch body) { return new APIpatchNamespacedServiceAccountRequest(name, namespace, body); } private okhttp3.Call patchNamespacedServiceStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/status" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } if (force != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedServiceStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, 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 patchNamespacedServiceStatus(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedServiceStatus(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedServiceStatus(Async)"); } return patchNamespacedServiceStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } private ApiResponse patchNamespacedServiceStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedServiceStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call patchNamespacedServiceStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedServiceStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpatchNamespacedServiceStatusRequest { private final String name; private final String namespace; private final V1Patch body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private Boolean force; private APIpatchNamespacedServiceStatusRequest(String name, String namespace, V1Patch body) { this.name = name; this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNamespacedServiceStatusRequest */ public APIpatchNamespacedServiceStatusRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNamespacedServiceStatusRequest */ public APIpatchNamespacedServiceStatusRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNamespacedServiceStatusRequest */ public APIpatchNamespacedServiceStatusRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNamespacedServiceStatusRequest */ public APIpatchNamespacedServiceStatusRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Set force * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNamespacedServiceStatusRequest */ public APIpatchNamespacedServiceStatusRequest force(Boolean force) { this.force = force; return this; } /** * Build call for patchNamespacedServiceStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return patchNamespacedServiceStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** * Execute patchNamespacedServiceStatus request * @return V1Service * @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 -
201 Created -
401 Unauthorized -
*/ public V1Service execute() throws ApiException { ApiResponse localVarResp = patchNamespacedServiceStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** * Execute patchNamespacedServiceStatus request with HTTP info returned * @return ApiResponse<V1Service> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return patchNamespacedServiceStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** * Execute patchNamespacedServiceStatus request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return patchNamespacedServiceStatusAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * * partially update status of the specified Service * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIpatchNamespacedServiceStatusRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIpatchNamespacedServiceStatusRequest patchNamespacedServiceStatus(String name, String namespace, V1Patch body) { return new APIpatchNamespacedServiceStatusRequest(name, namespace, body); } private okhttp3.Call patchNodeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/nodes/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } if (force != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNodeValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, 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 patchNode(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling patchNode(Async)"); } return patchNodeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } private ApiResponse patchNodeWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNodeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call patchNodeAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNodeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpatchNodeRequest { private final String name; private final V1Patch body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private Boolean force; private APIpatchNodeRequest(String name, V1Patch body) { this.name = name; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNodeRequest */ public APIpatchNodeRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNodeRequest */ public APIpatchNodeRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNodeRequest */ public APIpatchNodeRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNodeRequest */ public APIpatchNodeRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Set force * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNodeRequest */ public APIpatchNodeRequest force(Boolean force) { this.force = force; return this; } /** * Build call for patchNode * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return patchNodeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** * Execute patchNode request * @return V1Node * @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 -
201 Created -
401 Unauthorized -
*/ public V1Node execute() throws ApiException { ApiResponse localVarResp = patchNodeWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** * Execute patchNode request with HTTP info returned * @return ApiResponse<V1Node> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return patchNodeWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** * Execute patchNode request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return patchNodeAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * * partially update the specified Node * @param name name of the Node (required) * @param body (required) * @return APIpatchNodeRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIpatchNodeRequest patchNode(String name, V1Patch body) { return new APIpatchNodeRequest(name, body); } private okhttp3.Call patchNodeStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/nodes/{name}/status" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } if (force != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNodeStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, 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 patchNodeStatus(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling patchNodeStatus(Async)"); } return patchNodeStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } private ApiResponse patchNodeStatusWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNodeStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call patchNodeStatusAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNodeStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpatchNodeStatusRequest { private final String name; private final V1Patch body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private Boolean force; private APIpatchNodeStatusRequest(String name, V1Patch body) { this.name = name; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchNodeStatusRequest */ public APIpatchNodeStatusRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchNodeStatusRequest */ public APIpatchNodeStatusRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchNodeStatusRequest */ public APIpatchNodeStatusRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchNodeStatusRequest */ public APIpatchNodeStatusRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Set force * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchNodeStatusRequest */ public APIpatchNodeStatusRequest force(Boolean force) { this.force = force; return this; } /** * Build call for patchNodeStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return patchNodeStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** * Execute patchNodeStatus request * @return V1Node * @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 -
201 Created -
401 Unauthorized -
*/ public V1Node execute() throws ApiException { ApiResponse localVarResp = patchNodeStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** * Execute patchNodeStatus request with HTTP info returned * @return ApiResponse<V1Node> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return patchNodeStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** * Execute patchNodeStatus request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return patchNodeStatusAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * * partially update status of the specified Node * @param name name of the Node (required) * @param body (required) * @return APIpatchNodeStatusRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIpatchNodeStatusRequest patchNodeStatus(String name, V1Patch body) { return new APIpatchNodeStatusRequest(name, body); } private okhttp3.Call patchPersistentVolumeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/persistentvolumes/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } if (force != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchPersistentVolumeValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, 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 patchPersistentVolume(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling patchPersistentVolume(Async)"); } return patchPersistentVolumeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } private ApiResponse patchPersistentVolumeWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { okhttp3.Call localVarCall = patchPersistentVolumeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call patchPersistentVolumeAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchPersistentVolumeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpatchPersistentVolumeRequest { private final String name; private final V1Patch body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private Boolean force; private APIpatchPersistentVolumeRequest(String name, V1Patch body) { this.name = name; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchPersistentVolumeRequest */ public APIpatchPersistentVolumeRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchPersistentVolumeRequest */ public APIpatchPersistentVolumeRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchPersistentVolumeRequest */ public APIpatchPersistentVolumeRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchPersistentVolumeRequest */ public APIpatchPersistentVolumeRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Set force * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchPersistentVolumeRequest */ public APIpatchPersistentVolumeRequest force(Boolean force) { this.force = force; return this; } /** * Build call for patchPersistentVolume * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return patchPersistentVolumeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** * Execute patchPersistentVolume request * @return V1PersistentVolume * @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 -
201 Created -
401 Unauthorized -
*/ public V1PersistentVolume execute() throws ApiException { ApiResponse localVarResp = patchPersistentVolumeWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** * Execute patchPersistentVolume request with HTTP info returned * @return ApiResponse<V1PersistentVolume> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return patchPersistentVolumeWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** * Execute patchPersistentVolume request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return patchPersistentVolumeAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * * partially update the specified PersistentVolume * @param name name of the PersistentVolume (required) * @param body (required) * @return APIpatchPersistentVolumeRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIpatchPersistentVolumeRequest patchPersistentVolume(String name, V1Patch body) { return new APIpatchPersistentVolumeRequest(name, body); } private okhttp3.Call patchPersistentVolumeStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/persistentvolumes/{name}/status" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } if (force != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchPersistentVolumeStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, 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 patchPersistentVolumeStatus(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling patchPersistentVolumeStatus(Async)"); } return patchPersistentVolumeStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } private ApiResponse patchPersistentVolumeStatusWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { okhttp3.Call localVarCall = patchPersistentVolumeStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call patchPersistentVolumeStatusAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchPersistentVolumeStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpatchPersistentVolumeStatusRequest { private final String name; private final V1Patch body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private Boolean force; private APIpatchPersistentVolumeStatusRequest(String name, V1Patch body) { this.name = name; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchPersistentVolumeStatusRequest */ public APIpatchPersistentVolumeStatusRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchPersistentVolumeStatusRequest */ public APIpatchPersistentVolumeStatusRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchPersistentVolumeStatusRequest */ public APIpatchPersistentVolumeStatusRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchPersistentVolumeStatusRequest */ public APIpatchPersistentVolumeStatusRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Set force * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return APIpatchPersistentVolumeStatusRequest */ public APIpatchPersistentVolumeStatusRequest force(Boolean force) { this.force = force; return this; } /** * Build call for patchPersistentVolumeStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return patchPersistentVolumeStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** * Execute patchPersistentVolumeStatus request * @return V1PersistentVolume * @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 -
201 Created -
401 Unauthorized -
*/ public V1PersistentVolume execute() throws ApiException { ApiResponse localVarResp = patchPersistentVolumeStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** * Execute patchPersistentVolumeStatus request with HTTP info returned * @return ApiResponse<V1PersistentVolume> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return patchPersistentVolumeStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** * Execute patchPersistentVolumeStatus request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return patchPersistentVolumeStatusAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * * partially update status of the specified PersistentVolume * @param name name of the PersistentVolume (required) * @param body (required) * @return APIpatchPersistentVolumeStatusRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIpatchPersistentVolumeStatusRequest patchPersistentVolumeStatus(String name, V1Patch body) { return new APIpatchPersistentVolumeStatusRequest(name, body); } private okhttp3.Call readComponentStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/componentstatuses/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readComponentStatusValidateBeforeCall(String name, String pretty, 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 readComponentStatus(Async)"); } return readComponentStatusCall(name, pretty, _callback); } private ApiResponse readComponentStatusWithHttpInfo(String name, String pretty) throws ApiException { okhttp3.Call localVarCall = readComponentStatusValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call readComponentStatusAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readComponentStatusValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreadComponentStatusRequest { private final String name; private String pretty; private APIreadComponentStatusRequest(String name) { this.name = name; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadComponentStatusRequest */ public APIreadComponentStatusRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Build call for readComponentStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return readComponentStatusCall(name, pretty, _callback); } /** * Execute readComponentStatus request * @return V1ComponentStatus * @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 V1ComponentStatus execute() throws ApiException { ApiResponse localVarResp = readComponentStatusWithHttpInfo(name, pretty); return localVarResp.getData(); } /** * Execute readComponentStatus request with HTTP info returned * @return ApiResponse<V1ComponentStatus> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return readComponentStatusWithHttpInfo(name, pretty); } /** * Execute readComponentStatus request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return readComponentStatusAsync(name, pretty, _callback); } } /** * * read the specified ComponentStatus * @param name name of the ComponentStatus (required) * @return APIreadComponentStatusRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIreadComponentStatusRequest readComponentStatus(String name) { return new APIreadComponentStatusRequest(name); } private okhttp3.Call readNamespaceCall(String name, String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespaceValidateBeforeCall(String name, String pretty, 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 readNamespace(Async)"); } return readNamespaceCall(name, pretty, _callback); } private ApiResponse readNamespaceWithHttpInfo(String name, String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespaceValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call readNamespaceAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespaceValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreadNamespaceRequest { private final String name; private String pretty; private APIreadNamespaceRequest(String name) { this.name = name; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespaceRequest */ public APIreadNamespaceRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Build call for readNamespace * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return readNamespaceCall(name, pretty, _callback); } /** * Execute readNamespace request * @return V1Namespace * @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 V1Namespace execute() throws ApiException { ApiResponse localVarResp = readNamespaceWithHttpInfo(name, pretty); return localVarResp.getData(); } /** * Execute readNamespace request with HTTP info returned * @return ApiResponse<V1Namespace> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return readNamespaceWithHttpInfo(name, pretty); } /** * Execute readNamespace request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return readNamespaceAsync(name, pretty, _callback); } } /** * * read the specified Namespace * @param name name of the Namespace (required) * @return APIreadNamespaceRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIreadNamespaceRequest readNamespace(String name) { return new APIreadNamespaceRequest(name); } private okhttp3.Call readNamespaceStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{name}/status" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespaceStatusValidateBeforeCall(String name, String pretty, 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 readNamespaceStatus(Async)"); } return readNamespaceStatusCall(name, pretty, _callback); } private ApiResponse readNamespaceStatusWithHttpInfo(String name, String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespaceStatusValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call readNamespaceStatusAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespaceStatusValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreadNamespaceStatusRequest { private final String name; private String pretty; private APIreadNamespaceStatusRequest(String name) { this.name = name; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespaceStatusRequest */ public APIreadNamespaceStatusRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Build call for readNamespaceStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return readNamespaceStatusCall(name, pretty, _callback); } /** * Execute readNamespaceStatus request * @return V1Namespace * @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 V1Namespace execute() throws ApiException { ApiResponse localVarResp = readNamespaceStatusWithHttpInfo(name, pretty); return localVarResp.getData(); } /** * Execute readNamespaceStatus request with HTTP info returned * @return ApiResponse<V1Namespace> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return readNamespaceStatusWithHttpInfo(name, pretty); } /** * Execute readNamespaceStatus request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return readNamespaceStatusAsync(name, pretty, _callback); } } /** * * read status of the specified Namespace * @param name name of the Namespace (required) * @return APIreadNamespaceStatusRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIreadNamespaceStatusRequest readNamespaceStatus(String name) { return new APIreadNamespaceStatusRequest(name); } private okhttp3.Call readNamespacedConfigMapCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/configmaps/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedConfigMapValidateBeforeCall(String name, String namespace, String pretty, 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 readNamespacedConfigMap(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedConfigMap(Async)"); } return readNamespacedConfigMapCall(name, namespace, pretty, _callback); } private ApiResponse readNamespacedConfigMapWithHttpInfo(String name, String namespace, String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedConfigMapValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call readNamespacedConfigMapAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedConfigMapValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreadNamespacedConfigMapRequest { private final String name; private final String namespace; private String pretty; private APIreadNamespacedConfigMapRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedConfigMapRequest */ public APIreadNamespacedConfigMapRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Build call for readNamespacedConfigMap * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return readNamespacedConfigMapCall(name, namespace, pretty, _callback); } /** * Execute readNamespacedConfigMap request * @return V1ConfigMap * @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 V1ConfigMap execute() throws ApiException { ApiResponse localVarResp = readNamespacedConfigMapWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** * Execute readNamespacedConfigMap request with HTTP info returned * @return ApiResponse<V1ConfigMap> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return readNamespacedConfigMapWithHttpInfo(name, namespace, pretty); } /** * Execute readNamespacedConfigMap request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return readNamespacedConfigMapAsync(name, namespace, pretty, _callback); } } /** * * read the specified ConfigMap * @param name name of the ConfigMap (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedConfigMapRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIreadNamespacedConfigMapRequest readNamespacedConfigMap(String name, String namespace) { return new APIreadNamespacedConfigMapRequest(name, namespace); } private okhttp3.Call readNamespacedEndpointsCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/endpoints/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedEndpointsValidateBeforeCall(String name, String namespace, String pretty, 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 readNamespacedEndpoints(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedEndpoints(Async)"); } return readNamespacedEndpointsCall(name, namespace, pretty, _callback); } private ApiResponse readNamespacedEndpointsWithHttpInfo(String name, String namespace, String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedEndpointsValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call readNamespacedEndpointsAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedEndpointsValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreadNamespacedEndpointsRequest { private final String name; private final String namespace; private String pretty; private APIreadNamespacedEndpointsRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedEndpointsRequest */ public APIreadNamespacedEndpointsRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Build call for readNamespacedEndpoints * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return readNamespacedEndpointsCall(name, namespace, pretty, _callback); } /** * Execute readNamespacedEndpoints request * @return V1Endpoints * @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 V1Endpoints execute() throws ApiException { ApiResponse localVarResp = readNamespacedEndpointsWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** * Execute readNamespacedEndpoints request with HTTP info returned * @return ApiResponse<V1Endpoints> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return readNamespacedEndpointsWithHttpInfo(name, namespace, pretty); } /** * Execute readNamespacedEndpoints request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return readNamespacedEndpointsAsync(name, namespace, pretty, _callback); } } /** * * read the specified Endpoints * @param name name of the Endpoints (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedEndpointsRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIreadNamespacedEndpointsRequest readNamespacedEndpoints(String name, String namespace) { return new APIreadNamespacedEndpointsRequest(name, namespace); } private okhttp3.Call readNamespacedEventCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/events/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedEventValidateBeforeCall(String name, String namespace, String pretty, 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 readNamespacedEvent(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedEvent(Async)"); } return readNamespacedEventCall(name, namespace, pretty, _callback); } private ApiResponse readNamespacedEventWithHttpInfo(String name, String namespace, String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedEventValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call readNamespacedEventAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedEventValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreadNamespacedEventRequest { private final String name; private final String namespace; private String pretty; private APIreadNamespacedEventRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedEventRequest */ public APIreadNamespacedEventRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Build call for readNamespacedEvent * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return readNamespacedEventCall(name, namespace, pretty, _callback); } /** * Execute readNamespacedEvent request * @return CoreV1Event * @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 CoreV1Event execute() throws ApiException { ApiResponse localVarResp = readNamespacedEventWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** * Execute readNamespacedEvent request with HTTP info returned * @return ApiResponse<CoreV1Event> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return readNamespacedEventWithHttpInfo(name, namespace, pretty); } /** * Execute readNamespacedEvent request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return readNamespacedEventAsync(name, namespace, pretty, _callback); } } /** * * read the specified Event * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedEventRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIreadNamespacedEventRequest readNamespacedEvent(String name, String namespace) { return new APIreadNamespacedEventRequest(name, namespace); } private okhttp3.Call readNamespacedLimitRangeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/limitranges/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedLimitRangeValidateBeforeCall(String name, String namespace, String pretty, 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 readNamespacedLimitRange(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedLimitRange(Async)"); } return readNamespacedLimitRangeCall(name, namespace, pretty, _callback); } private ApiResponse readNamespacedLimitRangeWithHttpInfo(String name, String namespace, String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedLimitRangeValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call readNamespacedLimitRangeAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedLimitRangeValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreadNamespacedLimitRangeRequest { private final String name; private final String namespace; private String pretty; private APIreadNamespacedLimitRangeRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedLimitRangeRequest */ public APIreadNamespacedLimitRangeRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Build call for readNamespacedLimitRange * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return readNamespacedLimitRangeCall(name, namespace, pretty, _callback); } /** * Execute readNamespacedLimitRange request * @return V1LimitRange * @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 V1LimitRange execute() throws ApiException { ApiResponse localVarResp = readNamespacedLimitRangeWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** * Execute readNamespacedLimitRange request with HTTP info returned * @return ApiResponse<V1LimitRange> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return readNamespacedLimitRangeWithHttpInfo(name, namespace, pretty); } /** * Execute readNamespacedLimitRange request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return readNamespacedLimitRangeAsync(name, namespace, pretty, _callback); } } /** * * read the specified LimitRange * @param name name of the LimitRange (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedLimitRangeRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIreadNamespacedLimitRangeRequest readNamespacedLimitRange(String name, String namespace) { return new APIreadNamespacedLimitRangeRequest(name, namespace); } private okhttp3.Call readNamespacedPersistentVolumeClaimCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedPersistentVolumeClaimValidateBeforeCall(String name, String namespace, String pretty, 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 readNamespacedPersistentVolumeClaim(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedPersistentVolumeClaim(Async)"); } return readNamespacedPersistentVolumeClaimCall(name, namespace, pretty, _callback); } private ApiResponse readNamespacedPersistentVolumeClaimWithHttpInfo(String name, String namespace, String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedPersistentVolumeClaimValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call readNamespacedPersistentVolumeClaimAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedPersistentVolumeClaimValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreadNamespacedPersistentVolumeClaimRequest { private final String name; private final String namespace; private String pretty; private APIreadNamespacedPersistentVolumeClaimRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedPersistentVolumeClaimRequest */ public APIreadNamespacedPersistentVolumeClaimRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Build call for readNamespacedPersistentVolumeClaim * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return readNamespacedPersistentVolumeClaimCall(name, namespace, pretty, _callback); } /** * Execute readNamespacedPersistentVolumeClaim request * @return V1PersistentVolumeClaim * @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 V1PersistentVolumeClaim execute() throws ApiException { ApiResponse localVarResp = readNamespacedPersistentVolumeClaimWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** * Execute readNamespacedPersistentVolumeClaim request with HTTP info returned * @return ApiResponse<V1PersistentVolumeClaim> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return readNamespacedPersistentVolumeClaimWithHttpInfo(name, namespace, pretty); } /** * Execute readNamespacedPersistentVolumeClaim request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return readNamespacedPersistentVolumeClaimAsync(name, namespace, pretty, _callback); } } /** * * read the specified PersistentVolumeClaim * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedPersistentVolumeClaimRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIreadNamespacedPersistentVolumeClaimRequest readNamespacedPersistentVolumeClaim(String name, String namespace) { return new APIreadNamespacedPersistentVolumeClaimRequest(name, namespace); } private okhttp3.Call readNamespacedPersistentVolumeClaimStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedPersistentVolumeClaimStatusValidateBeforeCall(String name, String namespace, String pretty, 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 readNamespacedPersistentVolumeClaimStatus(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedPersistentVolumeClaimStatus(Async)"); } return readNamespacedPersistentVolumeClaimStatusCall(name, namespace, pretty, _callback); } private ApiResponse readNamespacedPersistentVolumeClaimStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedPersistentVolumeClaimStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call readNamespacedPersistentVolumeClaimStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedPersistentVolumeClaimStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreadNamespacedPersistentVolumeClaimStatusRequest { private final String name; private final String namespace; private String pretty; private APIreadNamespacedPersistentVolumeClaimStatusRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedPersistentVolumeClaimStatusRequest */ public APIreadNamespacedPersistentVolumeClaimStatusRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Build call for readNamespacedPersistentVolumeClaimStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return readNamespacedPersistentVolumeClaimStatusCall(name, namespace, pretty, _callback); } /** * Execute readNamespacedPersistentVolumeClaimStatus request * @return V1PersistentVolumeClaim * @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 V1PersistentVolumeClaim execute() throws ApiException { ApiResponse localVarResp = readNamespacedPersistentVolumeClaimStatusWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** * Execute readNamespacedPersistentVolumeClaimStatus request with HTTP info returned * @return ApiResponse<V1PersistentVolumeClaim> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return readNamespacedPersistentVolumeClaimStatusWithHttpInfo(name, namespace, pretty); } /** * Execute readNamespacedPersistentVolumeClaimStatus request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return readNamespacedPersistentVolumeClaimStatusAsync(name, namespace, pretty, _callback); } } /** * * read status of the specified PersistentVolumeClaim * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedPersistentVolumeClaimStatusRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIreadNamespacedPersistentVolumeClaimStatusRequest readNamespacedPersistentVolumeClaimStatus(String name, String namespace) { return new APIreadNamespacedPersistentVolumeClaimStatusRequest(name, namespace); } private okhttp3.Call readNamespacedPodCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedPodValidateBeforeCall(String name, String namespace, String pretty, 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 readNamespacedPod(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedPod(Async)"); } return readNamespacedPodCall(name, namespace, pretty, _callback); } private ApiResponse readNamespacedPodWithHttpInfo(String name, String namespace, String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedPodValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call readNamespacedPodAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedPodValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreadNamespacedPodRequest { private final String name; private final String namespace; private String pretty; private APIreadNamespacedPodRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedPodRequest */ public APIreadNamespacedPodRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Build call for readNamespacedPod * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return readNamespacedPodCall(name, namespace, pretty, _callback); } /** * Execute readNamespacedPod request * @return V1Pod * @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 V1Pod execute() throws ApiException { ApiResponse localVarResp = readNamespacedPodWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** * Execute readNamespacedPod request with HTTP info returned * @return ApiResponse<V1Pod> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return readNamespacedPodWithHttpInfo(name, namespace, pretty); } /** * Execute readNamespacedPod request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return readNamespacedPodAsync(name, namespace, pretty, _callback); } } /** * * read the specified Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedPodRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIreadNamespacedPodRequest readNamespacedPod(String name, String namespace) { return new APIreadNamespacedPodRequest(name, namespace); } private okhttp3.Call readNamespacedPodEphemeralcontainersCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/ephemeralcontainers" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedPodEphemeralcontainersValidateBeforeCall(String name, String namespace, String pretty, 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 readNamespacedPodEphemeralcontainers(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedPodEphemeralcontainers(Async)"); } return readNamespacedPodEphemeralcontainersCall(name, namespace, pretty, _callback); } private ApiResponse readNamespacedPodEphemeralcontainersWithHttpInfo(String name, String namespace, String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedPodEphemeralcontainersValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call readNamespacedPodEphemeralcontainersAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedPodEphemeralcontainersValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreadNamespacedPodEphemeralcontainersRequest { private final String name; private final String namespace; private String pretty; private APIreadNamespacedPodEphemeralcontainersRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedPodEphemeralcontainersRequest */ public APIreadNamespacedPodEphemeralcontainersRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Build call for readNamespacedPodEphemeralcontainers * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return readNamespacedPodEphemeralcontainersCall(name, namespace, pretty, _callback); } /** * Execute readNamespacedPodEphemeralcontainers request * @return V1Pod * @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 V1Pod execute() throws ApiException { ApiResponse localVarResp = readNamespacedPodEphemeralcontainersWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** * Execute readNamespacedPodEphemeralcontainers request with HTTP info returned * @return ApiResponse<V1Pod> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return readNamespacedPodEphemeralcontainersWithHttpInfo(name, namespace, pretty); } /** * Execute readNamespacedPodEphemeralcontainers request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return readNamespacedPodEphemeralcontainersAsync(name, namespace, pretty, _callback); } } /** * * read ephemeralcontainers of the specified Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedPodEphemeralcontainersRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIreadNamespacedPodEphemeralcontainersRequest readNamespacedPodEphemeralcontainers(String name, String namespace) { return new APIreadNamespacedPodEphemeralcontainersRequest(name, namespace); } private okhttp3.Call readNamespacedPodLogCall(String name, String namespace, String container, Boolean follow, Boolean insecureSkipTLSVerifyBackend, Integer limitBytes, String pretty, Boolean previous, Integer sinceSeconds, Integer tailLines, Boolean timestamps, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/log" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (container != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("container", container)); } if (follow != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("follow", follow)); } if (insecureSkipTLSVerifyBackend != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("insecureSkipTLSVerifyBackend", insecureSkipTLSVerifyBackend)); } if (limitBytes != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limitBytes", limitBytes)); } if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (previous != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("previous", previous)); } if (sinceSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sinceSeconds", sinceSeconds)); } if (tailLines != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("tailLines", tailLines)); } if (timestamps != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timestamps", timestamps)); } final String[] localVarAccepts = { "text/plain", "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedPodLogValidateBeforeCall(String name, String namespace, String container, Boolean follow, Boolean insecureSkipTLSVerifyBackend, Integer limitBytes, String pretty, Boolean previous, Integer sinceSeconds, Integer tailLines, Boolean timestamps, 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 readNamespacedPodLog(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedPodLog(Async)"); } return readNamespacedPodLogCall(name, namespace, container, follow, insecureSkipTLSVerifyBackend, limitBytes, pretty, previous, sinceSeconds, tailLines, timestamps, _callback); } private ApiResponse readNamespacedPodLogWithHttpInfo(String name, String namespace, String container, Boolean follow, Boolean insecureSkipTLSVerifyBackend, Integer limitBytes, String pretty, Boolean previous, Integer sinceSeconds, Integer tailLines, Boolean timestamps) throws ApiException { okhttp3.Call localVarCall = readNamespacedPodLogValidateBeforeCall(name, namespace, container, follow, insecureSkipTLSVerifyBackend, limitBytes, pretty, previous, sinceSeconds, tailLines, timestamps, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call readNamespacedPodLogAsync(String name, String namespace, String container, Boolean follow, Boolean insecureSkipTLSVerifyBackend, Integer limitBytes, String pretty, Boolean previous, Integer sinceSeconds, Integer tailLines, Boolean timestamps, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedPodLogValidateBeforeCall(name, namespace, container, follow, insecureSkipTLSVerifyBackend, limitBytes, pretty, previous, sinceSeconds, tailLines, timestamps, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreadNamespacedPodLogRequest { private final String name; private final String namespace; private String container; private Boolean follow; private Boolean insecureSkipTLSVerifyBackend; private Integer limitBytes; private String pretty; private Boolean previous; private Integer sinceSeconds; private Integer tailLines; private Boolean timestamps; private APIreadNamespacedPodLogRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set container * @param container The container for which to stream logs. Defaults to only container if there is one container in the pod. (optional) * @return APIreadNamespacedPodLogRequest */ public APIreadNamespacedPodLogRequest container(String container) { this.container = container; return this; } /** * Set follow * @param follow Follow the log stream of the pod. Defaults to false. (optional) * @return APIreadNamespacedPodLogRequest */ public APIreadNamespacedPodLogRequest follow(Boolean follow) { this.follow = follow; return this; } /** * Set insecureSkipTLSVerifyBackend * @param insecureSkipTLSVerifyBackend insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet). (optional) * @return APIreadNamespacedPodLogRequest */ public APIreadNamespacedPodLogRequest insecureSkipTLSVerifyBackend(Boolean insecureSkipTLSVerifyBackend) { this.insecureSkipTLSVerifyBackend = insecureSkipTLSVerifyBackend; return this; } /** * Set limitBytes * @param limitBytes If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. (optional) * @return APIreadNamespacedPodLogRequest */ public APIreadNamespacedPodLogRequest limitBytes(Integer limitBytes) { this.limitBytes = limitBytes; return this; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedPodLogRequest */ public APIreadNamespacedPodLogRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set previous * @param previous Return previous terminated container logs. Defaults to false. (optional) * @return APIreadNamespacedPodLogRequest */ public APIreadNamespacedPodLogRequest previous(Boolean previous) { this.previous = previous; return this; } /** * Set sinceSeconds * @param sinceSeconds A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. (optional) * @return APIreadNamespacedPodLogRequest */ public APIreadNamespacedPodLogRequest sinceSeconds(Integer sinceSeconds) { this.sinceSeconds = sinceSeconds; return this; } /** * Set tailLines * @param tailLines If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime (optional) * @return APIreadNamespacedPodLogRequest */ public APIreadNamespacedPodLogRequest tailLines(Integer tailLines) { this.tailLines = tailLines; return this; } /** * Set timestamps * @param timestamps If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. (optional) * @return APIreadNamespacedPodLogRequest */ public APIreadNamespacedPodLogRequest timestamps(Boolean timestamps) { this.timestamps = timestamps; return this; } /** * Build call for readNamespacedPodLog * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return readNamespacedPodLogCall(name, namespace, container, follow, insecureSkipTLSVerifyBackend, limitBytes, pretty, previous, sinceSeconds, tailLines, timestamps, _callback); } /** * Execute readNamespacedPodLog request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String execute() throws ApiException { ApiResponse localVarResp = readNamespacedPodLogWithHttpInfo(name, namespace, container, follow, insecureSkipTLSVerifyBackend, limitBytes, pretty, previous, sinceSeconds, tailLines, timestamps); return localVarResp.getData(); } /** * Execute readNamespacedPodLog request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return readNamespacedPodLogWithHttpInfo(name, namespace, container, follow, insecureSkipTLSVerifyBackend, limitBytes, pretty, previous, sinceSeconds, tailLines, timestamps); } /** * Execute readNamespacedPodLog request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return readNamespacedPodLogAsync(name, namespace, container, follow, insecureSkipTLSVerifyBackend, limitBytes, pretty, previous, sinceSeconds, tailLines, timestamps, _callback); } } /** * * read log of the specified Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedPodLogRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIreadNamespacedPodLogRequest readNamespacedPodLog(String name, String namespace) { return new APIreadNamespacedPodLogRequest(name, namespace); } private okhttp3.Call readNamespacedPodStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/status" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedPodStatusValidateBeforeCall(String name, String namespace, String pretty, 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 readNamespacedPodStatus(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedPodStatus(Async)"); } return readNamespacedPodStatusCall(name, namespace, pretty, _callback); } private ApiResponse readNamespacedPodStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedPodStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call readNamespacedPodStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedPodStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreadNamespacedPodStatusRequest { private final String name; private final String namespace; private String pretty; private APIreadNamespacedPodStatusRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedPodStatusRequest */ public APIreadNamespacedPodStatusRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Build call for readNamespacedPodStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return readNamespacedPodStatusCall(name, namespace, pretty, _callback); } /** * Execute readNamespacedPodStatus request * @return V1Pod * @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 V1Pod execute() throws ApiException { ApiResponse localVarResp = readNamespacedPodStatusWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** * Execute readNamespacedPodStatus request with HTTP info returned * @return ApiResponse<V1Pod> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return readNamespacedPodStatusWithHttpInfo(name, namespace, pretty); } /** * Execute readNamespacedPodStatus request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return readNamespacedPodStatusAsync(name, namespace, pretty, _callback); } } /** * * read status of the specified Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedPodStatusRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIreadNamespacedPodStatusRequest readNamespacedPodStatus(String name, String namespace) { return new APIreadNamespacedPodStatusRequest(name, namespace); } private okhttp3.Call readNamespacedPodTemplateCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/podtemplates/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedPodTemplateValidateBeforeCall(String name, String namespace, String pretty, 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 readNamespacedPodTemplate(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedPodTemplate(Async)"); } return readNamespacedPodTemplateCall(name, namespace, pretty, _callback); } private ApiResponse readNamespacedPodTemplateWithHttpInfo(String name, String namespace, String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedPodTemplateValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call readNamespacedPodTemplateAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedPodTemplateValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreadNamespacedPodTemplateRequest { private final String name; private final String namespace; private String pretty; private APIreadNamespacedPodTemplateRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedPodTemplateRequest */ public APIreadNamespacedPodTemplateRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Build call for readNamespacedPodTemplate * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return readNamespacedPodTemplateCall(name, namespace, pretty, _callback); } /** * Execute readNamespacedPodTemplate request * @return V1PodTemplate * @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 V1PodTemplate execute() throws ApiException { ApiResponse localVarResp = readNamespacedPodTemplateWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** * Execute readNamespacedPodTemplate request with HTTP info returned * @return ApiResponse<V1PodTemplate> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return readNamespacedPodTemplateWithHttpInfo(name, namespace, pretty); } /** * Execute readNamespacedPodTemplate request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return readNamespacedPodTemplateAsync(name, namespace, pretty, _callback); } } /** * * read the specified PodTemplate * @param name name of the PodTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedPodTemplateRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIreadNamespacedPodTemplateRequest readNamespacedPodTemplate(String name, String namespace) { return new APIreadNamespacedPodTemplateRequest(name, namespace); } private okhttp3.Call readNamespacedReplicationControllerCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedReplicationControllerValidateBeforeCall(String name, String namespace, String pretty, 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 readNamespacedReplicationController(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedReplicationController(Async)"); } return readNamespacedReplicationControllerCall(name, namespace, pretty, _callback); } private ApiResponse readNamespacedReplicationControllerWithHttpInfo(String name, String namespace, String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedReplicationControllerValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call readNamespacedReplicationControllerAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedReplicationControllerValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreadNamespacedReplicationControllerRequest { private final String name; private final String namespace; private String pretty; private APIreadNamespacedReplicationControllerRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedReplicationControllerRequest */ public APIreadNamespacedReplicationControllerRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Build call for readNamespacedReplicationController * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return readNamespacedReplicationControllerCall(name, namespace, pretty, _callback); } /** * Execute readNamespacedReplicationController request * @return V1ReplicationController * @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 V1ReplicationController execute() throws ApiException { ApiResponse localVarResp = readNamespacedReplicationControllerWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** * Execute readNamespacedReplicationController request with HTTP info returned * @return ApiResponse<V1ReplicationController> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return readNamespacedReplicationControllerWithHttpInfo(name, namespace, pretty); } /** * Execute readNamespacedReplicationController request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return readNamespacedReplicationControllerAsync(name, namespace, pretty, _callback); } } /** * * read the specified ReplicationController * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedReplicationControllerRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIreadNamespacedReplicationControllerRequest readNamespacedReplicationController(String name, String namespace) { return new APIreadNamespacedReplicationControllerRequest(name, namespace); } private okhttp3.Call readNamespacedReplicationControllerScaleCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedReplicationControllerScaleValidateBeforeCall(String name, String namespace, String pretty, 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 readNamespacedReplicationControllerScale(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedReplicationControllerScale(Async)"); } return readNamespacedReplicationControllerScaleCall(name, namespace, pretty, _callback); } private ApiResponse readNamespacedReplicationControllerScaleWithHttpInfo(String name, String namespace, String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedReplicationControllerScaleValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call readNamespacedReplicationControllerScaleAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedReplicationControllerScaleValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreadNamespacedReplicationControllerScaleRequest { private final String name; private final String namespace; private String pretty; private APIreadNamespacedReplicationControllerScaleRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedReplicationControllerScaleRequest */ public APIreadNamespacedReplicationControllerScaleRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Build call for readNamespacedReplicationControllerScale * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return readNamespacedReplicationControllerScaleCall(name, namespace, pretty, _callback); } /** * Execute readNamespacedReplicationControllerScale request * @return V1Scale * @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 V1Scale execute() throws ApiException { ApiResponse localVarResp = readNamespacedReplicationControllerScaleWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** * Execute readNamespacedReplicationControllerScale request with HTTP info returned * @return ApiResponse<V1Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return readNamespacedReplicationControllerScaleWithHttpInfo(name, namespace, pretty); } /** * Execute readNamespacedReplicationControllerScale request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return readNamespacedReplicationControllerScaleAsync(name, namespace, pretty, _callback); } } /** * * read scale of the specified ReplicationController * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedReplicationControllerScaleRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIreadNamespacedReplicationControllerScaleRequest readNamespacedReplicationControllerScale(String name, String namespace) { return new APIreadNamespacedReplicationControllerScaleRequest(name, namespace); } private okhttp3.Call readNamespacedReplicationControllerStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedReplicationControllerStatusValidateBeforeCall(String name, String namespace, String pretty, 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 readNamespacedReplicationControllerStatus(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedReplicationControllerStatus(Async)"); } return readNamespacedReplicationControllerStatusCall(name, namespace, pretty, _callback); } private ApiResponse readNamespacedReplicationControllerStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedReplicationControllerStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call readNamespacedReplicationControllerStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedReplicationControllerStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreadNamespacedReplicationControllerStatusRequest { private final String name; private final String namespace; private String pretty; private APIreadNamespacedReplicationControllerStatusRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedReplicationControllerStatusRequest */ public APIreadNamespacedReplicationControllerStatusRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Build call for readNamespacedReplicationControllerStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return readNamespacedReplicationControllerStatusCall(name, namespace, pretty, _callback); } /** * Execute readNamespacedReplicationControllerStatus request * @return V1ReplicationController * @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 V1ReplicationController execute() throws ApiException { ApiResponse localVarResp = readNamespacedReplicationControllerStatusWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** * Execute readNamespacedReplicationControllerStatus request with HTTP info returned * @return ApiResponse<V1ReplicationController> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return readNamespacedReplicationControllerStatusWithHttpInfo(name, namespace, pretty); } /** * Execute readNamespacedReplicationControllerStatus request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return readNamespacedReplicationControllerStatusAsync(name, namespace, pretty, _callback); } } /** * * read status of the specified ReplicationController * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedReplicationControllerStatusRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIreadNamespacedReplicationControllerStatusRequest readNamespacedReplicationControllerStatus(String name, String namespace) { return new APIreadNamespacedReplicationControllerStatusRequest(name, namespace); } private okhttp3.Call readNamespacedResourceQuotaCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/resourcequotas/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedResourceQuotaValidateBeforeCall(String name, String namespace, String pretty, 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 readNamespacedResourceQuota(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedResourceQuota(Async)"); } return readNamespacedResourceQuotaCall(name, namespace, pretty, _callback); } private ApiResponse readNamespacedResourceQuotaWithHttpInfo(String name, String namespace, String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedResourceQuotaValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call readNamespacedResourceQuotaAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedResourceQuotaValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreadNamespacedResourceQuotaRequest { private final String name; private final String namespace; private String pretty; private APIreadNamespacedResourceQuotaRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedResourceQuotaRequest */ public APIreadNamespacedResourceQuotaRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Build call for readNamespacedResourceQuota * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return readNamespacedResourceQuotaCall(name, namespace, pretty, _callback); } /** * Execute readNamespacedResourceQuota request * @return V1ResourceQuota * @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 V1ResourceQuota execute() throws ApiException { ApiResponse localVarResp = readNamespacedResourceQuotaWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** * Execute readNamespacedResourceQuota request with HTTP info returned * @return ApiResponse<V1ResourceQuota> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return readNamespacedResourceQuotaWithHttpInfo(name, namespace, pretty); } /** * Execute readNamespacedResourceQuota request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return readNamespacedResourceQuotaAsync(name, namespace, pretty, _callback); } } /** * * read the specified ResourceQuota * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedResourceQuotaRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIreadNamespacedResourceQuotaRequest readNamespacedResourceQuota(String name, String namespace) { return new APIreadNamespacedResourceQuotaRequest(name, namespace); } private okhttp3.Call readNamespacedResourceQuotaStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/resourcequotas/{name}/status" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedResourceQuotaStatusValidateBeforeCall(String name, String namespace, String pretty, 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 readNamespacedResourceQuotaStatus(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedResourceQuotaStatus(Async)"); } return readNamespacedResourceQuotaStatusCall(name, namespace, pretty, _callback); } private ApiResponse readNamespacedResourceQuotaStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedResourceQuotaStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call readNamespacedResourceQuotaStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedResourceQuotaStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreadNamespacedResourceQuotaStatusRequest { private final String name; private final String namespace; private String pretty; private APIreadNamespacedResourceQuotaStatusRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedResourceQuotaStatusRequest */ public APIreadNamespacedResourceQuotaStatusRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Build call for readNamespacedResourceQuotaStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return readNamespacedResourceQuotaStatusCall(name, namespace, pretty, _callback); } /** * Execute readNamespacedResourceQuotaStatus request * @return V1ResourceQuota * @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 V1ResourceQuota execute() throws ApiException { ApiResponse localVarResp = readNamespacedResourceQuotaStatusWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** * Execute readNamespacedResourceQuotaStatus request with HTTP info returned * @return ApiResponse<V1ResourceQuota> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return readNamespacedResourceQuotaStatusWithHttpInfo(name, namespace, pretty); } /** * Execute readNamespacedResourceQuotaStatus request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return readNamespacedResourceQuotaStatusAsync(name, namespace, pretty, _callback); } } /** * * read status of the specified ResourceQuota * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedResourceQuotaStatusRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIreadNamespacedResourceQuotaStatusRequest readNamespacedResourceQuotaStatus(String name, String namespace) { return new APIreadNamespacedResourceQuotaStatusRequest(name, namespace); } private okhttp3.Call readNamespacedSecretCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/secrets/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedSecretValidateBeforeCall(String name, String namespace, String pretty, 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 readNamespacedSecret(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedSecret(Async)"); } return readNamespacedSecretCall(name, namespace, pretty, _callback); } private ApiResponse readNamespacedSecretWithHttpInfo(String name, String namespace, String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedSecretValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call readNamespacedSecretAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedSecretValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreadNamespacedSecretRequest { private final String name; private final String namespace; private String pretty; private APIreadNamespacedSecretRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedSecretRequest */ public APIreadNamespacedSecretRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Build call for readNamespacedSecret * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return readNamespacedSecretCall(name, namespace, pretty, _callback); } /** * Execute readNamespacedSecret request * @return V1Secret * @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 V1Secret execute() throws ApiException { ApiResponse localVarResp = readNamespacedSecretWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** * Execute readNamespacedSecret request with HTTP info returned * @return ApiResponse<V1Secret> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return readNamespacedSecretWithHttpInfo(name, namespace, pretty); } /** * Execute readNamespacedSecret request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return readNamespacedSecretAsync(name, namespace, pretty, _callback); } } /** * * read the specified Secret * @param name name of the Secret (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedSecretRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIreadNamespacedSecretRequest readNamespacedSecret(String name, String namespace) { return new APIreadNamespacedSecretRequest(name, namespace); } private okhttp3.Call readNamespacedServiceCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedServiceValidateBeforeCall(String name, String namespace, String pretty, 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 readNamespacedService(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedService(Async)"); } return readNamespacedServiceCall(name, namespace, pretty, _callback); } private ApiResponse readNamespacedServiceWithHttpInfo(String name, String namespace, String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedServiceValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call readNamespacedServiceAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedServiceValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreadNamespacedServiceRequest { private final String name; private final String namespace; private String pretty; private APIreadNamespacedServiceRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedServiceRequest */ public APIreadNamespacedServiceRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Build call for readNamespacedService * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return readNamespacedServiceCall(name, namespace, pretty, _callback); } /** * Execute readNamespacedService request * @return V1Service * @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 V1Service execute() throws ApiException { ApiResponse localVarResp = readNamespacedServiceWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** * Execute readNamespacedService request with HTTP info returned * @return ApiResponse<V1Service> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return readNamespacedServiceWithHttpInfo(name, namespace, pretty); } /** * Execute readNamespacedService request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return readNamespacedServiceAsync(name, namespace, pretty, _callback); } } /** * * read the specified Service * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedServiceRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIreadNamespacedServiceRequest readNamespacedService(String name, String namespace) { return new APIreadNamespacedServiceRequest(name, namespace); } private okhttp3.Call readNamespacedServiceAccountCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/serviceaccounts/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedServiceAccountValidateBeforeCall(String name, String namespace, String pretty, 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 readNamespacedServiceAccount(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedServiceAccount(Async)"); } return readNamespacedServiceAccountCall(name, namespace, pretty, _callback); } private ApiResponse readNamespacedServiceAccountWithHttpInfo(String name, String namespace, String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedServiceAccountValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call readNamespacedServiceAccountAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedServiceAccountValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreadNamespacedServiceAccountRequest { private final String name; private final String namespace; private String pretty; private APIreadNamespacedServiceAccountRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedServiceAccountRequest */ public APIreadNamespacedServiceAccountRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Build call for readNamespacedServiceAccount * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return readNamespacedServiceAccountCall(name, namespace, pretty, _callback); } /** * Execute readNamespacedServiceAccount request * @return V1ServiceAccount * @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 V1ServiceAccount execute() throws ApiException { ApiResponse localVarResp = readNamespacedServiceAccountWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** * Execute readNamespacedServiceAccount request with HTTP info returned * @return ApiResponse<V1ServiceAccount> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return readNamespacedServiceAccountWithHttpInfo(name, namespace, pretty); } /** * Execute readNamespacedServiceAccount request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return readNamespacedServiceAccountAsync(name, namespace, pretty, _callback); } } /** * * read the specified ServiceAccount * @param name name of the ServiceAccount (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedServiceAccountRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIreadNamespacedServiceAccountRequest readNamespacedServiceAccount(String name, String namespace) { return new APIreadNamespacedServiceAccountRequest(name, namespace); } private okhttp3.Call readNamespacedServiceStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/status" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedServiceStatusValidateBeforeCall(String name, String namespace, String pretty, 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 readNamespacedServiceStatus(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedServiceStatus(Async)"); } return readNamespacedServiceStatusCall(name, namespace, pretty, _callback); } private ApiResponse readNamespacedServiceStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedServiceStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call readNamespacedServiceStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedServiceStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreadNamespacedServiceStatusRequest { private final String name; private final String namespace; private String pretty; private APIreadNamespacedServiceStatusRequest(String name, String namespace) { this.name = name; this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNamespacedServiceStatusRequest */ public APIreadNamespacedServiceStatusRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Build call for readNamespacedServiceStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return readNamespacedServiceStatusCall(name, namespace, pretty, _callback); } /** * Execute readNamespacedServiceStatus request * @return V1Service * @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 V1Service execute() throws ApiException { ApiResponse localVarResp = readNamespacedServiceStatusWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** * Execute readNamespacedServiceStatus request with HTTP info returned * @return ApiResponse<V1Service> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return readNamespacedServiceStatusWithHttpInfo(name, namespace, pretty); } /** * Execute readNamespacedServiceStatus request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return readNamespacedServiceStatusAsync(name, namespace, pretty, _callback); } } /** * * read status of the specified Service * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIreadNamespacedServiceStatusRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIreadNamespacedServiceStatusRequest readNamespacedServiceStatus(String name, String namespace) { return new APIreadNamespacedServiceStatusRequest(name, namespace); } private okhttp3.Call readNodeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/nodes/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNodeValidateBeforeCall(String name, String pretty, 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 readNode(Async)"); } return readNodeCall(name, pretty, _callback); } private ApiResponse readNodeWithHttpInfo(String name, String pretty) throws ApiException { okhttp3.Call localVarCall = readNodeValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call readNodeAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNodeValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreadNodeRequest { private final String name; private String pretty; private APIreadNodeRequest(String name) { this.name = name; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNodeRequest */ public APIreadNodeRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Build call for readNode * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return readNodeCall(name, pretty, _callback); } /** * Execute readNode request * @return V1Node * @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 V1Node execute() throws ApiException { ApiResponse localVarResp = readNodeWithHttpInfo(name, pretty); return localVarResp.getData(); } /** * Execute readNode request with HTTP info returned * @return ApiResponse<V1Node> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return readNodeWithHttpInfo(name, pretty); } /** * Execute readNode request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return readNodeAsync(name, pretty, _callback); } } /** * * read the specified Node * @param name name of the Node (required) * @return APIreadNodeRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIreadNodeRequest readNode(String name) { return new APIreadNodeRequest(name); } private okhttp3.Call readNodeStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/nodes/{name}/status" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNodeStatusValidateBeforeCall(String name, String pretty, 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 readNodeStatus(Async)"); } return readNodeStatusCall(name, pretty, _callback); } private ApiResponse readNodeStatusWithHttpInfo(String name, String pretty) throws ApiException { okhttp3.Call localVarCall = readNodeStatusValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call readNodeStatusAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNodeStatusValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreadNodeStatusRequest { private final String name; private String pretty; private APIreadNodeStatusRequest(String name) { this.name = name; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadNodeStatusRequest */ public APIreadNodeStatusRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Build call for readNodeStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return readNodeStatusCall(name, pretty, _callback); } /** * Execute readNodeStatus request * @return V1Node * @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 V1Node execute() throws ApiException { ApiResponse localVarResp = readNodeStatusWithHttpInfo(name, pretty); return localVarResp.getData(); } /** * Execute readNodeStatus request with HTTP info returned * @return ApiResponse<V1Node> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return readNodeStatusWithHttpInfo(name, pretty); } /** * Execute readNodeStatus request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return readNodeStatusAsync(name, pretty, _callback); } } /** * * read status of the specified Node * @param name name of the Node (required) * @return APIreadNodeStatusRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIreadNodeStatusRequest readNodeStatus(String name) { return new APIreadNodeStatusRequest(name); } private okhttp3.Call readPersistentVolumeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/persistentvolumes/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readPersistentVolumeValidateBeforeCall(String name, String pretty, 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 readPersistentVolume(Async)"); } return readPersistentVolumeCall(name, pretty, _callback); } private ApiResponse readPersistentVolumeWithHttpInfo(String name, String pretty) throws ApiException { okhttp3.Call localVarCall = readPersistentVolumeValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call readPersistentVolumeAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readPersistentVolumeValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreadPersistentVolumeRequest { private final String name; private String pretty; private APIreadPersistentVolumeRequest(String name) { this.name = name; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadPersistentVolumeRequest */ public APIreadPersistentVolumeRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Build call for readPersistentVolume * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return readPersistentVolumeCall(name, pretty, _callback); } /** * Execute readPersistentVolume request * @return V1PersistentVolume * @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 V1PersistentVolume execute() throws ApiException { ApiResponse localVarResp = readPersistentVolumeWithHttpInfo(name, pretty); return localVarResp.getData(); } /** * Execute readPersistentVolume request with HTTP info returned * @return ApiResponse<V1PersistentVolume> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return readPersistentVolumeWithHttpInfo(name, pretty); } /** * Execute readPersistentVolume request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return readPersistentVolumeAsync(name, pretty, _callback); } } /** * * read the specified PersistentVolume * @param name name of the PersistentVolume (required) * @return APIreadPersistentVolumeRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIreadPersistentVolumeRequest readPersistentVolume(String name) { return new APIreadPersistentVolumeRequest(name); } private okhttp3.Call readPersistentVolumeStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/persistentvolumes/{name}/status" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readPersistentVolumeStatusValidateBeforeCall(String name, String pretty, 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 readPersistentVolumeStatus(Async)"); } return readPersistentVolumeStatusCall(name, pretty, _callback); } private ApiResponse readPersistentVolumeStatusWithHttpInfo(String name, String pretty) throws ApiException { okhttp3.Call localVarCall = readPersistentVolumeStatusValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call readPersistentVolumeStatusAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readPersistentVolumeStatusValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreadPersistentVolumeStatusRequest { private final String name; private String pretty; private APIreadPersistentVolumeStatusRequest(String name) { this.name = name; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadPersistentVolumeStatusRequest */ public APIreadPersistentVolumeStatusRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Build call for readPersistentVolumeStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return readPersistentVolumeStatusCall(name, pretty, _callback); } /** * Execute readPersistentVolumeStatus request * @return V1PersistentVolume * @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 V1PersistentVolume execute() throws ApiException { ApiResponse localVarResp = readPersistentVolumeStatusWithHttpInfo(name, pretty); return localVarResp.getData(); } /** * Execute readPersistentVolumeStatus request with HTTP info returned * @return ApiResponse<V1PersistentVolume> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return readPersistentVolumeStatusWithHttpInfo(name, pretty); } /** * Execute readPersistentVolumeStatus request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return readPersistentVolumeStatusAsync(name, pretty, _callback); } } /** * * read status of the specified PersistentVolume * @param name name of the PersistentVolume (required) * @return APIreadPersistentVolumeStatusRequest * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public APIreadPersistentVolumeStatusRequest readPersistentVolumeStatus(String name) { return new APIreadPersistentVolumeStatusRequest(name); } private okhttp3.Call replaceNamespaceCall(String name, V1Namespace body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespaceValidateBeforeCall(String name, V1Namespace body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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 replaceNamespace(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling replaceNamespace(Async)"); } return replaceNamespaceCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } private ApiResponse replaceNamespaceWithHttpInfo(String name, V1Namespace body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespaceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call replaceNamespaceAsync(String name, V1Namespace body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespaceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreplaceNamespaceRequest { private final String name; private final V1Namespace body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private APIreplaceNamespaceRequest(String name, V1Namespace body) { this.name = name; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespaceRequest */ public APIreplaceNamespaceRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespaceRequest */ public APIreplaceNamespaceRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespaceRequest */ public APIreplaceNamespaceRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespaceRequest */ public APIreplaceNamespaceRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Build call for replaceNamespace * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return replaceNamespaceCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** * Execute replaceNamespace request * @return V1Namespace * @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 -
201 Created -
401 Unauthorized -
*/ public V1Namespace execute() throws ApiException { ApiResponse localVarResp = replaceNamespaceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * Execute replaceNamespace request with HTTP info returned * @return ApiResponse<V1Namespace> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return replaceNamespaceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); } /** * Execute replaceNamespace request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return replaceNamespaceAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * * replace the specified Namespace * @param name name of the Namespace (required) * @param body (required) * @return APIreplaceNamespaceRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIreplaceNamespaceRequest replaceNamespace(String name, V1Namespace body) { return new APIreplaceNamespaceRequest(name, body); } private okhttp3.Call replaceNamespaceFinalizeCall(String name, V1Namespace body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{name}/finalize" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespaceFinalizeValidateBeforeCall(String name, V1Namespace body, String dryRun, String fieldManager, String fieldValidation, String pretty, 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 replaceNamespaceFinalize(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling replaceNamespaceFinalize(Async)"); } return replaceNamespaceFinalizeCall(name, body, dryRun, fieldManager, fieldValidation, pretty, _callback); } private ApiResponse replaceNamespaceFinalizeWithHttpInfo(String name, V1Namespace body, String dryRun, String fieldManager, String fieldValidation, String pretty) throws ApiException { okhttp3.Call localVarCall = replaceNamespaceFinalizeValidateBeforeCall(name, body, dryRun, fieldManager, fieldValidation, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call replaceNamespaceFinalizeAsync(String name, V1Namespace body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespaceFinalizeValidateBeforeCall(name, body, dryRun, fieldManager, fieldValidation, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreplaceNamespaceFinalizeRequest { private final String name; private final V1Namespace body; private String dryRun; private String fieldManager; private String fieldValidation; private String pretty; private APIreplaceNamespaceFinalizeRequest(String name, V1Namespace body) { this.name = name; this.body = body; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespaceFinalizeRequest */ public APIreplaceNamespaceFinalizeRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespaceFinalizeRequest */ public APIreplaceNamespaceFinalizeRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespaceFinalizeRequest */ public APIreplaceNamespaceFinalizeRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespaceFinalizeRequest */ public APIreplaceNamespaceFinalizeRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Build call for replaceNamespaceFinalize * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return replaceNamespaceFinalizeCall(name, body, dryRun, fieldManager, fieldValidation, pretty, _callback); } /** * Execute replaceNamespaceFinalize request * @return V1Namespace * @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 -
201 Created -
401 Unauthorized -
*/ public V1Namespace execute() throws ApiException { ApiResponse localVarResp = replaceNamespaceFinalizeWithHttpInfo(name, body, dryRun, fieldManager, fieldValidation, pretty); return localVarResp.getData(); } /** * Execute replaceNamespaceFinalize request with HTTP info returned * @return ApiResponse<V1Namespace> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return replaceNamespaceFinalizeWithHttpInfo(name, body, dryRun, fieldManager, fieldValidation, pretty); } /** * Execute replaceNamespaceFinalize request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return replaceNamespaceFinalizeAsync(name, body, dryRun, fieldManager, fieldValidation, pretty, _callback); } } /** * * replace finalize of the specified Namespace * @param name name of the Namespace (required) * @param body (required) * @return APIreplaceNamespaceFinalizeRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIreplaceNamespaceFinalizeRequest replaceNamespaceFinalize(String name, V1Namespace body) { return new APIreplaceNamespaceFinalizeRequest(name, body); } private okhttp3.Call replaceNamespaceStatusCall(String name, V1Namespace body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{name}/status" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespaceStatusValidateBeforeCall(String name, V1Namespace body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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 replaceNamespaceStatus(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling replaceNamespaceStatus(Async)"); } return replaceNamespaceStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } private ApiResponse replaceNamespaceStatusWithHttpInfo(String name, V1Namespace body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespaceStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call replaceNamespaceStatusAsync(String name, V1Namespace body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespaceStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreplaceNamespaceStatusRequest { private final String name; private final V1Namespace body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private APIreplaceNamespaceStatusRequest(String name, V1Namespace body) { this.name = name; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespaceStatusRequest */ public APIreplaceNamespaceStatusRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespaceStatusRequest */ public APIreplaceNamespaceStatusRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespaceStatusRequest */ public APIreplaceNamespaceStatusRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespaceStatusRequest */ public APIreplaceNamespaceStatusRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Build call for replaceNamespaceStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return replaceNamespaceStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** * Execute replaceNamespaceStatus request * @return V1Namespace * @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 -
201 Created -
401 Unauthorized -
*/ public V1Namespace execute() throws ApiException { ApiResponse localVarResp = replaceNamespaceStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * Execute replaceNamespaceStatus request with HTTP info returned * @return ApiResponse<V1Namespace> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return replaceNamespaceStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); } /** * Execute replaceNamespaceStatus request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return replaceNamespaceStatusAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * * replace status of the specified Namespace * @param name name of the Namespace (required) * @param body (required) * @return APIreplaceNamespaceStatusRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIreplaceNamespaceStatusRequest replaceNamespaceStatus(String name, V1Namespace body) { return new APIreplaceNamespaceStatusRequest(name, body); } private okhttp3.Call replaceNamespacedConfigMapCall(String name, String namespace, V1ConfigMap body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/configmaps/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedConfigMapValidateBeforeCall(String name, String namespace, V1ConfigMap body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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 replaceNamespacedConfigMap(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedConfigMap(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedConfigMap(Async)"); } return replaceNamespacedConfigMapCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } private ApiResponse replaceNamespacedConfigMapWithHttpInfo(String name, String namespace, V1ConfigMap body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedConfigMapValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call replaceNamespacedConfigMapAsync(String name, String namespace, V1ConfigMap body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedConfigMapValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreplaceNamespacedConfigMapRequest { private final String name; private final String namespace; private final V1ConfigMap body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private APIreplaceNamespacedConfigMapRequest(String name, String namespace, V1ConfigMap body) { this.name = name; this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedConfigMapRequest */ public APIreplaceNamespacedConfigMapRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedConfigMapRequest */ public APIreplaceNamespacedConfigMapRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedConfigMapRequest */ public APIreplaceNamespacedConfigMapRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedConfigMapRequest */ public APIreplaceNamespacedConfigMapRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Build call for replaceNamespacedConfigMap * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return replaceNamespacedConfigMapCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** * Execute replaceNamespacedConfigMap request * @return V1ConfigMap * @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 -
201 Created -
401 Unauthorized -
*/ public V1ConfigMap execute() throws ApiException { ApiResponse localVarResp = replaceNamespacedConfigMapWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * Execute replaceNamespacedConfigMap request with HTTP info returned * @return ApiResponse<V1ConfigMap> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return replaceNamespacedConfigMapWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); } /** * Execute replaceNamespacedConfigMap request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return replaceNamespacedConfigMapAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * * replace the specified ConfigMap * @param name name of the ConfigMap (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIreplaceNamespacedConfigMapRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIreplaceNamespacedConfigMapRequest replaceNamespacedConfigMap(String name, String namespace, V1ConfigMap body) { return new APIreplaceNamespacedConfigMapRequest(name, namespace, body); } private okhttp3.Call replaceNamespacedEndpointsCall(String name, String namespace, V1Endpoints body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/endpoints/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedEndpointsValidateBeforeCall(String name, String namespace, V1Endpoints body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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 replaceNamespacedEndpoints(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedEndpoints(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedEndpoints(Async)"); } return replaceNamespacedEndpointsCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } private ApiResponse replaceNamespacedEndpointsWithHttpInfo(String name, String namespace, V1Endpoints body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedEndpointsValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call replaceNamespacedEndpointsAsync(String name, String namespace, V1Endpoints body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedEndpointsValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreplaceNamespacedEndpointsRequest { private final String name; private final String namespace; private final V1Endpoints body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private APIreplaceNamespacedEndpointsRequest(String name, String namespace, V1Endpoints body) { this.name = name; this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedEndpointsRequest */ public APIreplaceNamespacedEndpointsRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedEndpointsRequest */ public APIreplaceNamespacedEndpointsRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedEndpointsRequest */ public APIreplaceNamespacedEndpointsRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedEndpointsRequest */ public APIreplaceNamespacedEndpointsRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Build call for replaceNamespacedEndpoints * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return replaceNamespacedEndpointsCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** * Execute replaceNamespacedEndpoints request * @return V1Endpoints * @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 -
201 Created -
401 Unauthorized -
*/ public V1Endpoints execute() throws ApiException { ApiResponse localVarResp = replaceNamespacedEndpointsWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * Execute replaceNamespacedEndpoints request with HTTP info returned * @return ApiResponse<V1Endpoints> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return replaceNamespacedEndpointsWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); } /** * Execute replaceNamespacedEndpoints request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return replaceNamespacedEndpointsAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * * replace the specified Endpoints * @param name name of the Endpoints (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIreplaceNamespacedEndpointsRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIreplaceNamespacedEndpointsRequest replaceNamespacedEndpoints(String name, String namespace, V1Endpoints body) { return new APIreplaceNamespacedEndpointsRequest(name, namespace, body); } private okhttp3.Call replaceNamespacedEventCall(String name, String namespace, CoreV1Event body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/events/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedEventValidateBeforeCall(String name, String namespace, CoreV1Event body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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 replaceNamespacedEvent(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedEvent(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedEvent(Async)"); } return replaceNamespacedEventCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } private ApiResponse replaceNamespacedEventWithHttpInfo(String name, String namespace, CoreV1Event body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedEventValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call replaceNamespacedEventAsync(String name, String namespace, CoreV1Event body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedEventValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreplaceNamespacedEventRequest { private final String name; private final String namespace; private final CoreV1Event body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private APIreplaceNamespacedEventRequest(String name, String namespace, CoreV1Event body) { this.name = name; this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedEventRequest */ public APIreplaceNamespacedEventRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedEventRequest */ public APIreplaceNamespacedEventRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedEventRequest */ public APIreplaceNamespacedEventRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedEventRequest */ public APIreplaceNamespacedEventRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Build call for replaceNamespacedEvent * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return replaceNamespacedEventCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** * Execute replaceNamespacedEvent request * @return CoreV1Event * @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 -
201 Created -
401 Unauthorized -
*/ public CoreV1Event execute() throws ApiException { ApiResponse localVarResp = replaceNamespacedEventWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * Execute replaceNamespacedEvent request with HTTP info returned * @return ApiResponse<CoreV1Event> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return replaceNamespacedEventWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); } /** * Execute replaceNamespacedEvent request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return replaceNamespacedEventAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * * replace the specified Event * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIreplaceNamespacedEventRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIreplaceNamespacedEventRequest replaceNamespacedEvent(String name, String namespace, CoreV1Event body) { return new APIreplaceNamespacedEventRequest(name, namespace, body); } private okhttp3.Call replaceNamespacedLimitRangeCall(String name, String namespace, V1LimitRange body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/limitranges/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedLimitRangeValidateBeforeCall(String name, String namespace, V1LimitRange body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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 replaceNamespacedLimitRange(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedLimitRange(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedLimitRange(Async)"); } return replaceNamespacedLimitRangeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } private ApiResponse replaceNamespacedLimitRangeWithHttpInfo(String name, String namespace, V1LimitRange body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedLimitRangeValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call replaceNamespacedLimitRangeAsync(String name, String namespace, V1LimitRange body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedLimitRangeValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreplaceNamespacedLimitRangeRequest { private final String name; private final String namespace; private final V1LimitRange body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private APIreplaceNamespacedLimitRangeRequest(String name, String namespace, V1LimitRange body) { this.name = name; this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedLimitRangeRequest */ public APIreplaceNamespacedLimitRangeRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedLimitRangeRequest */ public APIreplaceNamespacedLimitRangeRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedLimitRangeRequest */ public APIreplaceNamespacedLimitRangeRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedLimitRangeRequest */ public APIreplaceNamespacedLimitRangeRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Build call for replaceNamespacedLimitRange * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return replaceNamespacedLimitRangeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** * Execute replaceNamespacedLimitRange request * @return V1LimitRange * @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 -
201 Created -
401 Unauthorized -
*/ public V1LimitRange execute() throws ApiException { ApiResponse localVarResp = replaceNamespacedLimitRangeWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * Execute replaceNamespacedLimitRange request with HTTP info returned * @return ApiResponse<V1LimitRange> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return replaceNamespacedLimitRangeWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); } /** * Execute replaceNamespacedLimitRange request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return replaceNamespacedLimitRangeAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * * replace the specified LimitRange * @param name name of the LimitRange (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIreplaceNamespacedLimitRangeRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIreplaceNamespacedLimitRangeRequest replaceNamespacedLimitRange(String name, String namespace, V1LimitRange body) { return new APIreplaceNamespacedLimitRangeRequest(name, namespace, body); } private okhttp3.Call replaceNamespacedPersistentVolumeClaimCall(String name, String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedPersistentVolumeClaimValidateBeforeCall(String name, String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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 replaceNamespacedPersistentVolumeClaim(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedPersistentVolumeClaim(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedPersistentVolumeClaim(Async)"); } return replaceNamespacedPersistentVolumeClaimCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } private ApiResponse replaceNamespacedPersistentVolumeClaimWithHttpInfo(String name, String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedPersistentVolumeClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call replaceNamespacedPersistentVolumeClaimAsync(String name, String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedPersistentVolumeClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreplaceNamespacedPersistentVolumeClaimRequest { private final String name; private final String namespace; private final V1PersistentVolumeClaim body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private APIreplaceNamespacedPersistentVolumeClaimRequest(String name, String namespace, V1PersistentVolumeClaim body) { this.name = name; this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedPersistentVolumeClaimRequest */ public APIreplaceNamespacedPersistentVolumeClaimRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedPersistentVolumeClaimRequest */ public APIreplaceNamespacedPersistentVolumeClaimRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedPersistentVolumeClaimRequest */ public APIreplaceNamespacedPersistentVolumeClaimRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedPersistentVolumeClaimRequest */ public APIreplaceNamespacedPersistentVolumeClaimRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Build call for replaceNamespacedPersistentVolumeClaim * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return replaceNamespacedPersistentVolumeClaimCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** * Execute replaceNamespacedPersistentVolumeClaim request * @return V1PersistentVolumeClaim * @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 -
201 Created -
401 Unauthorized -
*/ public V1PersistentVolumeClaim execute() throws ApiException { ApiResponse localVarResp = replaceNamespacedPersistentVolumeClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * Execute replaceNamespacedPersistentVolumeClaim request with HTTP info returned * @return ApiResponse<V1PersistentVolumeClaim> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return replaceNamespacedPersistentVolumeClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); } /** * Execute replaceNamespacedPersistentVolumeClaim request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return replaceNamespacedPersistentVolumeClaimAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * * replace the specified PersistentVolumeClaim * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIreplaceNamespacedPersistentVolumeClaimRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIreplaceNamespacedPersistentVolumeClaimRequest replaceNamespacedPersistentVolumeClaim(String name, String namespace, V1PersistentVolumeClaim body) { return new APIreplaceNamespacedPersistentVolumeClaimRequest(name, namespace, body); } private okhttp3.Call replaceNamespacedPersistentVolumeClaimStatusCall(String name, String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedPersistentVolumeClaimStatusValidateBeforeCall(String name, String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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 replaceNamespacedPersistentVolumeClaimStatus(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedPersistentVolumeClaimStatus(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedPersistentVolumeClaimStatus(Async)"); } return replaceNamespacedPersistentVolumeClaimStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } private ApiResponse replaceNamespacedPersistentVolumeClaimStatusWithHttpInfo(String name, String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedPersistentVolumeClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call replaceNamespacedPersistentVolumeClaimStatusAsync(String name, String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedPersistentVolumeClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreplaceNamespacedPersistentVolumeClaimStatusRequest { private final String name; private final String namespace; private final V1PersistentVolumeClaim body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private APIreplaceNamespacedPersistentVolumeClaimStatusRequest(String name, String namespace, V1PersistentVolumeClaim body) { this.name = name; this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedPersistentVolumeClaimStatusRequest */ public APIreplaceNamespacedPersistentVolumeClaimStatusRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedPersistentVolumeClaimStatusRequest */ public APIreplaceNamespacedPersistentVolumeClaimStatusRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedPersistentVolumeClaimStatusRequest */ public APIreplaceNamespacedPersistentVolumeClaimStatusRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedPersistentVolumeClaimStatusRequest */ public APIreplaceNamespacedPersistentVolumeClaimStatusRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Build call for replaceNamespacedPersistentVolumeClaimStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return replaceNamespacedPersistentVolumeClaimStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** * Execute replaceNamespacedPersistentVolumeClaimStatus request * @return V1PersistentVolumeClaim * @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 -
201 Created -
401 Unauthorized -
*/ public V1PersistentVolumeClaim execute() throws ApiException { ApiResponse localVarResp = replaceNamespacedPersistentVolumeClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * Execute replaceNamespacedPersistentVolumeClaimStatus request with HTTP info returned * @return ApiResponse<V1PersistentVolumeClaim> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return replaceNamespacedPersistentVolumeClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); } /** * Execute replaceNamespacedPersistentVolumeClaimStatus request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return replaceNamespacedPersistentVolumeClaimStatusAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * * replace status of the specified PersistentVolumeClaim * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIreplaceNamespacedPersistentVolumeClaimStatusRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIreplaceNamespacedPersistentVolumeClaimStatusRequest replaceNamespacedPersistentVolumeClaimStatus(String name, String namespace, V1PersistentVolumeClaim body) { return new APIreplaceNamespacedPersistentVolumeClaimStatusRequest(name, namespace, body); } private okhttp3.Call replaceNamespacedPodCall(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedPodValidateBeforeCall(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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 replaceNamespacedPod(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedPod(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedPod(Async)"); } return replaceNamespacedPodCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } private ApiResponse replaceNamespacedPodWithHttpInfo(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedPodValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call replaceNamespacedPodAsync(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedPodValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreplaceNamespacedPodRequest { private final String name; private final String namespace; private final V1Pod body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private APIreplaceNamespacedPodRequest(String name, String namespace, V1Pod body) { this.name = name; this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedPodRequest */ public APIreplaceNamespacedPodRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedPodRequest */ public APIreplaceNamespacedPodRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedPodRequest */ public APIreplaceNamespacedPodRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedPodRequest */ public APIreplaceNamespacedPodRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Build call for replaceNamespacedPod * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return replaceNamespacedPodCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** * Execute replaceNamespacedPod request * @return V1Pod * @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 -
201 Created -
401 Unauthorized -
*/ public V1Pod execute() throws ApiException { ApiResponse localVarResp = replaceNamespacedPodWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * Execute replaceNamespacedPod request with HTTP info returned * @return ApiResponse<V1Pod> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return replaceNamespacedPodWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); } /** * Execute replaceNamespacedPod request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return replaceNamespacedPodAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * * replace the specified Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIreplaceNamespacedPodRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIreplaceNamespacedPodRequest replaceNamespacedPod(String name, String namespace, V1Pod body) { return new APIreplaceNamespacedPodRequest(name, namespace, body); } private okhttp3.Call replaceNamespacedPodEphemeralcontainersCall(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/ephemeralcontainers" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedPodEphemeralcontainersValidateBeforeCall(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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 replaceNamespacedPodEphemeralcontainers(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedPodEphemeralcontainers(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedPodEphemeralcontainers(Async)"); } return replaceNamespacedPodEphemeralcontainersCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } private ApiResponse replaceNamespacedPodEphemeralcontainersWithHttpInfo(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedPodEphemeralcontainersValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call replaceNamespacedPodEphemeralcontainersAsync(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedPodEphemeralcontainersValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreplaceNamespacedPodEphemeralcontainersRequest { private final String name; private final String namespace; private final V1Pod body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private APIreplaceNamespacedPodEphemeralcontainersRequest(String name, String namespace, V1Pod body) { this.name = name; this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedPodEphemeralcontainersRequest */ public APIreplaceNamespacedPodEphemeralcontainersRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedPodEphemeralcontainersRequest */ public APIreplaceNamespacedPodEphemeralcontainersRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedPodEphemeralcontainersRequest */ public APIreplaceNamespacedPodEphemeralcontainersRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedPodEphemeralcontainersRequest */ public APIreplaceNamespacedPodEphemeralcontainersRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Build call for replaceNamespacedPodEphemeralcontainers * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return replaceNamespacedPodEphemeralcontainersCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** * Execute replaceNamespacedPodEphemeralcontainers request * @return V1Pod * @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 -
201 Created -
401 Unauthorized -
*/ public V1Pod execute() throws ApiException { ApiResponse localVarResp = replaceNamespacedPodEphemeralcontainersWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * Execute replaceNamespacedPodEphemeralcontainers request with HTTP info returned * @return ApiResponse<V1Pod> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return replaceNamespacedPodEphemeralcontainersWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); } /** * Execute replaceNamespacedPodEphemeralcontainers request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return replaceNamespacedPodEphemeralcontainersAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * * replace ephemeralcontainers of the specified Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIreplaceNamespacedPodEphemeralcontainersRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIreplaceNamespacedPodEphemeralcontainersRequest replaceNamespacedPodEphemeralcontainers(String name, String namespace, V1Pod body) { return new APIreplaceNamespacedPodEphemeralcontainersRequest(name, namespace, body); } private okhttp3.Call replaceNamespacedPodStatusCall(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/status" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedPodStatusValidateBeforeCall(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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 replaceNamespacedPodStatus(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedPodStatus(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedPodStatus(Async)"); } return replaceNamespacedPodStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } private ApiResponse replaceNamespacedPodStatusWithHttpInfo(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedPodStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call replaceNamespacedPodStatusAsync(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedPodStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreplaceNamespacedPodStatusRequest { private final String name; private final String namespace; private final V1Pod body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private APIreplaceNamespacedPodStatusRequest(String name, String namespace, V1Pod body) { this.name = name; this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedPodStatusRequest */ public APIreplaceNamespacedPodStatusRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedPodStatusRequest */ public APIreplaceNamespacedPodStatusRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedPodStatusRequest */ public APIreplaceNamespacedPodStatusRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedPodStatusRequest */ public APIreplaceNamespacedPodStatusRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Build call for replaceNamespacedPodStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return replaceNamespacedPodStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** * Execute replaceNamespacedPodStatus request * @return V1Pod * @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 -
201 Created -
401 Unauthorized -
*/ public V1Pod execute() throws ApiException { ApiResponse localVarResp = replaceNamespacedPodStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * Execute replaceNamespacedPodStatus request with HTTP info returned * @return ApiResponse<V1Pod> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return replaceNamespacedPodStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); } /** * Execute replaceNamespacedPodStatus request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return replaceNamespacedPodStatusAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * * replace status of the specified Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIreplaceNamespacedPodStatusRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIreplaceNamespacedPodStatusRequest replaceNamespacedPodStatus(String name, String namespace, V1Pod body) { return new APIreplaceNamespacedPodStatusRequest(name, namespace, body); } private okhttp3.Call replaceNamespacedPodTemplateCall(String name, String namespace, V1PodTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/podtemplates/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedPodTemplateValidateBeforeCall(String name, String namespace, V1PodTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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 replaceNamespacedPodTemplate(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedPodTemplate(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedPodTemplate(Async)"); } return replaceNamespacedPodTemplateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } private ApiResponse replaceNamespacedPodTemplateWithHttpInfo(String name, String namespace, V1PodTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedPodTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call replaceNamespacedPodTemplateAsync(String name, String namespace, V1PodTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedPodTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreplaceNamespacedPodTemplateRequest { private final String name; private final String namespace; private final V1PodTemplate body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private APIreplaceNamespacedPodTemplateRequest(String name, String namespace, V1PodTemplate body) { this.name = name; this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedPodTemplateRequest */ public APIreplaceNamespacedPodTemplateRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedPodTemplateRequest */ public APIreplaceNamespacedPodTemplateRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedPodTemplateRequest */ public APIreplaceNamespacedPodTemplateRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedPodTemplateRequest */ public APIreplaceNamespacedPodTemplateRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Build call for replaceNamespacedPodTemplate * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return replaceNamespacedPodTemplateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** * Execute replaceNamespacedPodTemplate request * @return V1PodTemplate * @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 -
201 Created -
401 Unauthorized -
*/ public V1PodTemplate execute() throws ApiException { ApiResponse localVarResp = replaceNamespacedPodTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * Execute replaceNamespacedPodTemplate request with HTTP info returned * @return ApiResponse<V1PodTemplate> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return replaceNamespacedPodTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); } /** * Execute replaceNamespacedPodTemplate request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return replaceNamespacedPodTemplateAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * * replace the specified PodTemplate * @param name name of the PodTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIreplaceNamespacedPodTemplateRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIreplaceNamespacedPodTemplateRequest replaceNamespacedPodTemplate(String name, String namespace, V1PodTemplate body) { return new APIreplaceNamespacedPodTemplateRequest(name, namespace, body); } private okhttp3.Call replaceNamespacedReplicationControllerCall(String name, String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedReplicationControllerValidateBeforeCall(String name, String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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 replaceNamespacedReplicationController(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedReplicationController(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedReplicationController(Async)"); } return replaceNamespacedReplicationControllerCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } private ApiResponse replaceNamespacedReplicationControllerWithHttpInfo(String name, String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedReplicationControllerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call replaceNamespacedReplicationControllerAsync(String name, String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedReplicationControllerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreplaceNamespacedReplicationControllerRequest { private final String name; private final String namespace; private final V1ReplicationController body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private APIreplaceNamespacedReplicationControllerRequest(String name, String namespace, V1ReplicationController body) { this.name = name; this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedReplicationControllerRequest */ public APIreplaceNamespacedReplicationControllerRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedReplicationControllerRequest */ public APIreplaceNamespacedReplicationControllerRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedReplicationControllerRequest */ public APIreplaceNamespacedReplicationControllerRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedReplicationControllerRequest */ public APIreplaceNamespacedReplicationControllerRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Build call for replaceNamespacedReplicationController * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return replaceNamespacedReplicationControllerCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** * Execute replaceNamespacedReplicationController request * @return V1ReplicationController * @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 -
201 Created -
401 Unauthorized -
*/ public V1ReplicationController execute() throws ApiException { ApiResponse localVarResp = replaceNamespacedReplicationControllerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * Execute replaceNamespacedReplicationController request with HTTP info returned * @return ApiResponse<V1ReplicationController> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return replaceNamespacedReplicationControllerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); } /** * Execute replaceNamespacedReplicationController request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return replaceNamespacedReplicationControllerAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * * replace the specified ReplicationController * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIreplaceNamespacedReplicationControllerRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIreplaceNamespacedReplicationControllerRequest replaceNamespacedReplicationController(String name, String namespace, V1ReplicationController body) { return new APIreplaceNamespacedReplicationControllerRequest(name, namespace, body); } private okhttp3.Call replaceNamespacedReplicationControllerScaleCall(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedReplicationControllerScaleValidateBeforeCall(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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 replaceNamespacedReplicationControllerScale(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedReplicationControllerScale(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedReplicationControllerScale(Async)"); } return replaceNamespacedReplicationControllerScaleCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } private ApiResponse replaceNamespacedReplicationControllerScaleWithHttpInfo(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedReplicationControllerScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call replaceNamespacedReplicationControllerScaleAsync(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedReplicationControllerScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreplaceNamespacedReplicationControllerScaleRequest { private final String name; private final String namespace; private final V1Scale body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private APIreplaceNamespacedReplicationControllerScaleRequest(String name, String namespace, V1Scale body) { this.name = name; this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedReplicationControllerScaleRequest */ public APIreplaceNamespacedReplicationControllerScaleRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedReplicationControllerScaleRequest */ public APIreplaceNamespacedReplicationControllerScaleRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedReplicationControllerScaleRequest */ public APIreplaceNamespacedReplicationControllerScaleRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedReplicationControllerScaleRequest */ public APIreplaceNamespacedReplicationControllerScaleRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Build call for replaceNamespacedReplicationControllerScale * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return replaceNamespacedReplicationControllerScaleCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** * Execute replaceNamespacedReplicationControllerScale request * @return V1Scale * @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 -
201 Created -
401 Unauthorized -
*/ public V1Scale execute() throws ApiException { ApiResponse localVarResp = replaceNamespacedReplicationControllerScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * Execute replaceNamespacedReplicationControllerScale request with HTTP info returned * @return ApiResponse<V1Scale> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return replaceNamespacedReplicationControllerScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); } /** * Execute replaceNamespacedReplicationControllerScale request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return replaceNamespacedReplicationControllerScaleAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * * replace scale of the specified ReplicationController * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIreplaceNamespacedReplicationControllerScaleRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIreplaceNamespacedReplicationControllerScaleRequest replaceNamespacedReplicationControllerScale(String name, String namespace, V1Scale body) { return new APIreplaceNamespacedReplicationControllerScaleRequest(name, namespace, body); } private okhttp3.Call replaceNamespacedReplicationControllerStatusCall(String name, String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedReplicationControllerStatusValidateBeforeCall(String name, String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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 replaceNamespacedReplicationControllerStatus(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedReplicationControllerStatus(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedReplicationControllerStatus(Async)"); } return replaceNamespacedReplicationControllerStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } private ApiResponse replaceNamespacedReplicationControllerStatusWithHttpInfo(String name, String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedReplicationControllerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call replaceNamespacedReplicationControllerStatusAsync(String name, String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedReplicationControllerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreplaceNamespacedReplicationControllerStatusRequest { private final String name; private final String namespace; private final V1ReplicationController body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private APIreplaceNamespacedReplicationControllerStatusRequest(String name, String namespace, V1ReplicationController body) { this.name = name; this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedReplicationControllerStatusRequest */ public APIreplaceNamespacedReplicationControllerStatusRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedReplicationControllerStatusRequest */ public APIreplaceNamespacedReplicationControllerStatusRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedReplicationControllerStatusRequest */ public APIreplaceNamespacedReplicationControllerStatusRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedReplicationControllerStatusRequest */ public APIreplaceNamespacedReplicationControllerStatusRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Build call for replaceNamespacedReplicationControllerStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return replaceNamespacedReplicationControllerStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** * Execute replaceNamespacedReplicationControllerStatus request * @return V1ReplicationController * @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 -
201 Created -
401 Unauthorized -
*/ public V1ReplicationController execute() throws ApiException { ApiResponse localVarResp = replaceNamespacedReplicationControllerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * Execute replaceNamespacedReplicationControllerStatus request with HTTP info returned * @return ApiResponse<V1ReplicationController> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return replaceNamespacedReplicationControllerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); } /** * Execute replaceNamespacedReplicationControllerStatus request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return replaceNamespacedReplicationControllerStatusAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * * replace status of the specified ReplicationController * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIreplaceNamespacedReplicationControllerStatusRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIreplaceNamespacedReplicationControllerStatusRequest replaceNamespacedReplicationControllerStatus(String name, String namespace, V1ReplicationController body) { return new APIreplaceNamespacedReplicationControllerStatusRequest(name, namespace, body); } private okhttp3.Call replaceNamespacedResourceQuotaCall(String name, String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/resourcequotas/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedResourceQuotaValidateBeforeCall(String name, String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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 replaceNamespacedResourceQuota(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedResourceQuota(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedResourceQuota(Async)"); } return replaceNamespacedResourceQuotaCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } private ApiResponse replaceNamespacedResourceQuotaWithHttpInfo(String name, String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedResourceQuotaValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call replaceNamespacedResourceQuotaAsync(String name, String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedResourceQuotaValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreplaceNamespacedResourceQuotaRequest { private final String name; private final String namespace; private final V1ResourceQuota body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private APIreplaceNamespacedResourceQuotaRequest(String name, String namespace, V1ResourceQuota body) { this.name = name; this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedResourceQuotaRequest */ public APIreplaceNamespacedResourceQuotaRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedResourceQuotaRequest */ public APIreplaceNamespacedResourceQuotaRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedResourceQuotaRequest */ public APIreplaceNamespacedResourceQuotaRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedResourceQuotaRequest */ public APIreplaceNamespacedResourceQuotaRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Build call for replaceNamespacedResourceQuota * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return replaceNamespacedResourceQuotaCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** * Execute replaceNamespacedResourceQuota request * @return V1ResourceQuota * @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 -
201 Created -
401 Unauthorized -
*/ public V1ResourceQuota execute() throws ApiException { ApiResponse localVarResp = replaceNamespacedResourceQuotaWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * Execute replaceNamespacedResourceQuota request with HTTP info returned * @return ApiResponse<V1ResourceQuota> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return replaceNamespacedResourceQuotaWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); } /** * Execute replaceNamespacedResourceQuota request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return replaceNamespacedResourceQuotaAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * * replace the specified ResourceQuota * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIreplaceNamespacedResourceQuotaRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIreplaceNamespacedResourceQuotaRequest replaceNamespacedResourceQuota(String name, String namespace, V1ResourceQuota body) { return new APIreplaceNamespacedResourceQuotaRequest(name, namespace, body); } private okhttp3.Call replaceNamespacedResourceQuotaStatusCall(String name, String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/resourcequotas/{name}/status" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedResourceQuotaStatusValidateBeforeCall(String name, String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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 replaceNamespacedResourceQuotaStatus(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedResourceQuotaStatus(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedResourceQuotaStatus(Async)"); } return replaceNamespacedResourceQuotaStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } private ApiResponse replaceNamespacedResourceQuotaStatusWithHttpInfo(String name, String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedResourceQuotaStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call replaceNamespacedResourceQuotaStatusAsync(String name, String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedResourceQuotaStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreplaceNamespacedResourceQuotaStatusRequest { private final String name; private final String namespace; private final V1ResourceQuota body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private APIreplaceNamespacedResourceQuotaStatusRequest(String name, String namespace, V1ResourceQuota body) { this.name = name; this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedResourceQuotaStatusRequest */ public APIreplaceNamespacedResourceQuotaStatusRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedResourceQuotaStatusRequest */ public APIreplaceNamespacedResourceQuotaStatusRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedResourceQuotaStatusRequest */ public APIreplaceNamespacedResourceQuotaStatusRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedResourceQuotaStatusRequest */ public APIreplaceNamespacedResourceQuotaStatusRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Build call for replaceNamespacedResourceQuotaStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return replaceNamespacedResourceQuotaStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** * Execute replaceNamespacedResourceQuotaStatus request * @return V1ResourceQuota * @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 -
201 Created -
401 Unauthorized -
*/ public V1ResourceQuota execute() throws ApiException { ApiResponse localVarResp = replaceNamespacedResourceQuotaStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * Execute replaceNamespacedResourceQuotaStatus request with HTTP info returned * @return ApiResponse<V1ResourceQuota> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return replaceNamespacedResourceQuotaStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); } /** * Execute replaceNamespacedResourceQuotaStatus request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return replaceNamespacedResourceQuotaStatusAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * * replace status of the specified ResourceQuota * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIreplaceNamespacedResourceQuotaStatusRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIreplaceNamespacedResourceQuotaStatusRequest replaceNamespacedResourceQuotaStatus(String name, String namespace, V1ResourceQuota body) { return new APIreplaceNamespacedResourceQuotaStatusRequest(name, namespace, body); } private okhttp3.Call replaceNamespacedSecretCall(String name, String namespace, V1Secret body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/secrets/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedSecretValidateBeforeCall(String name, String namespace, V1Secret body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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 replaceNamespacedSecret(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedSecret(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedSecret(Async)"); } return replaceNamespacedSecretCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } private ApiResponse replaceNamespacedSecretWithHttpInfo(String name, String namespace, V1Secret body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedSecretValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call replaceNamespacedSecretAsync(String name, String namespace, V1Secret body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedSecretValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreplaceNamespacedSecretRequest { private final String name; private final String namespace; private final V1Secret body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private APIreplaceNamespacedSecretRequest(String name, String namespace, V1Secret body) { this.name = name; this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedSecretRequest */ public APIreplaceNamespacedSecretRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedSecretRequest */ public APIreplaceNamespacedSecretRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedSecretRequest */ public APIreplaceNamespacedSecretRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedSecretRequest */ public APIreplaceNamespacedSecretRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Build call for replaceNamespacedSecret * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return replaceNamespacedSecretCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** * Execute replaceNamespacedSecret request * @return V1Secret * @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 -
201 Created -
401 Unauthorized -
*/ public V1Secret execute() throws ApiException { ApiResponse localVarResp = replaceNamespacedSecretWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * Execute replaceNamespacedSecret request with HTTP info returned * @return ApiResponse<V1Secret> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return replaceNamespacedSecretWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); } /** * Execute replaceNamespacedSecret request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return replaceNamespacedSecretAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * * replace the specified Secret * @param name name of the Secret (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIreplaceNamespacedSecretRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIreplaceNamespacedSecretRequest replaceNamespacedSecret(String name, String namespace, V1Secret body) { return new APIreplaceNamespacedSecretRequest(name, namespace, body); } private okhttp3.Call replaceNamespacedServiceCall(String name, String namespace, V1Service body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedServiceValidateBeforeCall(String name, String namespace, V1Service body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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 replaceNamespacedService(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedService(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedService(Async)"); } return replaceNamespacedServiceCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } private ApiResponse replaceNamespacedServiceWithHttpInfo(String name, String namespace, V1Service body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedServiceValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call replaceNamespacedServiceAsync(String name, String namespace, V1Service body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedServiceValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreplaceNamespacedServiceRequest { private final String name; private final String namespace; private final V1Service body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private APIreplaceNamespacedServiceRequest(String name, String namespace, V1Service body) { this.name = name; this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedServiceRequest */ public APIreplaceNamespacedServiceRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedServiceRequest */ public APIreplaceNamespacedServiceRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedServiceRequest */ public APIreplaceNamespacedServiceRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedServiceRequest */ public APIreplaceNamespacedServiceRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Build call for replaceNamespacedService * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return replaceNamespacedServiceCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** * Execute replaceNamespacedService request * @return V1Service * @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 -
201 Created -
401 Unauthorized -
*/ public V1Service execute() throws ApiException { ApiResponse localVarResp = replaceNamespacedServiceWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * Execute replaceNamespacedService request with HTTP info returned * @return ApiResponse<V1Service> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return replaceNamespacedServiceWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); } /** * Execute replaceNamespacedService request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return replaceNamespacedServiceAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * * replace the specified Service * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIreplaceNamespacedServiceRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIreplaceNamespacedServiceRequest replaceNamespacedService(String name, String namespace, V1Service body) { return new APIreplaceNamespacedServiceRequest(name, namespace, body); } private okhttp3.Call replaceNamespacedServiceAccountCall(String name, String namespace, V1ServiceAccount body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/serviceaccounts/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedServiceAccountValidateBeforeCall(String name, String namespace, V1ServiceAccount body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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 replaceNamespacedServiceAccount(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedServiceAccount(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedServiceAccount(Async)"); } return replaceNamespacedServiceAccountCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } private ApiResponse replaceNamespacedServiceAccountWithHttpInfo(String name, String namespace, V1ServiceAccount body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedServiceAccountValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call replaceNamespacedServiceAccountAsync(String name, String namespace, V1ServiceAccount body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedServiceAccountValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreplaceNamespacedServiceAccountRequest { private final String name; private final String namespace; private final V1ServiceAccount body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private APIreplaceNamespacedServiceAccountRequest(String name, String namespace, V1ServiceAccount body) { this.name = name; this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedServiceAccountRequest */ public APIreplaceNamespacedServiceAccountRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedServiceAccountRequest */ public APIreplaceNamespacedServiceAccountRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedServiceAccountRequest */ public APIreplaceNamespacedServiceAccountRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedServiceAccountRequest */ public APIreplaceNamespacedServiceAccountRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Build call for replaceNamespacedServiceAccount * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return replaceNamespacedServiceAccountCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** * Execute replaceNamespacedServiceAccount request * @return V1ServiceAccount * @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 -
201 Created -
401 Unauthorized -
*/ public V1ServiceAccount execute() throws ApiException { ApiResponse localVarResp = replaceNamespacedServiceAccountWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * Execute replaceNamespacedServiceAccount request with HTTP info returned * @return ApiResponse<V1ServiceAccount> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return replaceNamespacedServiceAccountWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); } /** * Execute replaceNamespacedServiceAccount request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return replaceNamespacedServiceAccountAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * * replace the specified ServiceAccount * @param name name of the ServiceAccount (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIreplaceNamespacedServiceAccountRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIreplaceNamespacedServiceAccountRequest replaceNamespacedServiceAccount(String name, String namespace, V1ServiceAccount body) { return new APIreplaceNamespacedServiceAccountRequest(name, namespace, body); } private okhttp3.Call replaceNamespacedServiceStatusCall(String name, String namespace, V1Service body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/status" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedServiceStatusValidateBeforeCall(String name, String namespace, V1Service body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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 replaceNamespacedServiceStatus(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedServiceStatus(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedServiceStatus(Async)"); } return replaceNamespacedServiceStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } private ApiResponse replaceNamespacedServiceStatusWithHttpInfo(String name, String namespace, V1Service body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedServiceStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call replaceNamespacedServiceStatusAsync(String name, String namespace, V1Service body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedServiceStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreplaceNamespacedServiceStatusRequest { private final String name; private final String namespace; private final V1Service body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private APIreplaceNamespacedServiceStatusRequest(String name, String namespace, V1Service body) { this.name = name; this.namespace = namespace; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNamespacedServiceStatusRequest */ public APIreplaceNamespacedServiceStatusRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNamespacedServiceStatusRequest */ public APIreplaceNamespacedServiceStatusRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNamespacedServiceStatusRequest */ public APIreplaceNamespacedServiceStatusRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNamespacedServiceStatusRequest */ public APIreplaceNamespacedServiceStatusRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Build call for replaceNamespacedServiceStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return replaceNamespacedServiceStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** * Execute replaceNamespacedServiceStatus request * @return V1Service * @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 -
201 Created -
401 Unauthorized -
*/ public V1Service execute() throws ApiException { ApiResponse localVarResp = replaceNamespacedServiceStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * Execute replaceNamespacedServiceStatus request with HTTP info returned * @return ApiResponse<V1Service> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return replaceNamespacedServiceStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); } /** * Execute replaceNamespacedServiceStatus request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return replaceNamespacedServiceStatusAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * * replace status of the specified Service * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @return APIreplaceNamespacedServiceStatusRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIreplaceNamespacedServiceStatusRequest replaceNamespacedServiceStatus(String name, String namespace, V1Service body) { return new APIreplaceNamespacedServiceStatusRequest(name, namespace, body); } private okhttp3.Call replaceNodeCall(String name, V1Node body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/nodes/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNodeValidateBeforeCall(String name, V1Node body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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 replaceNode(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling replaceNode(Async)"); } return replaceNodeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } private ApiResponse replaceNodeWithHttpInfo(String name, V1Node body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNodeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call replaceNodeAsync(String name, V1Node body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNodeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreplaceNodeRequest { private final String name; private final V1Node body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private APIreplaceNodeRequest(String name, V1Node body) { this.name = name; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNodeRequest */ public APIreplaceNodeRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNodeRequest */ public APIreplaceNodeRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNodeRequest */ public APIreplaceNodeRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNodeRequest */ public APIreplaceNodeRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Build call for replaceNode * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return replaceNodeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** * Execute replaceNode request * @return V1Node * @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 -
201 Created -
401 Unauthorized -
*/ public V1Node execute() throws ApiException { ApiResponse localVarResp = replaceNodeWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * Execute replaceNode request with HTTP info returned * @return ApiResponse<V1Node> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return replaceNodeWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); } /** * Execute replaceNode request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return replaceNodeAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * * replace the specified Node * @param name name of the Node (required) * @param body (required) * @return APIreplaceNodeRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIreplaceNodeRequest replaceNode(String name, V1Node body) { return new APIreplaceNodeRequest(name, body); } private okhttp3.Call replaceNodeStatusCall(String name, V1Node body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/nodes/{name}/status" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNodeStatusValidateBeforeCall(String name, V1Node body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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 replaceNodeStatus(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling replaceNodeStatus(Async)"); } return replaceNodeStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } private ApiResponse replaceNodeStatusWithHttpInfo(String name, V1Node body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceNodeStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call replaceNodeStatusAsync(String name, V1Node body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNodeStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreplaceNodeStatusRequest { private final String name; private final V1Node body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private APIreplaceNodeStatusRequest(String name, V1Node body) { this.name = name; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceNodeStatusRequest */ public APIreplaceNodeStatusRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceNodeStatusRequest */ public APIreplaceNodeStatusRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceNodeStatusRequest */ public APIreplaceNodeStatusRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceNodeStatusRequest */ public APIreplaceNodeStatusRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Build call for replaceNodeStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return replaceNodeStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** * Execute replaceNodeStatus request * @return V1Node * @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 -
201 Created -
401 Unauthorized -
*/ public V1Node execute() throws ApiException { ApiResponse localVarResp = replaceNodeStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * Execute replaceNodeStatus request with HTTP info returned * @return ApiResponse<V1Node> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return replaceNodeStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); } /** * Execute replaceNodeStatus request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return replaceNodeStatusAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * * replace status of the specified Node * @param name name of the Node (required) * @param body (required) * @return APIreplaceNodeStatusRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIreplaceNodeStatusRequest replaceNodeStatus(String name, V1Node body) { return new APIreplaceNodeStatusRequest(name, body); } private okhttp3.Call replacePersistentVolumeCall(String name, V1PersistentVolume body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/persistentvolumes/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replacePersistentVolumeValidateBeforeCall(String name, V1PersistentVolume body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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 replacePersistentVolume(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling replacePersistentVolume(Async)"); } return replacePersistentVolumeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } private ApiResponse replacePersistentVolumeWithHttpInfo(String name, V1PersistentVolume body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replacePersistentVolumeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call replacePersistentVolumeAsync(String name, V1PersistentVolume body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replacePersistentVolumeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreplacePersistentVolumeRequest { private final String name; private final V1PersistentVolume body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private APIreplacePersistentVolumeRequest(String name, V1PersistentVolume body) { this.name = name; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplacePersistentVolumeRequest */ public APIreplacePersistentVolumeRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplacePersistentVolumeRequest */ public APIreplacePersistentVolumeRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplacePersistentVolumeRequest */ public APIreplacePersistentVolumeRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplacePersistentVolumeRequest */ public APIreplacePersistentVolumeRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Build call for replacePersistentVolume * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return replacePersistentVolumeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** * Execute replacePersistentVolume request * @return V1PersistentVolume * @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 -
201 Created -
401 Unauthorized -
*/ public V1PersistentVolume execute() throws ApiException { ApiResponse localVarResp = replacePersistentVolumeWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * Execute replacePersistentVolume request with HTTP info returned * @return ApiResponse<V1PersistentVolume> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return replacePersistentVolumeWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); } /** * Execute replacePersistentVolume request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return replacePersistentVolumeAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * * replace the specified PersistentVolume * @param name name of the PersistentVolume (required) * @param body (required) * @return APIreplacePersistentVolumeRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIreplacePersistentVolumeRequest replacePersistentVolume(String name, V1PersistentVolume body) { return new APIreplacePersistentVolumeRequest(name, body); } private okhttp3.Call replacePersistentVolumeStatusCall(String name, V1PersistentVolume body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/persistentvolumes/{name}/status" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } if (fieldManager != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "BearerToken" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replacePersistentVolumeStatusValidateBeforeCall(String name, V1PersistentVolume body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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 replacePersistentVolumeStatus(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling replacePersistentVolumeStatus(Async)"); } return replacePersistentVolumeStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } private ApiResponse replacePersistentVolumeStatusWithHttpInfo(String name, V1PersistentVolume body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replacePersistentVolumeStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call replacePersistentVolumeStatusAsync(String name, V1PersistentVolume body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replacePersistentVolumeStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIreplacePersistentVolumeStatusRequest { private final String name; private final V1PersistentVolume body; private String pretty; private String dryRun; private String fieldManager; private String fieldValidation; private APIreplacePersistentVolumeStatusRequest(String name, V1PersistentVolume body) { this.name = name; this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplacePersistentVolumeStatusRequest */ public APIreplacePersistentVolumeStatusRequest pretty(String pretty) { this.pretty = pretty; return this; } /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplacePersistentVolumeStatusRequest */ public APIreplacePersistentVolumeStatusRequest dryRun(String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplacePersistentVolumeStatusRequest */ public APIreplacePersistentVolumeStatusRequest fieldManager(String fieldManager) { this.fieldManager = fieldManager; return this; } /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplacePersistentVolumeStatusRequest */ public APIreplacePersistentVolumeStatusRequest fieldValidation(String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** * Build call for replacePersistentVolumeStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return replacePersistentVolumeStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** * Execute replacePersistentVolumeStatus request * @return V1PersistentVolume * @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 -
201 Created -
401 Unauthorized -
*/ public V1PersistentVolume execute() throws ApiException { ApiResponse localVarResp = replacePersistentVolumeStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * Execute replacePersistentVolumeStatus request with HTTP info returned * @return ApiResponse<V1PersistentVolume> * @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 -
201 Created -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return replacePersistentVolumeStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); } /** * Execute replacePersistentVolumeStatus request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return replacePersistentVolumeStatusAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * * replace status of the specified PersistentVolume * @param name name of the PersistentVolume (required) * @param body (required) * @return APIreplacePersistentVolumeStatusRequest * @http.response.details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public APIreplacePersistentVolumeStatusRequest replacePersistentVolumeStatus(String name, V1PersistentVolume body) { return new APIreplacePersistentVolumeStatusRequest(name, body); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy