Package io.kubernetes.client.util
Class PatchUtils
java.lang.Object
io.kubernetes.client.util.PatchUtils
Provides utility helper functions to send PATCH requests against kubernetes cluster.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe Patch call func returns an okhttp call object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <ApiType> ApiTypepatch(Class<ApiType> apiTypeClass, PatchUtils.PatchCallFunc callFunc, String patchFormat) Patches the resource with the patch format specified.static <ApiType> ApiTypepatch(Class<ApiType> apiTypeClass, PatchUtils.PatchCallFunc callFunc, String patchFormat, io.kubernetes.client.openapi.ApiClient apiClient) Patches the resource with the patch format andApiClientspecified.
-
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 classcallFunc- the call func returns a okhttp call object that wraps the http requestpatchFormat- 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 andApiClientspecified.- Type Parameters:
ApiType- the type parameter- Parameters:
apiTypeClass- the api type classcallFunc- the call func returns a okhttp call object that wraps the http requestpatchFormat- the patch formatapiClient- the api client- Returns:
- the api type
- Throws:
io.kubernetes.client.openapi.ApiException- the api exception
-