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;
}
Aggregations