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

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

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

import com.google.gson.reflect.TypeToken;
import io.kubernetes.client.custom.V1Patch;
import io.kubernetes.client.openapi.ApiCallback;
import io.kubernetes.client.openapi.ApiClient;
import io.kubernetes.client.openapi.ApiException;
import io.kubernetes.client.openapi.ApiResponse;
import io.kubernetes.client.openapi.Configuration;
import io.kubernetes.client.openapi.Pair;
import io.kubernetes.client.openapi.models.V1APIResourceList;
import io.kubernetes.client.openapi.models.V1ControllerRevision;
import io.kubernetes.client.openapi.models.V1ControllerRevisionList;
import io.kubernetes.client.openapi.models.V1DaemonSet;
import io.kubernetes.client.openapi.models.V1DaemonSetList;
import io.kubernetes.client.openapi.models.V1DeleteOptions;
import io.kubernetes.client.openapi.models.V1Deployment;
import io.kubernetes.client.openapi.models.V1DeploymentList;
import io.kubernetes.client.openapi.models.V1ReplicaSet;
import io.kubernetes.client.openapi.models.V1ReplicaSetList;
import io.kubernetes.client.openapi.models.V1Scale;
import io.kubernetes.client.openapi.models.V1StatefulSet;
import io.kubernetes.client.openapi.models.V1StatefulSetList;
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 AppsV1Api {
  private ApiClient localVarApiClient;

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

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

  public ApiClient getApiClient() {
    return localVarApiClient;
  }

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

  /**
   * Build call for createNamespacedControllerRevision
   *
   * @param namespace object name and auth scope, such as for teams and projects (required)
   * @param body (required)
   * @param pretty If 'true', then the output is pretty printed. (optional)
   * @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)
   * @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)
   * @param _callback Callback for upload/download progress
   * @return Call to execute
   * @throws ApiException If fail to serialize the request body object
   * @http.response.details
   *     
   * 
   * 
   * 
   * 
   * 
   * 
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call createNamespacedControllerRevisionCall( String namespace, V1ControllerRevision body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/controllerrevisions" .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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)); } 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedControllerRevisionValidateBeforeCall( String namespace, V1ControllerRevision body, String pretty, String dryRun, String fieldManager, 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 createNamespacedControllerRevision(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException( "Missing the required parameter 'body' when calling createNamespacedControllerRevision(Async)"); } okhttp3.Call localVarCall = createNamespacedControllerRevisionCall( namespace, body, pretty, dryRun, fieldManager, _callback); return localVarCall; } /** * create a ControllerRevision * * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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 V1ControllerRevision * @throws ApiException If fail 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 V1ControllerRevision createNamespacedControllerRevision( String namespace, V1ControllerRevision body, String pretty, String dryRun, String fieldManager) throws ApiException { ApiResponse localVarResp = createNamespacedControllerRevisionWithHttpInfo( namespace, body, pretty, dryRun, fieldManager); return localVarResp.getData(); } /** * create a ControllerRevision * * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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 ApiResponse<V1ControllerRevision> * @throws ApiException If fail 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 createNamespacedControllerRevisionWithHttpInfo( String namespace, V1ControllerRevision body, String pretty, String dryRun, String fieldManager) throws ApiException { okhttp3.Call localVarCall = createNamespacedControllerRevisionValidateBeforeCall( namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) create a ControllerRevision * * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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 createNamespacedControllerRevisionAsync( String namespace, V1ControllerRevision body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedControllerRevisionValidateBeforeCall( namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for createNamespacedDaemonSet * * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * * * *
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call createNamespacedDaemonSetCall( String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/daemonsets" .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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)); } 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedDaemonSetValidateBeforeCall( String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, 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 createNamespacedDaemonSet(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException( "Missing the required parameter 'body' when calling createNamespacedDaemonSet(Async)"); } okhttp3.Call localVarCall = createNamespacedDaemonSetCall(namespace, body, pretty, dryRun, fieldManager, _callback); return localVarCall; } /** * create a DaemonSet * * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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 V1DaemonSet * @throws ApiException If fail 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 V1DaemonSet createNamespacedDaemonSet( String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager) throws ApiException { ApiResponse localVarResp = createNamespacedDaemonSetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); return localVarResp.getData(); } /** * create a DaemonSet * * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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 ApiResponse<V1DaemonSet> * @throws ApiException If fail 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 createNamespacedDaemonSetWithHttpInfo( String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager) throws ApiException { okhttp3.Call localVarCall = createNamespacedDaemonSetValidateBeforeCall( namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) create a DaemonSet * * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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 createNamespacedDaemonSetAsync( String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedDaemonSetValidateBeforeCall( namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for createNamespacedDeployment * * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * * * *
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call createNamespacedDeploymentCall( String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/deployments" .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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)); } 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedDeploymentValidateBeforeCall( String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, 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 createNamespacedDeployment(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException( "Missing the required parameter 'body' when calling createNamespacedDeployment(Async)"); } okhttp3.Call localVarCall = createNamespacedDeploymentCall(namespace, body, pretty, dryRun, fieldManager, _callback); return localVarCall; } /** * create a Deployment * * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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 V1Deployment * @throws ApiException If fail 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 V1Deployment createNamespacedDeployment( String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager) throws ApiException { ApiResponse localVarResp = createNamespacedDeploymentWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); return localVarResp.getData(); } /** * create a Deployment * * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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 ApiResponse<V1Deployment> * @throws ApiException If fail 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 createNamespacedDeploymentWithHttpInfo( String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager) throws ApiException { okhttp3.Call localVarCall = createNamespacedDeploymentValidateBeforeCall( namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) create a Deployment * * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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 createNamespacedDeploymentAsync( String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedDeploymentValidateBeforeCall( namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for createNamespacedReplicaSet * * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * * * *
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call createNamespacedReplicaSetCall( String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/replicasets" .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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)); } 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedReplicaSetValidateBeforeCall( String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, 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 createNamespacedReplicaSet(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException( "Missing the required parameter 'body' when calling createNamespacedReplicaSet(Async)"); } okhttp3.Call localVarCall = createNamespacedReplicaSetCall(namespace, body, pretty, dryRun, fieldManager, _callback); return localVarCall; } /** * create a ReplicaSet * * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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 V1ReplicaSet * @throws ApiException If fail 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 V1ReplicaSet createNamespacedReplicaSet( String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager) throws ApiException { ApiResponse localVarResp = createNamespacedReplicaSetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); return localVarResp.getData(); } /** * create a ReplicaSet * * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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 ApiResponse<V1ReplicaSet> * @throws ApiException If fail 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 createNamespacedReplicaSetWithHttpInfo( String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager) throws ApiException { okhttp3.Call localVarCall = createNamespacedReplicaSetValidateBeforeCall( namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) create a ReplicaSet * * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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 createNamespacedReplicaSetAsync( String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedReplicaSetValidateBeforeCall( namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for createNamespacedStatefulSet * * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * * * *
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call createNamespacedStatefulSetCall( String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/statefulsets" .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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)); } 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedStatefulSetValidateBeforeCall( String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, 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 createNamespacedStatefulSet(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException( "Missing the required parameter 'body' when calling createNamespacedStatefulSet(Async)"); } okhttp3.Call localVarCall = createNamespacedStatefulSetCall(namespace, body, pretty, dryRun, fieldManager, _callback); return localVarCall; } /** * create a StatefulSet * * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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 V1StatefulSet * @throws ApiException If fail 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 V1StatefulSet createNamespacedStatefulSet( String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager) throws ApiException { ApiResponse localVarResp = createNamespacedStatefulSetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); return localVarResp.getData(); } /** * create a StatefulSet * * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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 ApiResponse<V1StatefulSet> * @throws ApiException If fail 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 createNamespacedStatefulSetWithHttpInfo( String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager) throws ApiException { okhttp3.Call localVarCall = createNamespacedStatefulSetValidateBeforeCall( namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) create a StatefulSet * * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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 createNamespacedStatefulSetAsync( String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedStatefulSetValidateBeforeCall( namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for deleteCollectionNamespacedControllerRevision * * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @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) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @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) * @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) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @param body (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call deleteCollectionNamespacedControllerRevisionCall( String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/controllerrevisions" .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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 (timeoutSeconds != null) { localVarQueryParams.addAll( localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedControllerRevisionValidateBeforeCall( String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, 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 deleteCollectionNamespacedControllerRevision(Async)"); } okhttp3.Call localVarCall = deleteCollectionNamespacedControllerRevisionCall( namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _callback); return localVarCall; } /** * delete collection of ControllerRevision * * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @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) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @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) * @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) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @param body (optional) * @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 deleteCollectionNamespacedControllerRevision( String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { ApiResponse localVarResp = deleteCollectionNamespacedControllerRevisionWithHttpInfo( namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body); return localVarResp.getData(); } /** * delete collection of ControllerRevision * * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @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) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @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) * @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) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @param body (optional) * @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 deleteCollectionNamespacedControllerRevisionWithHttpInfo( String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedControllerRevisionValidateBeforeCall( namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) delete collection of ControllerRevision * * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @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) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @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) * @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) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @param body (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call deleteCollectionNamespacedControllerRevisionAsync( String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedControllerRevisionValidateBeforeCall( namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for deleteCollectionNamespacedDaemonSet * * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @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) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @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) * @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) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @param body (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call deleteCollectionNamespacedDaemonSetCall( String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/daemonsets" .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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 (timeoutSeconds != null) { localVarQueryParams.addAll( localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedDaemonSetValidateBeforeCall( String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, 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 deleteCollectionNamespacedDaemonSet(Async)"); } okhttp3.Call localVarCall = deleteCollectionNamespacedDaemonSetCall( namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _callback); return localVarCall; } /** * delete collection of DaemonSet * * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @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) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @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) * @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) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @param body (optional) * @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 deleteCollectionNamespacedDaemonSet( String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { ApiResponse localVarResp = deleteCollectionNamespacedDaemonSetWithHttpInfo( namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body); return localVarResp.getData(); } /** * delete collection of DaemonSet * * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @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) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @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) * @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) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @param body (optional) * @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 deleteCollectionNamespacedDaemonSetWithHttpInfo( String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedDaemonSetValidateBeforeCall( namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) delete collection of DaemonSet * * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @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) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @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) * @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) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @param body (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call deleteCollectionNamespacedDaemonSetAsync( String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedDaemonSetValidateBeforeCall( namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for deleteCollectionNamespacedDeployment * * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @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) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @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) * @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) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @param body (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call deleteCollectionNamespacedDeploymentCall( String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/deployments" .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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 (timeoutSeconds != null) { localVarQueryParams.addAll( localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedDeploymentValidateBeforeCall( String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, 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 deleteCollectionNamespacedDeployment(Async)"); } okhttp3.Call localVarCall = deleteCollectionNamespacedDeploymentCall( namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _callback); return localVarCall; } /** * delete collection of Deployment * * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @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) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @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) * @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) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @param body (optional) * @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 deleteCollectionNamespacedDeployment( String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { ApiResponse localVarResp = deleteCollectionNamespacedDeploymentWithHttpInfo( namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body); return localVarResp.getData(); } /** * delete collection of Deployment * * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @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) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @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) * @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) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @param body (optional) * @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 deleteCollectionNamespacedDeploymentWithHttpInfo( String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedDeploymentValidateBeforeCall( namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) delete collection of Deployment * * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @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) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @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) * @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) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @param body (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call deleteCollectionNamespacedDeploymentAsync( String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedDeploymentValidateBeforeCall( namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for deleteCollectionNamespacedReplicaSet * * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @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) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @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) * @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) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @param body (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call deleteCollectionNamespacedReplicaSetCall( String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/replicasets" .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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 (timeoutSeconds != null) { localVarQueryParams.addAll( localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedReplicaSetValidateBeforeCall( String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, 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 deleteCollectionNamespacedReplicaSet(Async)"); } okhttp3.Call localVarCall = deleteCollectionNamespacedReplicaSetCall( namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _callback); return localVarCall; } /** * delete collection of ReplicaSet * * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @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) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @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) * @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) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @param body (optional) * @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 deleteCollectionNamespacedReplicaSet( String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { ApiResponse localVarResp = deleteCollectionNamespacedReplicaSetWithHttpInfo( namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body); return localVarResp.getData(); } /** * delete collection of ReplicaSet * * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @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) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @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) * @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) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @param body (optional) * @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 deleteCollectionNamespacedReplicaSetWithHttpInfo( String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedReplicaSetValidateBeforeCall( namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) delete collection of ReplicaSet * * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @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) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @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) * @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) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @param body (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call deleteCollectionNamespacedReplicaSetAsync( String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedReplicaSetValidateBeforeCall( namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for deleteCollectionNamespacedStatefulSet * * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @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) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @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) * @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) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @param body (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call deleteCollectionNamespacedStatefulSetCall( String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/statefulsets" .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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 (timeoutSeconds != null) { localVarQueryParams.addAll( localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedStatefulSetValidateBeforeCall( String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, 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 deleteCollectionNamespacedStatefulSet(Async)"); } okhttp3.Call localVarCall = deleteCollectionNamespacedStatefulSetCall( namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _callback); return localVarCall; } /** * delete collection of StatefulSet * * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @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) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @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) * @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) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @param body (optional) * @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 deleteCollectionNamespacedStatefulSet( String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { ApiResponse localVarResp = deleteCollectionNamespacedStatefulSetWithHttpInfo( namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body); return localVarResp.getData(); } /** * delete collection of StatefulSet * * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @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) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @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) * @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) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @param body (optional) * @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 deleteCollectionNamespacedStatefulSetWithHttpInfo( String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedStatefulSetValidateBeforeCall( namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) delete collection of StatefulSet * * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @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) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @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) * @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) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @param body (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call deleteCollectionNamespacedStatefulSetAsync( String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionNamespacedStatefulSetValidateBeforeCall( namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for deleteNamespacedControllerRevision * * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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) * @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) * @param body (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * * *
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call deleteNamespacedControllerRevisionCall( String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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)); } 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedControllerRevisionValidateBeforeCall( 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 deleteNamespacedControllerRevision(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling deleteNamespacedControllerRevision(Async)"); } okhttp3.Call localVarCall = deleteNamespacedControllerRevisionCall( name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } /** * delete a ControllerRevision * * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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) * @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) * @param body (optional) * @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 deleteNamespacedControllerRevision( String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { ApiResponse localVarResp = deleteNamespacedControllerRevisionWithHttpInfo( name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** * delete a ControllerRevision * * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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) * @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) * @param body (optional) * @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 deleteNamespacedControllerRevisionWithHttpInfo( String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedControllerRevisionValidateBeforeCall( name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) delete a ControllerRevision * * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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) * @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) * @param body (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details * * * * * *
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call deleteNamespacedControllerRevisionAsync( String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedControllerRevisionValidateBeforeCall( name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for deleteNamespacedDaemonSet * * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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) * @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) * @param body (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * * *
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call deleteNamespacedDaemonSetCall( String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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)); } 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedDaemonSetValidateBeforeCall( 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 deleteNamespacedDaemonSet(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling deleteNamespacedDaemonSet(Async)"); } okhttp3.Call localVarCall = deleteNamespacedDaemonSetCall( name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } /** * delete a DaemonSet * * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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) * @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) * @param body (optional) * @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 deleteNamespacedDaemonSet( String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { ApiResponse localVarResp = deleteNamespacedDaemonSetWithHttpInfo( name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** * delete a DaemonSet * * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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) * @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) * @param body (optional) * @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 deleteNamespacedDaemonSetWithHttpInfo( String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedDaemonSetValidateBeforeCall( name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) delete a DaemonSet * * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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) * @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) * @param body (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details * * * * * *
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call deleteNamespacedDaemonSetAsync( String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedDaemonSetValidateBeforeCall( name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for deleteNamespacedDeployment * * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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) * @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) * @param body (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * * *
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call deleteNamespacedDeploymentCall( String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/deployments/{name}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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)); } 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedDeploymentValidateBeforeCall( 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 deleteNamespacedDeployment(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling deleteNamespacedDeployment(Async)"); } okhttp3.Call localVarCall = deleteNamespacedDeploymentCall( name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } /** * delete a Deployment * * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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) * @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) * @param body (optional) * @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 deleteNamespacedDeployment( String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { ApiResponse localVarResp = deleteNamespacedDeploymentWithHttpInfo( name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** * delete a Deployment * * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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) * @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) * @param body (optional) * @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 deleteNamespacedDeploymentWithHttpInfo( String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedDeploymentValidateBeforeCall( name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) delete a Deployment * * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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) * @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) * @param body (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details * * * * * *
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call deleteNamespacedDeploymentAsync( String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedDeploymentValidateBeforeCall( name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for deleteNamespacedReplicaSet * * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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) * @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) * @param body (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * * *
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call deleteNamespacedReplicaSetCall( String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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)); } 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedReplicaSetValidateBeforeCall( 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 deleteNamespacedReplicaSet(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling deleteNamespacedReplicaSet(Async)"); } okhttp3.Call localVarCall = deleteNamespacedReplicaSetCall( name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } /** * delete a ReplicaSet * * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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) * @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) * @param body (optional) * @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 deleteNamespacedReplicaSet( String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { ApiResponse localVarResp = deleteNamespacedReplicaSetWithHttpInfo( name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** * delete a ReplicaSet * * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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) * @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) * @param body (optional) * @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 deleteNamespacedReplicaSetWithHttpInfo( String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedReplicaSetValidateBeforeCall( name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) delete a ReplicaSet * * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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) * @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) * @param body (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details * * * * * *
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call deleteNamespacedReplicaSetAsync( String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedReplicaSetValidateBeforeCall( name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for deleteNamespacedStatefulSet * * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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) * @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) * @param body (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * * *
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call deleteNamespacedStatefulSetCall( String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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)); } 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedStatefulSetValidateBeforeCall( 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 deleteNamespacedStatefulSet(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling deleteNamespacedStatefulSet(Async)"); } okhttp3.Call localVarCall = deleteNamespacedStatefulSetCall( name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } /** * delete a StatefulSet * * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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) * @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) * @param body (optional) * @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 deleteNamespacedStatefulSet( String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { ApiResponse localVarResp = deleteNamespacedStatefulSetWithHttpInfo( name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** * delete a StatefulSet * * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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) * @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) * @param body (optional) * @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 deleteNamespacedStatefulSetWithHttpInfo( String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedStatefulSetValidateBeforeCall( name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) delete a StatefulSet * * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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) * @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) * @param body (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details * * * * * *
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ public okhttp3.Call deleteNamespacedStatefulSetAsync( String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedStatefulSetValidateBeforeCall( name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getAPIResources * * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/apps/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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAPIResourcesCall(_callback); return localVarCall; } /** * get available resources * * @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 getAPIResources() throws ApiException { ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); return localVarResp.getData(); } /** * get available resources * * @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 getAPIResourcesWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) get available resources * * @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 getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for listControllerRevisionForAllNamespaces * * @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. If the feature gate * WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, * update, and remove notifications. Specify resourceVersion. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call listControllerRevisionForAllNamespacesCall( Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/apps/v1/controllerrevisions"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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 (timeoutSeconds != null) { localVarQueryParams.addAll( localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } if (watch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listControllerRevisionForAllNamespacesValidateBeforeCall( Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listControllerRevisionForAllNamespacesCall( allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _callback); return localVarCall; } /** * list or watch objects of kind ControllerRevision * * @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. If the feature gate * WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @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 V1ControllerRevisionList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1ControllerRevisionList listControllerRevisionForAllNamespaces( Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch) throws ApiException { ApiResponse localVarResp = listControllerRevisionForAllNamespacesWithHttpInfo( allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch); return localVarResp.getData(); } /** * list or watch objects of kind ControllerRevision * * @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. If the feature gate * WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @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 ApiResponse<V1ControllerRevisionList> * @throws ApiException If fail to call the 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 listControllerRevisionForAllNamespacesWithHttpInfo( Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch) throws ApiException { okhttp3.Call localVarCall = listControllerRevisionForAllNamespacesValidateBeforeCall( allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) list or watch objects of kind ControllerRevision * * @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. If the feature gate * WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, * update, and remove notifications. Specify resourceVersion. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call listControllerRevisionForAllNamespacesAsync( Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listControllerRevisionForAllNamespacesValidateBeforeCall( allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for listDaemonSetForAllNamespaces * * @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. If the feature gate * WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, * update, and remove notifications. Specify resourceVersion. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call listDaemonSetForAllNamespacesCall( Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/apps/v1/daemonsets"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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 (timeoutSeconds != null) { localVarQueryParams.addAll( localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } if (watch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listDaemonSetForAllNamespacesValidateBeforeCall( Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listDaemonSetForAllNamespacesCall( allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _callback); return localVarCall; } /** * list or watch objects of kind DaemonSet * * @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. If the feature gate * WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @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 V1DaemonSetList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1DaemonSetList listDaemonSetForAllNamespaces( Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch) throws ApiException { ApiResponse localVarResp = listDaemonSetForAllNamespacesWithHttpInfo( allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch); return localVarResp.getData(); } /** * list or watch objects of kind DaemonSet * * @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. If the feature gate * WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @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 ApiResponse<V1DaemonSetList> * @throws ApiException If fail to call the 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 listDaemonSetForAllNamespacesWithHttpInfo( Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch) throws ApiException { okhttp3.Call localVarCall = listDaemonSetForAllNamespacesValidateBeforeCall( allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) list or watch objects of kind DaemonSet * * @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. If the feature gate * WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, * update, and remove notifications. Specify resourceVersion. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call listDaemonSetForAllNamespacesAsync( Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listDaemonSetForAllNamespacesValidateBeforeCall( allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for listDeploymentForAllNamespaces * * @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. If the feature gate * WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, * update, and remove notifications. Specify resourceVersion. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call listDeploymentForAllNamespacesCall( Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/apps/v1/deployments"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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 (timeoutSeconds != null) { localVarQueryParams.addAll( localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } if (watch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listDeploymentForAllNamespacesValidateBeforeCall( Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listDeploymentForAllNamespacesCall( allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _callback); return localVarCall; } /** * list or watch objects of kind Deployment * * @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. If the feature gate * WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @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 V1DeploymentList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1DeploymentList listDeploymentForAllNamespaces( Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch) throws ApiException { ApiResponse localVarResp = listDeploymentForAllNamespacesWithHttpInfo( allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch); return localVarResp.getData(); } /** * list or watch objects of kind Deployment * * @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. If the feature gate * WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @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 ApiResponse<V1DeploymentList> * @throws ApiException If fail to call the 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 listDeploymentForAllNamespacesWithHttpInfo( Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch) throws ApiException { okhttp3.Call localVarCall = listDeploymentForAllNamespacesValidateBeforeCall( allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) list or watch objects of kind Deployment * * @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. If the feature gate * WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, * update, and remove notifications. Specify resourceVersion. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call listDeploymentForAllNamespacesAsync( Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listDeploymentForAllNamespacesValidateBeforeCall( allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for listNamespacedControllerRevision * * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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. If the feature gate * WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, * update, and remove notifications. Specify resourceVersion. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call listNamespacedControllerRevisionCall( String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/controllerrevisions" .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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 (timeoutSeconds != null) { localVarQueryParams.addAll( localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } if (watch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedControllerRevisionValidateBeforeCall( String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, 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 listNamespacedControllerRevision(Async)"); } okhttp3.Call localVarCall = listNamespacedControllerRevisionCall( namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _callback); return localVarCall; } /** * list or watch objects of kind ControllerRevision * * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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. If the feature gate * WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @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 V1ControllerRevisionList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1ControllerRevisionList listNamespacedControllerRevision( String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch) throws ApiException { ApiResponse localVarResp = listNamespacedControllerRevisionWithHttpInfo( namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch); return localVarResp.getData(); } /** * list or watch objects of kind ControllerRevision * * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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. If the feature gate * WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @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 ApiResponse<V1ControllerRevisionList> * @throws ApiException If fail to call the 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 listNamespacedControllerRevisionWithHttpInfo( String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedControllerRevisionValidateBeforeCall( namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) list or watch objects of kind ControllerRevision * * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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. If the feature gate * WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, * update, and remove notifications. Specify resourceVersion. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call listNamespacedControllerRevisionAsync( String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedControllerRevisionValidateBeforeCall( namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for listNamespacedDaemonSet * * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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. If the feature gate * WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, * update, and remove notifications. Specify resourceVersion. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call listNamespacedDaemonSetCall( String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/daemonsets" .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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 (timeoutSeconds != null) { localVarQueryParams.addAll( localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } if (watch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedDaemonSetValidateBeforeCall( String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, 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 listNamespacedDaemonSet(Async)"); } okhttp3.Call localVarCall = listNamespacedDaemonSetCall( namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _callback); return localVarCall; } /** * list or watch objects of kind DaemonSet * * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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. If the feature gate * WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @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 V1DaemonSetList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1DaemonSetList listNamespacedDaemonSet( String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch) throws ApiException { ApiResponse localVarResp = listNamespacedDaemonSetWithHttpInfo( namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch); return localVarResp.getData(); } /** * list or watch objects of kind DaemonSet * * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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. If the feature gate * WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @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 ApiResponse<V1DaemonSetList> * @throws ApiException If fail to call the 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 listNamespacedDaemonSetWithHttpInfo( String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedDaemonSetValidateBeforeCall( namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) list or watch objects of kind DaemonSet * * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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. If the feature gate * WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, * update, and remove notifications. Specify resourceVersion. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call listNamespacedDaemonSetAsync( String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedDaemonSetValidateBeforeCall( namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for listNamespacedDeployment * * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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. If the feature gate * WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, * update, and remove notifications. Specify resourceVersion. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call listNamespacedDeploymentCall( String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/deployments" .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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 (timeoutSeconds != null) { localVarQueryParams.addAll( localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } if (watch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedDeploymentValidateBeforeCall( String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, 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 listNamespacedDeployment(Async)"); } okhttp3.Call localVarCall = listNamespacedDeploymentCall( namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _callback); return localVarCall; } /** * list or watch objects of kind Deployment * * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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. If the feature gate * WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @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 V1DeploymentList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1DeploymentList listNamespacedDeployment( String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch) throws ApiException { ApiResponse localVarResp = listNamespacedDeploymentWithHttpInfo( namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch); return localVarResp.getData(); } /** * list or watch objects of kind Deployment * * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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. If the feature gate * WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @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 ApiResponse<V1DeploymentList> * @throws ApiException If fail to call the 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 listNamespacedDeploymentWithHttpInfo( String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedDeploymentValidateBeforeCall( namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) list or watch objects of kind Deployment * * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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. If the feature gate * WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, * update, and remove notifications. Specify resourceVersion. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call listNamespacedDeploymentAsync( String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedDeploymentValidateBeforeCall( namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for listNamespacedReplicaSet * * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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. If the feature gate * WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, * update, and remove notifications. Specify resourceVersion. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call listNamespacedReplicaSetCall( String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/replicasets" .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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 (timeoutSeconds != null) { localVarQueryParams.addAll( localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } if (watch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedReplicaSetValidateBeforeCall( String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, 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 listNamespacedReplicaSet(Async)"); } okhttp3.Call localVarCall = listNamespacedReplicaSetCall( namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _callback); return localVarCall; } /** * list or watch objects of kind ReplicaSet * * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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. If the feature gate * WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @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 V1ReplicaSetList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1ReplicaSetList listNamespacedReplicaSet( String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch) throws ApiException { ApiResponse localVarResp = listNamespacedReplicaSetWithHttpInfo( namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch); return localVarResp.getData(); } /** * list or watch objects of kind ReplicaSet * * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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. If the feature gate * WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @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 ApiResponse<V1ReplicaSetList> * @throws ApiException If fail to call the 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 listNamespacedReplicaSetWithHttpInfo( String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedReplicaSetValidateBeforeCall( namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) list or watch objects of kind ReplicaSet * * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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. If the feature gate * WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, * update, and remove notifications. Specify resourceVersion. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call listNamespacedReplicaSetAsync( String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedReplicaSetValidateBeforeCall( namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for listNamespacedStatefulSet * * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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. If the feature gate * WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, * update, and remove notifications. Specify resourceVersion. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call listNamespacedStatefulSetCall( String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/statefulsets" .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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 (timeoutSeconds != null) { localVarQueryParams.addAll( localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } if (watch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedStatefulSetValidateBeforeCall( String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, 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 listNamespacedStatefulSet(Async)"); } okhttp3.Call localVarCall = listNamespacedStatefulSetCall( namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _callback); return localVarCall; } /** * list or watch objects of kind StatefulSet * * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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. If the feature gate * WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @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 V1StatefulSetList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1StatefulSetList listNamespacedStatefulSet( String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch) throws ApiException { ApiResponse localVarResp = listNamespacedStatefulSetWithHttpInfo( namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch); return localVarResp.getData(); } /** * list or watch objects of kind StatefulSet * * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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. If the feature gate * WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @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 ApiResponse<V1StatefulSetList> * @throws ApiException If fail to call the 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 listNamespacedStatefulSetWithHttpInfo( String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedStatefulSetValidateBeforeCall( namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) list or watch objects of kind StatefulSet * * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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. If the feature gate * WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, * update, and remove notifications. Specify resourceVersion. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call listNamespacedStatefulSetAsync( String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedStatefulSetValidateBeforeCall( namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for listReplicaSetForAllNamespaces * * @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. If the feature gate * WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, * update, and remove notifications. Specify resourceVersion. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call listReplicaSetForAllNamespacesCall( Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/apps/v1/replicasets"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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 (timeoutSeconds != null) { localVarQueryParams.addAll( localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } if (watch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listReplicaSetForAllNamespacesValidateBeforeCall( Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listReplicaSetForAllNamespacesCall( allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _callback); return localVarCall; } /** * list or watch objects of kind ReplicaSet * * @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. If the feature gate * WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @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 V1ReplicaSetList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1ReplicaSetList listReplicaSetForAllNamespaces( Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch) throws ApiException { ApiResponse localVarResp = listReplicaSetForAllNamespacesWithHttpInfo( allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch); return localVarResp.getData(); } /** * list or watch objects of kind ReplicaSet * * @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. If the feature gate * WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @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 ApiResponse<V1ReplicaSetList> * @throws ApiException If fail to call the 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 listReplicaSetForAllNamespacesWithHttpInfo( Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch) throws ApiException { okhttp3.Call localVarCall = listReplicaSetForAllNamespacesValidateBeforeCall( allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) list or watch objects of kind ReplicaSet * * @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. If the feature gate * WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, * update, and remove notifications. Specify resourceVersion. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call listReplicaSetForAllNamespacesAsync( Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listReplicaSetForAllNamespacesValidateBeforeCall( allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for listStatefulSetForAllNamespaces * * @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. If the feature gate * WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, * update, and remove notifications. Specify resourceVersion. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call listStatefulSetForAllNamespacesCall( Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/apps/v1/statefulsets"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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 (timeoutSeconds != null) { localVarQueryParams.addAll( localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } if (watch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listStatefulSetForAllNamespacesValidateBeforeCall( Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listStatefulSetForAllNamespacesCall( allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _callback); return localVarCall; } /** * list or watch objects of kind StatefulSet * * @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. If the feature gate * WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @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 V1StatefulSetList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1StatefulSetList listStatefulSetForAllNamespaces( Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch) throws ApiException { ApiResponse localVarResp = listStatefulSetForAllNamespacesWithHttpInfo( allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch); return localVarResp.getData(); } /** * list or watch objects of kind StatefulSet * * @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. If the feature gate * WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @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 ApiResponse<V1StatefulSetList> * @throws ApiException If fail to call the 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 listStatefulSetForAllNamespacesWithHttpInfo( Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch) throws ApiException { okhttp3.Call localVarCall = listStatefulSetForAllNamespacesValidateBeforeCall( allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) list or watch objects of kind StatefulSet * * @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. If the feature gate * WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) * @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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. * Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. * Defaults to everything. (optional) * @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) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, * regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, * update, and remove notifications. Specify resourceVersion. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call listStatefulSetForAllNamespacesAsync( Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listStatefulSetForAllNamespacesValidateBeforeCall( allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for patchNamespacedControllerRevision * * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call patchNamespacedControllerRevisionCall( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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 (force != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } 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 = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedControllerRevisionValidateBeforeCall( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, 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 patchNamespacedControllerRevision(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling patchNamespacedControllerRevision(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException( "Missing the required parameter 'body' when calling patchNamespacedControllerRevision(Async)"); } okhttp3.Call localVarCall = patchNamespacedControllerRevisionCall( name, namespace, body, pretty, dryRun, fieldManager, force, _callback); return localVarCall; } /** * partially update the specified ControllerRevision * * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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 V1ControllerRevision * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1ControllerRevision patchNamespacedControllerRevision( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { ApiResponse localVarResp = patchNamespacedControllerRevisionWithHttpInfo( name, namespace, body, pretty, dryRun, fieldManager, force); return localVarResp.getData(); } /** * partially update the specified ControllerRevision * * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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 ApiResponse<V1ControllerRevision> * @throws ApiException If fail to call the 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 patchNamespacedControllerRevisionWithHttpInfo( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedControllerRevisionValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) partially update the specified ControllerRevision * * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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) * @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 patchNamespacedControllerRevisionAsync( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedControllerRevisionValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for patchNamespacedDaemonSet * * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call patchNamespacedDaemonSetCall( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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 (force != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } 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 = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedDaemonSetValidateBeforeCall( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, 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 patchNamespacedDaemonSet(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling patchNamespacedDaemonSet(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException( "Missing the required parameter 'body' when calling patchNamespacedDaemonSet(Async)"); } okhttp3.Call localVarCall = patchNamespacedDaemonSetCall( name, namespace, body, pretty, dryRun, fieldManager, force, _callback); return localVarCall; } /** * partially update the specified DaemonSet * * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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 V1DaemonSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1DaemonSet patchNamespacedDaemonSet( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { ApiResponse localVarResp = patchNamespacedDaemonSetWithHttpInfo( name, namespace, body, pretty, dryRun, fieldManager, force); return localVarResp.getData(); } /** * partially update the specified DaemonSet * * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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 ApiResponse<V1DaemonSet> * @throws ApiException If fail to call the 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 patchNamespacedDaemonSetWithHttpInfo( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedDaemonSetValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) partially update the specified DaemonSet * * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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) * @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 patchNamespacedDaemonSetAsync( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedDaemonSetValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for patchNamespacedDaemonSetStatus * * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call patchNamespacedDaemonSetStatusCall( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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 (force != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } 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 = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedDaemonSetStatusValidateBeforeCall( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, 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 patchNamespacedDaemonSetStatus(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling patchNamespacedDaemonSetStatus(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException( "Missing the required parameter 'body' when calling patchNamespacedDaemonSetStatus(Async)"); } okhttp3.Call localVarCall = patchNamespacedDaemonSetStatusCall( name, namespace, body, pretty, dryRun, fieldManager, force, _callback); return localVarCall; } /** * partially update status of the specified DaemonSet * * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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 V1DaemonSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1DaemonSet patchNamespacedDaemonSetStatus( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { ApiResponse localVarResp = patchNamespacedDaemonSetStatusWithHttpInfo( name, namespace, body, pretty, dryRun, fieldManager, force); return localVarResp.getData(); } /** * partially update status of the specified DaemonSet * * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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 ApiResponse<V1DaemonSet> * @throws ApiException If fail to call the 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 patchNamespacedDaemonSetStatusWithHttpInfo( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedDaemonSetStatusValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) partially update status of the specified DaemonSet * * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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) * @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 patchNamespacedDaemonSetStatusAsync( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedDaemonSetStatusValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for patchNamespacedDeployment * * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call patchNamespacedDeploymentCall( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/deployments/{name}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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 (force != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } 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 = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedDeploymentValidateBeforeCall( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, 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 patchNamespacedDeployment(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling patchNamespacedDeployment(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException( "Missing the required parameter 'body' when calling patchNamespacedDeployment(Async)"); } okhttp3.Call localVarCall = patchNamespacedDeploymentCall( name, namespace, body, pretty, dryRun, fieldManager, force, _callback); return localVarCall; } /** * partially update the specified Deployment * * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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 V1Deployment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Deployment patchNamespacedDeployment( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { ApiResponse localVarResp = patchNamespacedDeploymentWithHttpInfo( name, namespace, body, pretty, dryRun, fieldManager, force); return localVarResp.getData(); } /** * partially update the specified Deployment * * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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 ApiResponse<V1Deployment> * @throws ApiException If fail to call the 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 patchNamespacedDeploymentWithHttpInfo( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedDeploymentValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) partially update the specified Deployment * * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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) * @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 patchNamespacedDeploymentAsync( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedDeploymentValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for patchNamespacedDeploymentScale * * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call patchNamespacedDeploymentScaleCall( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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 (force != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } 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 = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedDeploymentScaleValidateBeforeCall( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, 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 patchNamespacedDeploymentScale(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling patchNamespacedDeploymentScale(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException( "Missing the required parameter 'body' when calling patchNamespacedDeploymentScale(Async)"); } okhttp3.Call localVarCall = patchNamespacedDeploymentScaleCall( name, namespace, body, pretty, dryRun, fieldManager, force, _callback); return localVarCall; } /** * partially update scale of the specified Deployment * * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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 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 patchNamespacedDeploymentScale( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { ApiResponse localVarResp = patchNamespacedDeploymentScaleWithHttpInfo( name, namespace, body, pretty, dryRun, fieldManager, force); return localVarResp.getData(); } /** * partially update scale of the specified Deployment * * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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 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 patchNamespacedDeploymentScaleWithHttpInfo( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedDeploymentScaleValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) partially update scale of the specified Deployment * * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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) * @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 patchNamespacedDeploymentScaleAsync( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedDeploymentScaleValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for patchNamespacedDeploymentStatus * * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call patchNamespacedDeploymentStatusCall( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/deployments/{name}/status" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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 (force != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } 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 = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedDeploymentStatusValidateBeforeCall( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, 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 patchNamespacedDeploymentStatus(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling patchNamespacedDeploymentStatus(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException( "Missing the required parameter 'body' when calling patchNamespacedDeploymentStatus(Async)"); } okhttp3.Call localVarCall = patchNamespacedDeploymentStatusCall( name, namespace, body, pretty, dryRun, fieldManager, force, _callback); return localVarCall; } /** * partially update status of the specified Deployment * * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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 V1Deployment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Deployment patchNamespacedDeploymentStatus( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { ApiResponse localVarResp = patchNamespacedDeploymentStatusWithHttpInfo( name, namespace, body, pretty, dryRun, fieldManager, force); return localVarResp.getData(); } /** * partially update status of the specified Deployment * * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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 ApiResponse<V1Deployment> * @throws ApiException If fail to call the 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 patchNamespacedDeploymentStatusWithHttpInfo( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedDeploymentStatusValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) partially update status of the specified Deployment * * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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) * @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 patchNamespacedDeploymentStatusAsync( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedDeploymentStatusValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for patchNamespacedReplicaSet * * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call patchNamespacedReplicaSetCall( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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 (force != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } 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 = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedReplicaSetValidateBeforeCall( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, 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 patchNamespacedReplicaSet(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling patchNamespacedReplicaSet(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException( "Missing the required parameter 'body' when calling patchNamespacedReplicaSet(Async)"); } okhttp3.Call localVarCall = patchNamespacedReplicaSetCall( name, namespace, body, pretty, dryRun, fieldManager, force, _callback); return localVarCall; } /** * partially update the specified ReplicaSet * * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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 V1ReplicaSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1ReplicaSet patchNamespacedReplicaSet( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { ApiResponse localVarResp = patchNamespacedReplicaSetWithHttpInfo( name, namespace, body, pretty, dryRun, fieldManager, force); return localVarResp.getData(); } /** * partially update the specified ReplicaSet * * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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 ApiResponse<V1ReplicaSet> * @throws ApiException If fail to call the 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 patchNamespacedReplicaSetWithHttpInfo( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedReplicaSetValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) partially update the specified ReplicaSet * * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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) * @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 patchNamespacedReplicaSetAsync( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedReplicaSetValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for patchNamespacedReplicaSetScale * * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call patchNamespacedReplicaSetScaleCall( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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 (force != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } 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 = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedReplicaSetScaleValidateBeforeCall( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, 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 patchNamespacedReplicaSetScale(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling patchNamespacedReplicaSetScale(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException( "Missing the required parameter 'body' when calling patchNamespacedReplicaSetScale(Async)"); } okhttp3.Call localVarCall = patchNamespacedReplicaSetScaleCall( name, namespace, body, pretty, dryRun, fieldManager, force, _callback); return localVarCall; } /** * partially update scale of the specified ReplicaSet * * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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 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 patchNamespacedReplicaSetScale( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { ApiResponse localVarResp = patchNamespacedReplicaSetScaleWithHttpInfo( name, namespace, body, pretty, dryRun, fieldManager, force); return localVarResp.getData(); } /** * partially update scale of the specified ReplicaSet * * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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 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 patchNamespacedReplicaSetScaleWithHttpInfo( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedReplicaSetScaleValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) partially update scale of the specified ReplicaSet * * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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) * @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 patchNamespacedReplicaSetScaleAsync( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedReplicaSetScaleValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for patchNamespacedReplicaSetStatus * * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call patchNamespacedReplicaSetStatusCall( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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 (force != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } 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 = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedReplicaSetStatusValidateBeforeCall( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, 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 patchNamespacedReplicaSetStatus(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling patchNamespacedReplicaSetStatus(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException( "Missing the required parameter 'body' when calling patchNamespacedReplicaSetStatus(Async)"); } okhttp3.Call localVarCall = patchNamespacedReplicaSetStatusCall( name, namespace, body, pretty, dryRun, fieldManager, force, _callback); return localVarCall; } /** * partially update status of the specified ReplicaSet * * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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 V1ReplicaSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1ReplicaSet patchNamespacedReplicaSetStatus( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { ApiResponse localVarResp = patchNamespacedReplicaSetStatusWithHttpInfo( name, namespace, body, pretty, dryRun, fieldManager, force); return localVarResp.getData(); } /** * partially update status of the specified ReplicaSet * * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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 ApiResponse<V1ReplicaSet> * @throws ApiException If fail to call the 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 patchNamespacedReplicaSetStatusWithHttpInfo( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedReplicaSetStatusValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) partially update status of the specified ReplicaSet * * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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) * @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 patchNamespacedReplicaSetStatusAsync( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedReplicaSetStatusValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for patchNamespacedStatefulSet * * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call patchNamespacedStatefulSetCall( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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 (force != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } 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 = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedStatefulSetValidateBeforeCall( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, 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 patchNamespacedStatefulSet(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling patchNamespacedStatefulSet(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException( "Missing the required parameter 'body' when calling patchNamespacedStatefulSet(Async)"); } okhttp3.Call localVarCall = patchNamespacedStatefulSetCall( name, namespace, body, pretty, dryRun, fieldManager, force, _callback); return localVarCall; } /** * partially update the specified StatefulSet * * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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 V1StatefulSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1StatefulSet patchNamespacedStatefulSet( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { ApiResponse localVarResp = patchNamespacedStatefulSetWithHttpInfo( name, namespace, body, pretty, dryRun, fieldManager, force); return localVarResp.getData(); } /** * partially update the specified StatefulSet * * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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 ApiResponse<V1StatefulSet> * @throws ApiException If fail to call the 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 patchNamespacedStatefulSetWithHttpInfo( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedStatefulSetValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) partially update the specified StatefulSet * * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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) * @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 patchNamespacedStatefulSetAsync( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedStatefulSetValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for patchNamespacedStatefulSetScale * * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call patchNamespacedStatefulSetScaleCall( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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 (force != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } 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 = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedStatefulSetScaleValidateBeforeCall( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, 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 patchNamespacedStatefulSetScale(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling patchNamespacedStatefulSetScale(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException( "Missing the required parameter 'body' when calling patchNamespacedStatefulSetScale(Async)"); } okhttp3.Call localVarCall = patchNamespacedStatefulSetScaleCall( name, namespace, body, pretty, dryRun, fieldManager, force, _callback); return localVarCall; } /** * partially update scale of the specified StatefulSet * * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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 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 patchNamespacedStatefulSetScale( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { ApiResponse localVarResp = patchNamespacedStatefulSetScaleWithHttpInfo( name, namespace, body, pretty, dryRun, fieldManager, force); return localVarResp.getData(); } /** * partially update scale of the specified StatefulSet * * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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 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 patchNamespacedStatefulSetScaleWithHttpInfo( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedStatefulSetScaleValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) partially update scale of the specified StatefulSet * * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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) * @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 patchNamespacedStatefulSetScaleAsync( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedStatefulSetScaleValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for patchNamespacedStatefulSetStatus * * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call patchNamespacedStatefulSetStatusCall( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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 (force != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } 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 = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedStatefulSetStatusValidateBeforeCall( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, 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 patchNamespacedStatefulSetStatus(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling patchNamespacedStatefulSetStatus(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException( "Missing the required parameter 'body' when calling patchNamespacedStatefulSetStatus(Async)"); } okhttp3.Call localVarCall = patchNamespacedStatefulSetStatusCall( name, namespace, body, pretty, dryRun, fieldManager, force, _callback); return localVarCall; } /** * partially update status of the specified StatefulSet * * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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 V1StatefulSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1StatefulSet patchNamespacedStatefulSetStatus( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { ApiResponse localVarResp = patchNamespacedStatefulSetStatusWithHttpInfo( name, namespace, body, pretty, dryRun, fieldManager, force); return localVarResp.getData(); } /** * partially update status of the specified StatefulSet * * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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 ApiResponse<V1StatefulSet> * @throws ApiException If fail to call the 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 patchNamespacedStatefulSetStatusWithHttpInfo( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedStatefulSetStatusValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) partially update status of the specified StatefulSet * * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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) * @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 patchNamespacedStatefulSetStatusAsync( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedStatefulSetStatusValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for readNamespacedControllerRevision * * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like * 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. * Deprecated. Planned for removal in 1.18. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call readNamespacedControllerRevisionCall( String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (exact != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); } if (export != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); } 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedControllerRevisionValidateBeforeCall( String name, String namespace, String pretty, Boolean exact, Boolean export, 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 readNamespacedControllerRevision(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling readNamespacedControllerRevision(Async)"); } okhttp3.Call localVarCall = readNamespacedControllerRevisionCall(name, namespace, pretty, exact, export, _callback); return localVarCall; } /** * read the specified ControllerRevision * * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like * 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. * Deprecated. Planned for removal in 1.18. (optional) * @return V1ControllerRevision * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1ControllerRevision readNamespacedControllerRevision( String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { ApiResponse localVarResp = readNamespacedControllerRevisionWithHttpInfo(name, namespace, pretty, exact, export); return localVarResp.getData(); } /** * read the specified ControllerRevision * * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like * 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. * Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1ControllerRevision> * @throws ApiException If fail to call the 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 readNamespacedControllerRevisionWithHttpInfo( String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { okhttp3.Call localVarCall = readNamespacedControllerRevisionValidateBeforeCall( name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) read the specified ControllerRevision * * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like * 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. * Deprecated. Planned for removal in 1.18. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call readNamespacedControllerRevisionAsync( String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedControllerRevisionValidateBeforeCall( name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for readNamespacedDaemonSet * * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like * 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. * Deprecated. Planned for removal in 1.18. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call readNamespacedDaemonSetCall( String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (exact != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); } if (export != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); } 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedDaemonSetValidateBeforeCall( String name, String namespace, String pretty, Boolean exact, Boolean export, 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 readNamespacedDaemonSet(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling readNamespacedDaemonSet(Async)"); } okhttp3.Call localVarCall = readNamespacedDaemonSetCall(name, namespace, pretty, exact, export, _callback); return localVarCall; } /** * read the specified DaemonSet * * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like * 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. * Deprecated. Planned for removal in 1.18. (optional) * @return V1DaemonSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1DaemonSet readNamespacedDaemonSet( String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { ApiResponse localVarResp = readNamespacedDaemonSetWithHttpInfo(name, namespace, pretty, exact, export); return localVarResp.getData(); } /** * read the specified DaemonSet * * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like * 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. * Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1DaemonSet> * @throws ApiException If fail to call the 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 readNamespacedDaemonSetWithHttpInfo( String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { okhttp3.Call localVarCall = readNamespacedDaemonSetValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) read the specified DaemonSet * * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like * 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. * Deprecated. Planned for removal in 1.18. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call readNamespacedDaemonSetAsync( String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedDaemonSetValidateBeforeCall( name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for readNamespacedDaemonSetStatus * * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call readNamespacedDaemonSetStatusCall( String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedDaemonSetStatusValidateBeforeCall( 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 readNamespacedDaemonSetStatus(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling readNamespacedDaemonSetStatus(Async)"); } okhttp3.Call localVarCall = readNamespacedDaemonSetStatusCall(name, namespace, pretty, _callback); return localVarCall; } /** * read status of the specified DaemonSet * * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1DaemonSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1DaemonSet readNamespacedDaemonSetStatus(String name, String namespace, String pretty) throws ApiException { ApiResponse localVarResp = readNamespacedDaemonSetStatusWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** * read status of the specified DaemonSet * * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1DaemonSet> * @throws ApiException If fail to call the 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 readNamespacedDaemonSetStatusWithHttpInfo( String name, String namespace, String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedDaemonSetStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) read status of the specified DaemonSet * * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call readNamespacedDaemonSetStatusAsync( String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedDaemonSetStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for readNamespacedDeployment * * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like * 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. * Deprecated. Planned for removal in 1.18. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call readNamespacedDeploymentCall( String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/deployments/{name}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (exact != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); } if (export != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); } 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedDeploymentValidateBeforeCall( String name, String namespace, String pretty, Boolean exact, Boolean export, 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 readNamespacedDeployment(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling readNamespacedDeployment(Async)"); } okhttp3.Call localVarCall = readNamespacedDeploymentCall(name, namespace, pretty, exact, export, _callback); return localVarCall; } /** * read the specified Deployment * * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like * 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. * Deprecated. Planned for removal in 1.18. (optional) * @return V1Deployment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Deployment readNamespacedDeployment( String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { ApiResponse localVarResp = readNamespacedDeploymentWithHttpInfo(name, namespace, pretty, exact, export); return localVarResp.getData(); } /** * read the specified Deployment * * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like * 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. * Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1Deployment> * @throws ApiException If fail to call the 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 readNamespacedDeploymentWithHttpInfo( String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { okhttp3.Call localVarCall = readNamespacedDeploymentValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) read the specified Deployment * * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like * 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. * Deprecated. Planned for removal in 1.18. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call readNamespacedDeploymentAsync( String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedDeploymentValidateBeforeCall( name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for readNamespacedDeploymentScale * * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call readNamespacedDeploymentScaleCall( String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedDeploymentScaleValidateBeforeCall( 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 readNamespacedDeploymentScale(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling readNamespacedDeploymentScale(Async)"); } okhttp3.Call localVarCall = readNamespacedDeploymentScaleCall(name, namespace, pretty, _callback); return localVarCall; } /** * read scale of the specified Deployment * * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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 readNamespacedDeploymentScale(String name, String namespace, String pretty) throws ApiException { ApiResponse localVarResp = readNamespacedDeploymentScaleWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** * read scale of the specified Deployment * * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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 readNamespacedDeploymentScaleWithHttpInfo( String name, String namespace, String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedDeploymentScaleValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) read scale of the specified Deployment * * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call readNamespacedDeploymentScaleAsync( String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedDeploymentScaleValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for readNamespacedDeploymentStatus * * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call readNamespacedDeploymentStatusCall( String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/deployments/{name}/status" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedDeploymentStatusValidateBeforeCall( 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 readNamespacedDeploymentStatus(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling readNamespacedDeploymentStatus(Async)"); } okhttp3.Call localVarCall = readNamespacedDeploymentStatusCall(name, namespace, pretty, _callback); return localVarCall; } /** * read status of the specified Deployment * * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1Deployment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Deployment readNamespacedDeploymentStatus(String name, String namespace, String pretty) throws ApiException { ApiResponse localVarResp = readNamespacedDeploymentStatusWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** * read status of the specified Deployment * * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1Deployment> * @throws ApiException If fail to call the 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 readNamespacedDeploymentStatusWithHttpInfo( String name, String namespace, String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedDeploymentStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) read status of the specified Deployment * * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call readNamespacedDeploymentStatusAsync( String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedDeploymentStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for readNamespacedReplicaSet * * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like * 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. * Deprecated. Planned for removal in 1.18. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call readNamespacedReplicaSetCall( String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (exact != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); } if (export != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); } 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedReplicaSetValidateBeforeCall( String name, String namespace, String pretty, Boolean exact, Boolean export, 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 readNamespacedReplicaSet(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling readNamespacedReplicaSet(Async)"); } okhttp3.Call localVarCall = readNamespacedReplicaSetCall(name, namespace, pretty, exact, export, _callback); return localVarCall; } /** * read the specified ReplicaSet * * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like * 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. * Deprecated. Planned for removal in 1.18. (optional) * @return V1ReplicaSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1ReplicaSet readNamespacedReplicaSet( String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { ApiResponse localVarResp = readNamespacedReplicaSetWithHttpInfo(name, namespace, pretty, exact, export); return localVarResp.getData(); } /** * read the specified ReplicaSet * * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like * 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. * Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1ReplicaSet> * @throws ApiException If fail to call the 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 readNamespacedReplicaSetWithHttpInfo( String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { okhttp3.Call localVarCall = readNamespacedReplicaSetValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) read the specified ReplicaSet * * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like * 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. * Deprecated. Planned for removal in 1.18. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call readNamespacedReplicaSetAsync( String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedReplicaSetValidateBeforeCall( name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for readNamespacedReplicaSetScale * * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call readNamespacedReplicaSetScaleCall( String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedReplicaSetScaleValidateBeforeCall( 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 readNamespacedReplicaSetScale(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling readNamespacedReplicaSetScale(Async)"); } okhttp3.Call localVarCall = readNamespacedReplicaSetScaleCall(name, namespace, pretty, _callback); return localVarCall; } /** * read scale of the specified ReplicaSet * * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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 readNamespacedReplicaSetScale(String name, String namespace, String pretty) throws ApiException { ApiResponse localVarResp = readNamespacedReplicaSetScaleWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** * read scale of the specified ReplicaSet * * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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 readNamespacedReplicaSetScaleWithHttpInfo( String name, String namespace, String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedReplicaSetScaleValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) read scale of the specified ReplicaSet * * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call readNamespacedReplicaSetScaleAsync( String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedReplicaSetScaleValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for readNamespacedReplicaSetStatus * * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call readNamespacedReplicaSetStatusCall( String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedReplicaSetStatusValidateBeforeCall( 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 readNamespacedReplicaSetStatus(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling readNamespacedReplicaSetStatus(Async)"); } okhttp3.Call localVarCall = readNamespacedReplicaSetStatusCall(name, namespace, pretty, _callback); return localVarCall; } /** * read status of the specified ReplicaSet * * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1ReplicaSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1ReplicaSet readNamespacedReplicaSetStatus(String name, String namespace, String pretty) throws ApiException { ApiResponse localVarResp = readNamespacedReplicaSetStatusWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** * read status of the specified ReplicaSet * * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1ReplicaSet> * @throws ApiException If fail to call the 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 readNamespacedReplicaSetStatusWithHttpInfo( String name, String namespace, String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedReplicaSetStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) read status of the specified ReplicaSet * * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call readNamespacedReplicaSetStatusAsync( String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedReplicaSetStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for readNamespacedStatefulSet * * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like * 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. * Deprecated. Planned for removal in 1.18. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call readNamespacedStatefulSetCall( String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } if (exact != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); } if (export != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); } 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedStatefulSetValidateBeforeCall( String name, String namespace, String pretty, Boolean exact, Boolean export, 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 readNamespacedStatefulSet(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling readNamespacedStatefulSet(Async)"); } okhttp3.Call localVarCall = readNamespacedStatefulSetCall(name, namespace, pretty, exact, export, _callback); return localVarCall; } /** * read the specified StatefulSet * * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like * 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. * Deprecated. Planned for removal in 1.18. (optional) * @return V1StatefulSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1StatefulSet readNamespacedStatefulSet( String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { ApiResponse localVarResp = readNamespacedStatefulSetWithHttpInfo(name, namespace, pretty, exact, export); return localVarResp.getData(); } /** * read the specified StatefulSet * * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like * 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. * Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1StatefulSet> * @throws ApiException If fail to call the 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 readNamespacedStatefulSetWithHttpInfo( String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { okhttp3.Call localVarCall = readNamespacedStatefulSetValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) read the specified StatefulSet * * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like * 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. * Deprecated. Planned for removal in 1.18. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call readNamespacedStatefulSetAsync( String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedStatefulSetValidateBeforeCall( name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for readNamespacedStatefulSetScale * * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call readNamespacedStatefulSetScaleCall( String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedStatefulSetScaleValidateBeforeCall( 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 readNamespacedStatefulSetScale(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling readNamespacedStatefulSetScale(Async)"); } okhttp3.Call localVarCall = readNamespacedStatefulSetScaleCall(name, namespace, pretty, _callback); return localVarCall; } /** * read scale of the specified StatefulSet * * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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 readNamespacedStatefulSetScale(String name, String namespace, String pretty) throws ApiException { ApiResponse localVarResp = readNamespacedStatefulSetScaleWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** * read scale of the specified StatefulSet * * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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 readNamespacedStatefulSetScaleWithHttpInfo( String name, String namespace, String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedStatefulSetScaleValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) read scale of the specified StatefulSet * * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call readNamespacedStatefulSetScaleAsync( String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedStatefulSetScaleValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for readNamespacedStatefulSetStatus * * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call readNamespacedStatefulSetStatusCall( String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedStatefulSetStatusValidateBeforeCall( 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 readNamespacedStatefulSetStatus(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling readNamespacedStatefulSetStatus(Async)"); } okhttp3.Call localVarCall = readNamespacedStatefulSetStatusCall(name, namespace, pretty, _callback); return localVarCall; } /** * read status of the specified StatefulSet * * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1StatefulSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1StatefulSet readNamespacedStatefulSetStatus(String name, String namespace, String pretty) throws ApiException { ApiResponse localVarResp = readNamespacedStatefulSetStatusWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** * read status of the specified StatefulSet * * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1StatefulSet> * @throws ApiException If fail to call the 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 readNamespacedStatefulSetStatusWithHttpInfo( String name, String namespace, String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedStatefulSetStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) read status of the specified StatefulSet * * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call readNamespacedStatefulSetStatusAsync( String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedStatefulSetStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for replaceNamespacedControllerRevision * * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * * *
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call replaceNamespacedControllerRevisionCall( String name, String namespace, V1ControllerRevision body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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)); } 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedControllerRevisionValidateBeforeCall( String name, String namespace, V1ControllerRevision body, String pretty, String dryRun, String fieldManager, 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 replaceNamespacedControllerRevision(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling replaceNamespacedControllerRevision(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException( "Missing the required parameter 'body' when calling replaceNamespacedControllerRevision(Async)"); } okhttp3.Call localVarCall = replaceNamespacedControllerRevisionCall( name, namespace, body, pretty, dryRun, fieldManager, _callback); return localVarCall; } /** * replace the specified ControllerRevision * * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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 V1ControllerRevision * @throws ApiException If fail 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 V1ControllerRevision replaceNamespacedControllerRevision( String name, String namespace, V1ControllerRevision body, String pretty, String dryRun, String fieldManager) throws ApiException { ApiResponse localVarResp = replaceNamespacedControllerRevisionWithHttpInfo( name, namespace, body, pretty, dryRun, fieldManager); return localVarResp.getData(); } /** * replace the specified ControllerRevision * * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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 ApiResponse<V1ControllerRevision> * @throws ApiException If fail 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 replaceNamespacedControllerRevisionWithHttpInfo( String name, String namespace, V1ControllerRevision body, String pretty, String dryRun, String fieldManager) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedControllerRevisionValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) replace the specified ControllerRevision * * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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 replaceNamespacedControllerRevisionAsync( String name, String namespace, V1ControllerRevision body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedControllerRevisionValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for replaceNamespacedDaemonSet * * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * * *
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call replaceNamespacedDaemonSetCall( String name, String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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)); } 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedDaemonSetValidateBeforeCall( String name, String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, 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 replaceNamespacedDaemonSet(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling replaceNamespacedDaemonSet(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException( "Missing the required parameter 'body' when calling replaceNamespacedDaemonSet(Async)"); } okhttp3.Call localVarCall = replaceNamespacedDaemonSetCall( name, namespace, body, pretty, dryRun, fieldManager, _callback); return localVarCall; } /** * replace the specified DaemonSet * * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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 V1DaemonSet * @throws ApiException If fail 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 V1DaemonSet replaceNamespacedDaemonSet( String name, String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager) throws ApiException { ApiResponse localVarResp = replaceNamespacedDaemonSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); return localVarResp.getData(); } /** * replace the specified DaemonSet * * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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 ApiResponse<V1DaemonSet> * @throws ApiException If fail 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 replaceNamespacedDaemonSetWithHttpInfo( String name, String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedDaemonSetValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) replace the specified DaemonSet * * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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 replaceNamespacedDaemonSetAsync( String name, String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedDaemonSetValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for replaceNamespacedDaemonSetStatus * * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * * *
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call replaceNamespacedDaemonSetStatusCall( String name, String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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)); } 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedDaemonSetStatusValidateBeforeCall( String name, String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, 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 replaceNamespacedDaemonSetStatus(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling replaceNamespacedDaemonSetStatus(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException( "Missing the required parameter 'body' when calling replaceNamespacedDaemonSetStatus(Async)"); } okhttp3.Call localVarCall = replaceNamespacedDaemonSetStatusCall( name, namespace, body, pretty, dryRun, fieldManager, _callback); return localVarCall; } /** * replace status of the specified DaemonSet * * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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 V1DaemonSet * @throws ApiException If fail 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 V1DaemonSet replaceNamespacedDaemonSetStatus( String name, String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager) throws ApiException { ApiResponse localVarResp = replaceNamespacedDaemonSetStatusWithHttpInfo( name, namespace, body, pretty, dryRun, fieldManager); return localVarResp.getData(); } /** * replace status of the specified DaemonSet * * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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 ApiResponse<V1DaemonSet> * @throws ApiException If fail 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 replaceNamespacedDaemonSetStatusWithHttpInfo( String name, String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedDaemonSetStatusValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) replace status of the specified DaemonSet * * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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 replaceNamespacedDaemonSetStatusAsync( String name, String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedDaemonSetStatusValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for replaceNamespacedDeployment * * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * * *
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call replaceNamespacedDeploymentCall( String name, String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/deployments/{name}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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)); } 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedDeploymentValidateBeforeCall( String name, String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, 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 replaceNamespacedDeployment(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling replaceNamespacedDeployment(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException( "Missing the required parameter 'body' when calling replaceNamespacedDeployment(Async)"); } okhttp3.Call localVarCall = replaceNamespacedDeploymentCall( name, namespace, body, pretty, dryRun, fieldManager, _callback); return localVarCall; } /** * replace the specified Deployment * * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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 V1Deployment * @throws ApiException If fail 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 V1Deployment replaceNamespacedDeployment( String name, String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager) throws ApiException { ApiResponse localVarResp = replaceNamespacedDeploymentWithHttpInfo( name, namespace, body, pretty, dryRun, fieldManager); return localVarResp.getData(); } /** * replace the specified Deployment * * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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 ApiResponse<V1Deployment> * @throws ApiException If fail 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 replaceNamespacedDeploymentWithHttpInfo( String name, String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedDeploymentValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) replace the specified Deployment * * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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 replaceNamespacedDeploymentAsync( String name, String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedDeploymentValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for replaceNamespacedDeploymentScale * * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * * *
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call replaceNamespacedDeploymentScaleCall( String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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)); } 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedDeploymentScaleValidateBeforeCall( String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, 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 replaceNamespacedDeploymentScale(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling replaceNamespacedDeploymentScale(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException( "Missing the required parameter 'body' when calling replaceNamespacedDeploymentScale(Async)"); } okhttp3.Call localVarCall = replaceNamespacedDeploymentScaleCall( name, namespace, body, pretty, dryRun, fieldManager, _callback); return localVarCall; } /** * replace scale of the specified Deployment * * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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 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 replaceNamespacedDeploymentScale( String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager) throws ApiException { ApiResponse localVarResp = replaceNamespacedDeploymentScaleWithHttpInfo( name, namespace, body, pretty, dryRun, fieldManager); return localVarResp.getData(); } /** * replace scale of the specified Deployment * * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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 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 replaceNamespacedDeploymentScaleWithHttpInfo( String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedDeploymentScaleValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) replace scale of the specified Deployment * * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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 replaceNamespacedDeploymentScaleAsync( String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedDeploymentScaleValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for replaceNamespacedDeploymentStatus * * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * * *
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call replaceNamespacedDeploymentStatusCall( String name, String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/deployments/{name}/status" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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)); } 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedDeploymentStatusValidateBeforeCall( String name, String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, 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 replaceNamespacedDeploymentStatus(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling replaceNamespacedDeploymentStatus(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException( "Missing the required parameter 'body' when calling replaceNamespacedDeploymentStatus(Async)"); } okhttp3.Call localVarCall = replaceNamespacedDeploymentStatusCall( name, namespace, body, pretty, dryRun, fieldManager, _callback); return localVarCall; } /** * replace status of the specified Deployment * * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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 V1Deployment * @throws ApiException If fail 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 V1Deployment replaceNamespacedDeploymentStatus( String name, String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager) throws ApiException { ApiResponse localVarResp = replaceNamespacedDeploymentStatusWithHttpInfo( name, namespace, body, pretty, dryRun, fieldManager); return localVarResp.getData(); } /** * replace status of the specified Deployment * * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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 ApiResponse<V1Deployment> * @throws ApiException If fail 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 replaceNamespacedDeploymentStatusWithHttpInfo( String name, String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedDeploymentStatusValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) replace status of the specified Deployment * * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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 replaceNamespacedDeploymentStatusAsync( String name, String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedDeploymentStatusValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for replaceNamespacedReplicaSet * * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * * *
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call replaceNamespacedReplicaSetCall( String name, String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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)); } 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedReplicaSetValidateBeforeCall( String name, String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, 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 replaceNamespacedReplicaSet(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling replaceNamespacedReplicaSet(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException( "Missing the required parameter 'body' when calling replaceNamespacedReplicaSet(Async)"); } okhttp3.Call localVarCall = replaceNamespacedReplicaSetCall( name, namespace, body, pretty, dryRun, fieldManager, _callback); return localVarCall; } /** * replace the specified ReplicaSet * * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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 V1ReplicaSet * @throws ApiException If fail 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 V1ReplicaSet replaceNamespacedReplicaSet( String name, String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager) throws ApiException { ApiResponse localVarResp = replaceNamespacedReplicaSetWithHttpInfo( name, namespace, body, pretty, dryRun, fieldManager); return localVarResp.getData(); } /** * replace the specified ReplicaSet * * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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 ApiResponse<V1ReplicaSet> * @throws ApiException If fail 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 replaceNamespacedReplicaSetWithHttpInfo( String name, String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedReplicaSetValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) replace the specified ReplicaSet * * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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 replaceNamespacedReplicaSetAsync( String name, String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedReplicaSetValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for replaceNamespacedReplicaSetScale * * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * * *
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call replaceNamespacedReplicaSetScaleCall( String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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)); } 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedReplicaSetScaleValidateBeforeCall( String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, 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 replaceNamespacedReplicaSetScale(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling replaceNamespacedReplicaSetScale(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException( "Missing the required parameter 'body' when calling replaceNamespacedReplicaSetScale(Async)"); } okhttp3.Call localVarCall = replaceNamespacedReplicaSetScaleCall( name, namespace, body, pretty, dryRun, fieldManager, _callback); return localVarCall; } /** * replace scale of the specified ReplicaSet * * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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 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 replaceNamespacedReplicaSetScale( String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager) throws ApiException { ApiResponse localVarResp = replaceNamespacedReplicaSetScaleWithHttpInfo( name, namespace, body, pretty, dryRun, fieldManager); return localVarResp.getData(); } /** * replace scale of the specified ReplicaSet * * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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 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 replaceNamespacedReplicaSetScaleWithHttpInfo( String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedReplicaSetScaleValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) replace scale of the specified ReplicaSet * * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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 replaceNamespacedReplicaSetScaleAsync( String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedReplicaSetScaleValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for replaceNamespacedReplicaSetStatus * * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * * *
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call replaceNamespacedReplicaSetStatusCall( String name, String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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)); } 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedReplicaSetStatusValidateBeforeCall( String name, String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, 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 replaceNamespacedReplicaSetStatus(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling replaceNamespacedReplicaSetStatus(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException( "Missing the required parameter 'body' when calling replaceNamespacedReplicaSetStatus(Async)"); } okhttp3.Call localVarCall = replaceNamespacedReplicaSetStatusCall( name, namespace, body, pretty, dryRun, fieldManager, _callback); return localVarCall; } /** * replace status of the specified ReplicaSet * * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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 V1ReplicaSet * @throws ApiException If fail 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 V1ReplicaSet replaceNamespacedReplicaSetStatus( String name, String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager) throws ApiException { ApiResponse localVarResp = replaceNamespacedReplicaSetStatusWithHttpInfo( name, namespace, body, pretty, dryRun, fieldManager); return localVarResp.getData(); } /** * replace status of the specified ReplicaSet * * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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 ApiResponse<V1ReplicaSet> * @throws ApiException If fail 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 replaceNamespacedReplicaSetStatusWithHttpInfo( String name, String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedReplicaSetStatusValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) replace status of the specified ReplicaSet * * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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 replaceNamespacedReplicaSetStatusAsync( String name, String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedReplicaSetStatusValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for replaceNamespacedStatefulSet * * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * * *
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call replaceNamespacedStatefulSetCall( String name, String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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)); } 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedStatefulSetValidateBeforeCall( String name, String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, 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 replaceNamespacedStatefulSet(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling replaceNamespacedStatefulSet(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException( "Missing the required parameter 'body' when calling replaceNamespacedStatefulSet(Async)"); } okhttp3.Call localVarCall = replaceNamespacedStatefulSetCall( name, namespace, body, pretty, dryRun, fieldManager, _callback); return localVarCall; } /** * replace the specified StatefulSet * * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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 V1StatefulSet * @throws ApiException If fail 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 V1StatefulSet replaceNamespacedStatefulSet( String name, String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager) throws ApiException { ApiResponse localVarResp = replaceNamespacedStatefulSetWithHttpInfo( name, namespace, body, pretty, dryRun, fieldManager); return localVarResp.getData(); } /** * replace the specified StatefulSet * * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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 ApiResponse<V1StatefulSet> * @throws ApiException If fail 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 replaceNamespacedStatefulSetWithHttpInfo( String name, String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedStatefulSetValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) replace the specified StatefulSet * * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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 replaceNamespacedStatefulSetAsync( String name, String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedStatefulSetValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for replaceNamespacedStatefulSetScale * * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * * *
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call replaceNamespacedStatefulSetScaleCall( String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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)); } 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedStatefulSetScaleValidateBeforeCall( String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, 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 replaceNamespacedStatefulSetScale(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling replaceNamespacedStatefulSetScale(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException( "Missing the required parameter 'body' when calling replaceNamespacedStatefulSetScale(Async)"); } okhttp3.Call localVarCall = replaceNamespacedStatefulSetScaleCall( name, namespace, body, pretty, dryRun, fieldManager, _callback); return localVarCall; } /** * replace scale of the specified StatefulSet * * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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 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 replaceNamespacedStatefulSetScale( String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager) throws ApiException { ApiResponse localVarResp = replaceNamespacedStatefulSetScaleWithHttpInfo( name, namespace, body, pretty, dryRun, fieldManager); return localVarResp.getData(); } /** * replace scale of the specified StatefulSet * * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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 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 replaceNamespacedStatefulSetScaleWithHttpInfo( String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedStatefulSetScaleValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) replace scale of the specified StatefulSet * * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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 replaceNamespacedStatefulSetScaleAsync( String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedStatefulSetScaleValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for replaceNamespacedStatefulSetStatus * * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * * * * *
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call replaceNamespacedStatefulSetStatusCall( String name, String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) .replaceAll( "\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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)); } 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] {"BearerToken"}; return localVarApiClient.buildCall( localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedStatefulSetStatusValidateBeforeCall( String name, String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, 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 replaceNamespacedStatefulSetStatus(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling replaceNamespacedStatefulSetStatus(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException( "Missing the required parameter 'body' when calling replaceNamespacedStatefulSetStatus(Async)"); } okhttp3.Call localVarCall = replaceNamespacedStatefulSetStatusCall( name, namespace, body, pretty, dryRun, fieldManager, _callback); return localVarCall; } /** * replace status of the specified StatefulSet * * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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 V1StatefulSet * @throws ApiException If fail 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 V1StatefulSet replaceNamespacedStatefulSetStatus( String name, String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager) throws ApiException { ApiResponse localVarResp = replaceNamespacedStatefulSetStatusWithHttpInfo( name, namespace, body, pretty, dryRun, fieldManager); return localVarResp.getData(); } /** * replace status of the specified StatefulSet * * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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 ApiResponse<V1StatefulSet> * @throws ApiException If fail 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 replaceNamespacedStatefulSetStatusWithHttpInfo( String name, String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedStatefulSetStatusValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) replace status of the specified StatefulSet * * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @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) * @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) * @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 replaceNamespacedStatefulSetStatusAsync( String name, String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedStatefulSetStatusValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy