Search in sources :

Example 11 with V1PodTemplate

use of io.kubernetes.client.openapi.models.V1PodTemplate in project java by kubernetes-client.

the class CoreV1Api method readNamespacedPodTemplateAsync.

/**
 * (asynchronously) read the specified PodTemplate
 *
 * @param name name of the PodTemplate (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
 *     <table summary="Response Details" border="1">
 * <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
 * <tr><td> 200 </td><td> OK </td><td>  -  </td></tr>
 * <tr><td> 401 </td><td> Unauthorized </td><td>  -  </td></tr>
 * </table>
 */
public okhttp3.Call readNamespacedPodTemplateAsync(String name, String namespace, String pretty, final ApiCallback<V1PodTemplate> _callback) throws ApiException {
    okhttp3.Call localVarCall = readNamespacedPodTemplateValidateBeforeCall(name, namespace, pretty, _callback);
    Type localVarReturnType = new TypeToken<V1PodTemplate>() {
    }.getType();
    localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
    return localVarCall;
}
Also used : V1PodTemplate(io.kubernetes.client.openapi.models.V1PodTemplate) Type(java.lang.reflect.Type)

Aggregations

V1PodTemplate (io.kubernetes.client.openapi.models.V1PodTemplate)11 Type (java.lang.reflect.Type)10 VisibleForTesting (com.google.common.annotations.VisibleForTesting)1 ApiException (io.kubernetes.client.openapi.ApiException)1 V1ConfigMap (io.kubernetes.client.openapi.models.V1ConfigMap)1 V1PodTemplateSpec (io.kubernetes.client.openapi.models.V1PodTemplateSpec)1 IOException (java.io.IOException)1 TopologySubmissionException (org.apache.heron.scheduler.TopologySubmissionException)1