protected < T > T handleReplace ( T updated , Class < T > type , Map < String , String > parameters ) throws ExecutionException , InterruptedException , KubernetesClientException , IOException { RequestBody body = RequestBody . create ( JSON , JSON_MAPPER . writeValueAsString ( updated ) ) ; Request . Builder requestBuilder = new Request . Builder ( ) . put ( body ) . url ( getResourceUrl ( checkNamespace ( updated ) , checkName ( updated ) ) ) ; return handleResponse ( requestBuilder , type , parameters ) ; }
Replace a resource optionally performing placeholder substitution to the response .