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

io.kubernetes.client.openapi.apis.NetworkingV1Api 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.V1DeleteOptions;
import io.kubernetes.client.openapi.models.V1Ingress;
import io.kubernetes.client.openapi.models.V1IngressClass;
import io.kubernetes.client.openapi.models.V1IngressClassList;
import io.kubernetes.client.openapi.models.V1IngressList;
import io.kubernetes.client.openapi.models.V1NetworkPolicy;
import io.kubernetes.client.openapi.models.V1NetworkPolicyList;
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 NetworkingV1Api {
  private ApiClient localVarApiClient;

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

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

  public ApiClient getApiClient() {
    return localVarApiClient;
  }

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

  /**
   * Build call for createIngressClass
   *
   * @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 createIngressClassCall( V1IngressClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1/ingressclasses"; 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 createIngressClassValidateBeforeCall( V1IngressClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException( "Missing the required parameter 'body' when calling createIngressClass(Async)"); } okhttp3.Call localVarCall = createIngressClassCall(body, pretty, dryRun, fieldManager, _callback); return localVarCall; } /** * create an IngressClass * * @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 V1IngressClass * @throws ApiException If fail 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 V1IngressClass createIngressClass( V1IngressClass body, String pretty, String dryRun, String fieldManager) throws ApiException { ApiResponse localVarResp = createIngressClassWithHttpInfo(body, pretty, dryRun, fieldManager); return localVarResp.getData(); } /** * create an IngressClass * * @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<V1IngressClass> * @throws ApiException If fail 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 createIngressClassWithHttpInfo( V1IngressClass body, String pretty, String dryRun, String fieldManager) throws ApiException { okhttp3.Call localVarCall = createIngressClassValidateBeforeCall(body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) create an IngressClass * * @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 createIngressClassAsync( V1IngressClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createIngressClassValidateBeforeCall(body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for createNamespacedIngress * * @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 createNamespacedIngressCall( String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses" .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 createNamespacedIngressValidateBeforeCall( String namespace, V1Ingress 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 createNamespacedIngress(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException( "Missing the required parameter 'body' when calling createNamespacedIngress(Async)"); } okhttp3.Call localVarCall = createNamespacedIngressCall(namespace, body, pretty, dryRun, fieldManager, _callback); return localVarCall; } /** * create an Ingress * * @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 V1Ingress * @throws ApiException If fail 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 V1Ingress createNamespacedIngress( String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager) throws ApiException { ApiResponse localVarResp = createNamespacedIngressWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); return localVarResp.getData(); } /** * create an Ingress * * @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<V1Ingress> * @throws ApiException If fail 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 createNamespacedIngressWithHttpInfo( String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager) throws ApiException { okhttp3.Call localVarCall = createNamespacedIngressValidateBeforeCall( namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) create an Ingress * * @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 createNamespacedIngressAsync( String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedIngressValidateBeforeCall( namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for createNamespacedNetworkPolicy * * @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 createNamespacedNetworkPolicyCall( String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies" .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 createNamespacedNetworkPolicyValidateBeforeCall( String namespace, V1NetworkPolicy 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 createNamespacedNetworkPolicy(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException( "Missing the required parameter 'body' when calling createNamespacedNetworkPolicy(Async)"); } okhttp3.Call localVarCall = createNamespacedNetworkPolicyCall(namespace, body, pretty, dryRun, fieldManager, _callback); return localVarCall; } /** * create a NetworkPolicy * * @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 V1NetworkPolicy * @throws ApiException If fail 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 V1NetworkPolicy createNamespacedNetworkPolicy( String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager) throws ApiException { ApiResponse localVarResp = createNamespacedNetworkPolicyWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); return localVarResp.getData(); } /** * create a NetworkPolicy * * @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<V1NetworkPolicy> * @throws ApiException If fail 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 createNamespacedNetworkPolicyWithHttpInfo( String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager) throws ApiException { okhttp3.Call localVarCall = createNamespacedNetworkPolicyValidateBeforeCall( namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) create a NetworkPolicy * * @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 createNamespacedNetworkPolicyAsync( String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedNetworkPolicyValidateBeforeCall( namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for deleteCollectionIngressClass * * @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 deleteCollectionIngressClassCall( 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/networking.k8s.io/v1/ingressclasses"; 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 deleteCollectionIngressClassValidateBeforeCall( 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 = deleteCollectionIngressClassCall( pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _callback); return localVarCall; } /** * delete collection of IngressClass * * @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 deleteCollectionIngressClass( 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 = deleteCollectionIngressClassWithHttpInfo( pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body); return localVarResp.getData(); } /** * delete collection of IngressClass * * @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 deleteCollectionIngressClassWithHttpInfo( 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 = deleteCollectionIngressClassValidateBeforeCall( 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 IngressClass * * @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 deleteCollectionIngressClassAsync( 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 = deleteCollectionIngressClassValidateBeforeCall( 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 deleteCollectionNamespacedIngress * * @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 deleteCollectionNamespacedIngressCall( 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/networking.k8s.io/v1/namespaces/{namespace}/ingresses" .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 deleteCollectionNamespacedIngressValidateBeforeCall( 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 deleteCollectionNamespacedIngress(Async)"); } okhttp3.Call localVarCall = deleteCollectionNamespacedIngressCall( namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _callback); return localVarCall; } /** * delete collection of Ingress * * @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 deleteCollectionNamespacedIngress( 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 = deleteCollectionNamespacedIngressWithHttpInfo( namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body); return localVarResp.getData(); } /** * delete collection of Ingress * * @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 deleteCollectionNamespacedIngressWithHttpInfo( 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 = deleteCollectionNamespacedIngressValidateBeforeCall( 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 Ingress * * @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 deleteCollectionNamespacedIngressAsync( 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 = deleteCollectionNamespacedIngressValidateBeforeCall( 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 deleteCollectionNamespacedNetworkPolicy * * @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 deleteCollectionNamespacedNetworkPolicyCall( 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/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies" .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 deleteCollectionNamespacedNetworkPolicyValidateBeforeCall( 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 deleteCollectionNamespacedNetworkPolicy(Async)"); } okhttp3.Call localVarCall = deleteCollectionNamespacedNetworkPolicyCall( namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _callback); return localVarCall; } /** * delete collection of NetworkPolicy * * @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 deleteCollectionNamespacedNetworkPolicy( 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 = deleteCollectionNamespacedNetworkPolicyWithHttpInfo( namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body); return localVarResp.getData(); } /** * delete collection of NetworkPolicy * * @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 deleteCollectionNamespacedNetworkPolicyWithHttpInfo( 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 = deleteCollectionNamespacedNetworkPolicyValidateBeforeCall( 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 NetworkPolicy * * @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 deleteCollectionNamespacedNetworkPolicyAsync( 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 = deleteCollectionNamespacedNetworkPolicyValidateBeforeCall( 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 deleteIngressClass * * @param name name of the IngressClass (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 deleteIngressClassCall( String name, 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/networking.k8s.io/v1/ingressclasses/{name}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.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 deleteIngressClassValidateBeforeCall( String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException( "Missing the required parameter 'name' when calling deleteIngressClass(Async)"); } okhttp3.Call localVarCall = deleteIngressClassCall( name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } /** * delete an IngressClass * * @param name name of the IngressClass (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 deleteIngressClass( String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { ApiResponse localVarResp = deleteIngressClassWithHttpInfo( name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** * delete an IngressClass * * @param name name of the IngressClass (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 deleteIngressClassWithHttpInfo( String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteIngressClassValidateBeforeCall( name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) delete an IngressClass * * @param name name of the IngressClass (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 deleteIngressClassAsync( String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteIngressClassValidateBeforeCall( name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for deleteNamespacedIngress * * @param name name of the Ingress (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 deleteNamespacedIngressCall( 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/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{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 deleteNamespacedIngressValidateBeforeCall( 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 deleteNamespacedIngress(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling deleteNamespacedIngress(Async)"); } okhttp3.Call localVarCall = deleteNamespacedIngressCall( name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } /** * delete an Ingress * * @param name name of the Ingress (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 deleteNamespacedIngress( String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { ApiResponse localVarResp = deleteNamespacedIngressWithHttpInfo( name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** * delete an Ingress * * @param name name of the Ingress (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 deleteNamespacedIngressWithHttpInfo( String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedIngressValidateBeforeCall( name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) delete an Ingress * * @param name name of the Ingress (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 deleteNamespacedIngressAsync( String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedIngressValidateBeforeCall( name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for deleteNamespacedNetworkPolicy * * @param name name of the NetworkPolicy (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 deleteNamespacedNetworkPolicyCall( 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/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{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 deleteNamespacedNetworkPolicyValidateBeforeCall( 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 deleteNamespacedNetworkPolicy(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling deleteNamespacedNetworkPolicy(Async)"); } okhttp3.Call localVarCall = deleteNamespacedNetworkPolicyCall( name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } /** * delete a NetworkPolicy * * @param name name of the NetworkPolicy (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 deleteNamespacedNetworkPolicy( String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { ApiResponse localVarResp = deleteNamespacedNetworkPolicyWithHttpInfo( name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** * delete a NetworkPolicy * * @param name name of the NetworkPolicy (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 deleteNamespacedNetworkPolicyWithHttpInfo( String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedNetworkPolicyValidateBeforeCall( name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) delete a NetworkPolicy * * @param name name of the NetworkPolicy (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 deleteNamespacedNetworkPolicyAsync( String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNamespacedNetworkPolicyValidateBeforeCall( 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/networking.k8s.io/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 listIngressClass * * @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 listIngressClassCall( 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/networking.k8s.io/v1/ingressclasses"; 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 listIngressClassValidateBeforeCall( 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 = listIngressClassCall( pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _callback); return localVarCall; } /** * list or watch objects of kind IngressClass * * @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 V1IngressClassList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1IngressClassList listIngressClass( String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch) throws ApiException { ApiResponse localVarResp = listIngressClassWithHttpInfo( pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch); return localVarResp.getData(); } /** * list or watch objects of kind IngressClass * * @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<V1IngressClassList> * @throws ApiException If fail to call the 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 listIngressClassWithHttpInfo( 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 = listIngressClassValidateBeforeCall( 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 IngressClass * * @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 listIngressClassAsync( 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 = listIngressClassValidateBeforeCall( 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 listIngressForAllNamespaces * * @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 listIngressForAllNamespacesCall( 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/networking.k8s.io/v1/ingresses"; 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 listIngressForAllNamespacesValidateBeforeCall( 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 = listIngressForAllNamespacesCall( allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _callback); return localVarCall; } /** * list or watch objects of kind Ingress * * @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 V1IngressList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1IngressList listIngressForAllNamespaces( Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch) throws ApiException { ApiResponse localVarResp = listIngressForAllNamespacesWithHttpInfo( allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch); return localVarResp.getData(); } /** * list or watch objects of kind Ingress * * @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<V1IngressList> * @throws ApiException If fail to call the 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 listIngressForAllNamespacesWithHttpInfo( 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 = listIngressForAllNamespacesValidateBeforeCall( 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 Ingress * * @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 listIngressForAllNamespacesAsync( 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 = listIngressForAllNamespacesValidateBeforeCall( 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 listNamespacedIngress * * @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 listNamespacedIngressCall( 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/networking.k8s.io/v1/namespaces/{namespace}/ingresses" .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 listNamespacedIngressValidateBeforeCall( 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 listNamespacedIngress(Async)"); } okhttp3.Call localVarCall = listNamespacedIngressCall( namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _callback); return localVarCall; } /** * list or watch objects of kind Ingress * * @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 V1IngressList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1IngressList listNamespacedIngress( 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 = listNamespacedIngressWithHttpInfo( namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch); return localVarResp.getData(); } /** * list or watch objects of kind Ingress * * @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<V1IngressList> * @throws ApiException If fail to call the 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 listNamespacedIngressWithHttpInfo( 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 = listNamespacedIngressValidateBeforeCall( 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 Ingress * * @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 listNamespacedIngressAsync( 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 = listNamespacedIngressValidateBeforeCall( 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 listNamespacedNetworkPolicy * * @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 listNamespacedNetworkPolicyCall( 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/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies" .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 listNamespacedNetworkPolicyValidateBeforeCall( 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 listNamespacedNetworkPolicy(Async)"); } okhttp3.Call localVarCall = listNamespacedNetworkPolicyCall( namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _callback); return localVarCall; } /** * list or watch objects of kind NetworkPolicy * * @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 V1NetworkPolicyList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1NetworkPolicyList listNamespacedNetworkPolicy( 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 = listNamespacedNetworkPolicyWithHttpInfo( namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch); return localVarResp.getData(); } /** * list or watch objects of kind NetworkPolicy * * @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<V1NetworkPolicyList> * @throws ApiException If fail to call the 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 listNamespacedNetworkPolicyWithHttpInfo( 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 = listNamespacedNetworkPolicyValidateBeforeCall( 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 NetworkPolicy * * @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 listNamespacedNetworkPolicyAsync( 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 = listNamespacedNetworkPolicyValidateBeforeCall( 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 listNetworkPolicyForAllNamespaces * * @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 listNetworkPolicyForAllNamespacesCall( 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/networking.k8s.io/v1/networkpolicies"; 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 listNetworkPolicyForAllNamespacesValidateBeforeCall( 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 = listNetworkPolicyForAllNamespacesCall( allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _callback); return localVarCall; } /** * list or watch objects of kind NetworkPolicy * * @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 V1NetworkPolicyList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1NetworkPolicyList listNetworkPolicyForAllNamespaces( Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch) throws ApiException { ApiResponse localVarResp = listNetworkPolicyForAllNamespacesWithHttpInfo( allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch); return localVarResp.getData(); } /** * list or watch objects of kind NetworkPolicy * * @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<V1NetworkPolicyList> * @throws ApiException If fail to call the 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 listNetworkPolicyForAllNamespacesWithHttpInfo( 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 = listNetworkPolicyForAllNamespacesValidateBeforeCall( 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 NetworkPolicy * * @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 listNetworkPolicyForAllNamespacesAsync( 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 = listNetworkPolicyForAllNamespacesValidateBeforeCall( 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 patchIngressClass * * @param name name of the IngressClass (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 patchIngressClassCall( String name, 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/networking.k8s.io/v1/ingressclasses/{name}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.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 patchIngressClassValidateBeforeCall( String name, 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 patchIngressClass(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException( "Missing the required parameter 'body' when calling patchIngressClass(Async)"); } okhttp3.Call localVarCall = patchIngressClassCall(name, body, pretty, dryRun, fieldManager, force, _callback); return localVarCall; } /** * partially update the specified IngressClass * * @param name name of the IngressClass (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 V1IngressClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1IngressClass patchIngressClass( String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { ApiResponse localVarResp = patchIngressClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); return localVarResp.getData(); } /** * partially update the specified IngressClass * * @param name name of the IngressClass (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<V1IngressClass> * @throws ApiException If fail to call the 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 patchIngressClassWithHttpInfo( String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { okhttp3.Call localVarCall = patchIngressClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) partially update the specified IngressClass * * @param name name of the IngressClass (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 patchIngressClassAsync( String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchIngressClassValidateBeforeCall( name, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for patchNamespacedIngress * * @param name name of the Ingress (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 patchNamespacedIngressCall( 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/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{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 patchNamespacedIngressValidateBeforeCall( 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 patchNamespacedIngress(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling patchNamespacedIngress(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException( "Missing the required parameter 'body' when calling patchNamespacedIngress(Async)"); } okhttp3.Call localVarCall = patchNamespacedIngressCall( name, namespace, body, pretty, dryRun, fieldManager, force, _callback); return localVarCall; } /** * partially update the specified Ingress * * @param name name of the Ingress (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 V1Ingress * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Ingress patchNamespacedIngress( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { ApiResponse localVarResp = patchNamespacedIngressWithHttpInfo( name, namespace, body, pretty, dryRun, fieldManager, force); return localVarResp.getData(); } /** * partially update the specified Ingress * * @param name name of the Ingress (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<V1Ingress> * @throws ApiException If fail to call the 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 patchNamespacedIngressWithHttpInfo( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedIngressValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) partially update the specified Ingress * * @param name name of the Ingress (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 patchNamespacedIngressAsync( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedIngressValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for patchNamespacedIngressStatus * * @param name name of the Ingress (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 patchNamespacedIngressStatusCall( 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/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{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 patchNamespacedIngressStatusValidateBeforeCall( 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 patchNamespacedIngressStatus(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling patchNamespacedIngressStatus(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException( "Missing the required parameter 'body' when calling patchNamespacedIngressStatus(Async)"); } okhttp3.Call localVarCall = patchNamespacedIngressStatusCall( name, namespace, body, pretty, dryRun, fieldManager, force, _callback); return localVarCall; } /** * partially update status of the specified Ingress * * @param name name of the Ingress (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 V1Ingress * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Ingress patchNamespacedIngressStatus( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { ApiResponse localVarResp = patchNamespacedIngressStatusWithHttpInfo( name, namespace, body, pretty, dryRun, fieldManager, force); return localVarResp.getData(); } /** * partially update status of the specified Ingress * * @param name name of the Ingress (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<V1Ingress> * @throws ApiException If fail to call the 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 patchNamespacedIngressStatusWithHttpInfo( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedIngressStatusValidateBeforeCall( 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 Ingress * * @param name name of the Ingress (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 patchNamespacedIngressStatusAsync( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedIngressStatusValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for patchNamespacedNetworkPolicy * * @param name name of the NetworkPolicy (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 patchNamespacedNetworkPolicyCall( 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/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{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 patchNamespacedNetworkPolicyValidateBeforeCall( 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 patchNamespacedNetworkPolicy(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling patchNamespacedNetworkPolicy(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException( "Missing the required parameter 'body' when calling patchNamespacedNetworkPolicy(Async)"); } okhttp3.Call localVarCall = patchNamespacedNetworkPolicyCall( name, namespace, body, pretty, dryRun, fieldManager, force, _callback); return localVarCall; } /** * partially update the specified NetworkPolicy * * @param name name of the NetworkPolicy (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 V1NetworkPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1NetworkPolicy patchNamespacedNetworkPolicy( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { ApiResponse localVarResp = patchNamespacedNetworkPolicyWithHttpInfo( name, namespace, body, pretty, dryRun, fieldManager, force); return localVarResp.getData(); } /** * partially update the specified NetworkPolicy * * @param name name of the NetworkPolicy (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<V1NetworkPolicy> * @throws ApiException If fail to call the 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 patchNamespacedNetworkPolicyWithHttpInfo( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { okhttp3.Call localVarCall = patchNamespacedNetworkPolicyValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) partially update the specified NetworkPolicy * * @param name name of the NetworkPolicy (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 patchNamespacedNetworkPolicyAsync( String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchNamespacedNetworkPolicyValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for readIngressClass * * @param name name of the IngressClass (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 readIngressClassCall( String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1/ingressclasses/{name}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.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 readIngressClassValidateBeforeCall( String name, 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 readIngressClass(Async)"); } okhttp3.Call localVarCall = readIngressClassCall(name, pretty, exact, export, _callback); return localVarCall; } /** * read the specified IngressClass * * @param name name of the IngressClass (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 V1IngressClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1IngressClass readIngressClass(String name, String pretty, Boolean exact, Boolean export) throws ApiException { ApiResponse localVarResp = readIngressClassWithHttpInfo(name, pretty, exact, export); return localVarResp.getData(); } /** * read the specified IngressClass * * @param name name of the IngressClass (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<V1IngressClass> * @throws ApiException If fail to call the 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 readIngressClassWithHttpInfo( String name, String pretty, Boolean exact, Boolean export) throws ApiException { okhttp3.Call localVarCall = readIngressClassValidateBeforeCall(name, pretty, exact, export, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) read the specified IngressClass * * @param name name of the IngressClass (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 readIngressClassAsync( String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readIngressClassValidateBeforeCall(name, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for readNamespacedIngress * * @param name name of the Ingress (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 readNamespacedIngressCall( 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/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{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 readNamespacedIngressValidateBeforeCall( 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 readNamespacedIngress(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling readNamespacedIngress(Async)"); } okhttp3.Call localVarCall = readNamespacedIngressCall(name, namespace, pretty, exact, export, _callback); return localVarCall; } /** * read the specified Ingress * * @param name name of the Ingress (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 V1Ingress * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Ingress readNamespacedIngress( String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { ApiResponse localVarResp = readNamespacedIngressWithHttpInfo(name, namespace, pretty, exact, export); return localVarResp.getData(); } /** * read the specified Ingress * * @param name name of the Ingress (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<V1Ingress> * @throws ApiException If fail to call the 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 readNamespacedIngressWithHttpInfo( String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { okhttp3.Call localVarCall = readNamespacedIngressValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) read the specified Ingress * * @param name name of the Ingress (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 readNamespacedIngressAsync( String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedIngressValidateBeforeCall(name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for readNamespacedIngressStatus * * @param name name of the Ingress (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 readNamespacedIngressStatusCall( String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{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 readNamespacedIngressStatusValidateBeforeCall( 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 readNamespacedIngressStatus(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling readNamespacedIngressStatus(Async)"); } okhttp3.Call localVarCall = readNamespacedIngressStatusCall(name, namespace, pretty, _callback); return localVarCall; } /** * read status of the specified Ingress * * @param name name of the Ingress (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 V1Ingress * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Ingress readNamespacedIngressStatus(String name, String namespace, String pretty) throws ApiException { ApiResponse localVarResp = readNamespacedIngressStatusWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** * read status of the specified Ingress * * @param name name of the Ingress (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<V1Ingress> * @throws ApiException If fail to call the 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 readNamespacedIngressStatusWithHttpInfo( String name, String namespace, String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedIngressStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) read status of the specified Ingress * * @param name name of the Ingress (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 readNamespacedIngressStatusAsync( String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedIngressStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for readNamespacedNetworkPolicy * * @param name name of the NetworkPolicy (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 readNamespacedNetworkPolicyCall( 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/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{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 readNamespacedNetworkPolicyValidateBeforeCall( 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 readNamespacedNetworkPolicy(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling readNamespacedNetworkPolicy(Async)"); } okhttp3.Call localVarCall = readNamespacedNetworkPolicyCall(name, namespace, pretty, exact, export, _callback); return localVarCall; } /** * read the specified NetworkPolicy * * @param name name of the NetworkPolicy (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 V1NetworkPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * * * *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1NetworkPolicy readNamespacedNetworkPolicy( String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { ApiResponse localVarResp = readNamespacedNetworkPolicyWithHttpInfo(name, namespace, pretty, exact, export); return localVarResp.getData(); } /** * read the specified NetworkPolicy * * @param name name of the NetworkPolicy (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<V1NetworkPolicy> * @throws ApiException If fail to call the 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 readNamespacedNetworkPolicyWithHttpInfo( String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { okhttp3.Call localVarCall = readNamespacedNetworkPolicyValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) read the specified NetworkPolicy * * @param name name of the NetworkPolicy (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 readNamespacedNetworkPolicyAsync( String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedNetworkPolicyValidateBeforeCall( name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for replaceIngressClass * * @param name name of the IngressClass (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 replaceIngressClassCall( String name, V1IngressClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1/ingressclasses/{name}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.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 replaceIngressClassValidateBeforeCall( String name, V1IngressClass 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 replaceIngressClass(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException( "Missing the required parameter 'body' when calling replaceIngressClass(Async)"); } okhttp3.Call localVarCall = replaceIngressClassCall(name, body, pretty, dryRun, fieldManager, _callback); return localVarCall; } /** * replace the specified IngressClass * * @param name name of the IngressClass (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 V1IngressClass * @throws ApiException If fail 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 V1IngressClass replaceIngressClass( String name, V1IngressClass body, String pretty, String dryRun, String fieldManager) throws ApiException { ApiResponse localVarResp = replaceIngressClassWithHttpInfo(name, body, pretty, dryRun, fieldManager); return localVarResp.getData(); } /** * replace the specified IngressClass * * @param name name of the IngressClass (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<V1IngressClass> * @throws ApiException If fail 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 replaceIngressClassWithHttpInfo( String name, V1IngressClass body, String pretty, String dryRun, String fieldManager) throws ApiException { okhttp3.Call localVarCall = replaceIngressClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) replace the specified IngressClass * * @param name name of the IngressClass (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 replaceIngressClassAsync( String name, V1IngressClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceIngressClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for replaceNamespacedIngress * * @param name name of the Ingress (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 replaceNamespacedIngressCall( String name, String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{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 replaceNamespacedIngressValidateBeforeCall( String name, String namespace, V1Ingress 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 replaceNamespacedIngress(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling replaceNamespacedIngress(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException( "Missing the required parameter 'body' when calling replaceNamespacedIngress(Async)"); } okhttp3.Call localVarCall = replaceNamespacedIngressCall( name, namespace, body, pretty, dryRun, fieldManager, _callback); return localVarCall; } /** * replace the specified Ingress * * @param name name of the Ingress (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 V1Ingress * @throws ApiException If fail 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 V1Ingress replaceNamespacedIngress( String name, String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager) throws ApiException { ApiResponse localVarResp = replaceNamespacedIngressWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); return localVarResp.getData(); } /** * replace the specified Ingress * * @param name name of the Ingress (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<V1Ingress> * @throws ApiException If fail 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 replaceNamespacedIngressWithHttpInfo( String name, String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedIngressValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) replace the specified Ingress * * @param name name of the Ingress (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 replaceNamespacedIngressAsync( String name, String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedIngressValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for replaceNamespacedIngressStatus * * @param name name of the Ingress (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 replaceNamespacedIngressStatusCall( String name, String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{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 replaceNamespacedIngressStatusValidateBeforeCall( String name, String namespace, V1Ingress 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 replaceNamespacedIngressStatus(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling replaceNamespacedIngressStatus(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException( "Missing the required parameter 'body' when calling replaceNamespacedIngressStatus(Async)"); } okhttp3.Call localVarCall = replaceNamespacedIngressStatusCall( name, namespace, body, pretty, dryRun, fieldManager, _callback); return localVarCall; } /** * replace status of the specified Ingress * * @param name name of the Ingress (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 V1Ingress * @throws ApiException If fail 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 V1Ingress replaceNamespacedIngressStatus( String name, String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager) throws ApiException { ApiResponse localVarResp = replaceNamespacedIngressStatusWithHttpInfo( name, namespace, body, pretty, dryRun, fieldManager); return localVarResp.getData(); } /** * replace status of the specified Ingress * * @param name name of the Ingress (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<V1Ingress> * @throws ApiException If fail 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 replaceNamespacedIngressStatusWithHttpInfo( String name, String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedIngressStatusValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) replace status of the specified Ingress * * @param name name of the Ingress (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 replaceNamespacedIngressStatusAsync( String name, String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedIngressStatusValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for replaceNamespacedNetworkPolicy * * @param name name of the NetworkPolicy (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 replaceNamespacedNetworkPolicyCall( String name, String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{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 replaceNamespacedNetworkPolicyValidateBeforeCall( String name, String namespace, V1NetworkPolicy 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 replaceNamespacedNetworkPolicy(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException( "Missing the required parameter 'namespace' when calling replaceNamespacedNetworkPolicy(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException( "Missing the required parameter 'body' when calling replaceNamespacedNetworkPolicy(Async)"); } okhttp3.Call localVarCall = replaceNamespacedNetworkPolicyCall( name, namespace, body, pretty, dryRun, fieldManager, _callback); return localVarCall; } /** * replace the specified NetworkPolicy * * @param name name of the NetworkPolicy (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 V1NetworkPolicy * @throws ApiException If fail 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 V1NetworkPolicy replaceNamespacedNetworkPolicy( String name, String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager) throws ApiException { ApiResponse localVarResp = replaceNamespacedNetworkPolicyWithHttpInfo( name, namespace, body, pretty, dryRun, fieldManager); return localVarResp.getData(); } /** * replace the specified NetworkPolicy * * @param name name of the NetworkPolicy (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<V1NetworkPolicy> * @throws ApiException If fail 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 replaceNamespacedNetworkPolicyWithHttpInfo( String name, String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedNetworkPolicyValidateBeforeCall( name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) replace the specified NetworkPolicy * * @param name name of the NetworkPolicy (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 replaceNamespacedNetworkPolicyAsync( String name, String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceNamespacedNetworkPolicyValidateBeforeCall( 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