src/main/java/nl/uva/qcdis/sdia/sure/tosca/client/DefaultApi.java
/**
     * upload a tosca template description file (asynchronously) upload and
     * validate a tosca template description file
     *
     * @param file tosca Template description (required)
     * @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
     */
upload a tosca template description file (asynchronously) upload and
validate a tosca template description file

@param file tosca Template description (required)
@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
upload a tosca template description file ( asynchronously ) upload and validate a tosca template description file @param file tosca Template description ( required ) @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
public com.squareup.okhttp.Call uploadToscaTemplateAsync(File file, final ApiCallback<String> callback) throws ApiException {
        ProgressResponseBody.ProgressListener progressListener = null;
        ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
        if (callback != null) {
            progressListener = new ProgressResponseBody.ProgressListener() {
                @Override
                public void update(long bytesRead, long contentLength, boolean done) {
                    callback.onDownloadProgress(bytesRead, contentLength, done);
                }
            };
            progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
                @Override
                public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
                    callback.onUploadProgress(bytesWritten, contentLength, done);
                }
            };
        }
        com.squareup.okhttp.Call call = uploadToscaTemplateValidateBeforeCall(file, progressListener, progressRequestListener);
        Type localVarReturnType = new TypeToken<String>() {
        }.getType();
        apiClient.executeAsync(call, localVarReturnType, callback);
        return call;
    }
public com . squareup . okhttp . Call uploadToscaTemplateAsync ( File file , final ApiCallback < String > callback ) throws ApiException { ProgressResponseBody . ProgressListener progressListener = null ; ProgressRequestBody . ProgressRequestListener progressRequestListener = null ; if ( callback != null ) { progressListener = new ProgressResponseBody . ProgressListener ( ) { @ Override public void update ( long bytesRead , long contentLength , boolean done ) { callback . onDownloadProgress ( bytesRead , contentLength , done ) ; } } ; progressRequestListener = new ProgressRequestBody . ProgressRequestListener ( ) { @ Override public void onRequestProgress ( long bytesWritten , long contentLength , boolean done ) { callback . onUploadProgress ( bytesWritten , contentLength , done ) ; } } ; } com . squareup . okhttp . Call call = uploadToscaTemplateValidateBeforeCall ( file , progressListener , progressRequestListener ) ; Type localVarReturnType = new TypeToken < String > ( ) { } . getType ( ) ; apiClient . executeAsync ( call , localVarReturnType , callback ) ; return call ; }
upload a tosca template description file (asynchronously) upload and
 validate a tosca template description file
upload a tosca template description file ( asynchronously ) upload and validate a tosca template description file