Class PatchUtils

java.lang.Object
io.kubernetes.client.util.PatchUtils

public class PatchUtils extends Object
Provides utility helper functions to send PATCH requests against kubernetes cluster.
  • Constructor Details

    • PatchUtils

      public PatchUtils()
  • Method Details

    • patch

      public static <ApiType> ApiType patch(Class<ApiType> apiTypeClass, PatchUtils.PatchCallFunc callFunc, String patchFormat) throws io.kubernetes.client.openapi.ApiException
      Patches the resource with the patch format specified.
      Type Parameters:
      ApiType - the type parameter
      Parameters:
      apiTypeClass - the api type class
      callFunc - the call func returns a okhttp call object that wraps the http request
      patchFormat - the patch format
      Returns:
      the api type
      Throws:
      io.kubernetes.client.openapi.ApiException - the api exception
    • patch

      public static <ApiType> ApiType patch(Class<ApiType> apiTypeClass, PatchUtils.PatchCallFunc callFunc, String patchFormat, io.kubernetes.client.openapi.ApiClient apiClient) throws io.kubernetes.client.openapi.ApiException
      Patches the resource with the patch format and ApiClient specified.
      Type Parameters:
      ApiType - the type parameter
      Parameters:
      apiTypeClass - the api type class
      callFunc - the call func returns a okhttp call object that wraps the http request
      patchFormat - the patch format
      apiClient - the api client
      Returns:
      the api type
      Throws:
      io.kubernetes.client.openapi.ApiException - the api exception