Interface KubernetesCall<T>

  • All Superinterfaces:
    retrofit2.Call<T>, java.lang.Cloneable
    All Known Subinterfaces:
    KubernetesExecCall<T>, KubernetesListCall<T,​W>

    public interface KubernetesCall<T>
    extends retrofit2.Call<T>
    Retrofit Call extension specific for calls performed using the KubernetesClient.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      okhttp3.Response executeRaw()
      Synchronously send the request and return an unprocessed Response with no IO operations performed to the Response.body().
      T get()
      Synchronously send the request and return its decoded response body.
      <O> O get​(java.lang.Class<O> returnType)
      Kubernetes OpenAPI spec has some issues, and for some resources, the documented return type doesn't match with the response object provided by the server.
      • Methods inherited from interface retrofit2.Call

        cancel, clone, enqueue, execute, isCanceled, isExecuted, request, timeout
    • Method Detail

      • get

        T get()
        throws java.io.IOException
        Synchronously send the request and return its decoded response body.
        Throws:
        java.io.IOException - if a problem occurred talking to the server.
      • executeRaw

        okhttp3.Response executeRaw()
                             throws java.io.IOException
        Synchronously send the request and return an unprocessed Response with no IO operations performed to the Response.body().

        To avoid leaking resources callers should close the Response which in turn will close the underlying ResponseBody.

        Returns:
        a raw Response ready to be processed.
        Throws:
        java.io.IOException - if a problem occurred talking to the server.