|
27 | 27 | import java.io.IOException;
|
28 | 28 |
|
29 | 29 |
|
| 30 | +import org.openapitools.client.model.CodesEnum; |
30 | 31 | import java.util.UUID;
|
31 | 32 |
|
32 | 33 | import java.lang.reflect.Type;
|
@@ -306,6 +307,127 @@ public okhttp3.Call op2Async(final ApiCallback<Object> _callback) throws ApiExce
|
306 | 307 | localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
|
307 | 308 | return localVarCall;
|
308 | 309 | }
|
| 310 | + /** |
| 311 | + * Build call for op3 |
| 312 | + * @param queryEnum query enum test (required) |
| 313 | + * @param _callback Callback for upload/download progress |
| 314 | + * @return Call to execute |
| 315 | + * @throws ApiException If fail to serialize the request body object |
| 316 | + * @http.response.details |
| 317 | + <table summary="Response Details" border="1"> |
| 318 | + <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> |
| 319 | + <tr><td> 200 </td><td> Successful Response </td><td> - </td></tr> |
| 320 | + </table> |
| 321 | + */ |
| 322 | + public okhttp3.Call op3Call(List<CodesEnum> queryEnum, final ApiCallback _callback) throws ApiException { |
| 323 | + String basePath = null; |
| 324 | + // Operation Servers |
| 325 | + String[] localBasePaths = new String[] { }; |
| 326 | + |
| 327 | + // Determine Base Path to Use |
| 328 | + if (localCustomBaseUrl != null){ |
| 329 | + basePath = localCustomBaseUrl; |
| 330 | + } else if ( localBasePaths.length > 0 ) { |
| 331 | + basePath = localBasePaths[localHostIndex]; |
| 332 | + } else { |
| 333 | + basePath = null; |
| 334 | + } |
| 335 | + |
| 336 | + Object localVarPostBody = null; |
| 337 | + |
| 338 | + // create path and map variables |
| 339 | + String localVarPath = "/fake/api/query/enum"; |
| 340 | + |
| 341 | + List<Pair> localVarQueryParams = new ArrayList<Pair>(); |
| 342 | + List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>(); |
| 343 | + Map<String, String> localVarHeaderParams = new HashMap<String, String>(); |
| 344 | + Map<String, String> localVarCookieParams = new HashMap<String, String>(); |
| 345 | + Map<String, Object> localVarFormParams = new HashMap<String, Object>(); |
| 346 | + |
| 347 | + if (queryEnum != null) { |
| 348 | + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "query_enum", queryEnum)); |
| 349 | + } |
| 350 | + |
| 351 | + final String[] localVarAccepts = { |
| 352 | + }; |
| 353 | + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); |
| 354 | + if (localVarAccept != null) { |
| 355 | + localVarHeaderParams.put("Accept", localVarAccept); |
| 356 | + } |
| 357 | + |
| 358 | + final String[] localVarContentTypes = { |
| 359 | + }; |
| 360 | + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); |
| 361 | + if (localVarContentType != null) { |
| 362 | + localVarHeaderParams.put("Content-Type", localVarContentType); |
| 363 | + } |
| 364 | + |
| 365 | + String[] localVarAuthNames = new String[] { }; |
| 366 | + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); |
| 367 | + } |
| 368 | + |
| 369 | + @SuppressWarnings("rawtypes") |
| 370 | + private okhttp3.Call op3ValidateBeforeCall(List<CodesEnum> queryEnum, final ApiCallback _callback) throws ApiException { |
| 371 | + // verify the required parameter 'queryEnum' is set |
| 372 | + if (queryEnum == null) { |
| 373 | + throw new ApiException("Missing the required parameter 'queryEnum' when calling op3(Async)"); |
| 374 | + } |
| 375 | + |
| 376 | + return op3Call(queryEnum, _callback); |
| 377 | + |
| 378 | + } |
| 379 | + |
| 380 | + /** |
| 381 | + * op3 |
| 382 | + * |
| 383 | + * @param queryEnum query enum test (required) |
| 384 | + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body |
| 385 | + * @http.response.details |
| 386 | + <table summary="Response Details" border="1"> |
| 387 | + <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> |
| 388 | + <tr><td> 200 </td><td> Successful Response </td><td> - </td></tr> |
| 389 | + </table> |
| 390 | + */ |
| 391 | + public void op3(List<CodesEnum> queryEnum) throws ApiException { |
| 392 | + op3WithHttpInfo(queryEnum); |
| 393 | + } |
| 394 | + |
| 395 | + /** |
| 396 | + * op3 |
| 397 | + * |
| 398 | + * @param queryEnum query enum test (required) |
| 399 | + * @return ApiResponse<Void> |
| 400 | + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body |
| 401 | + * @http.response.details |
| 402 | + <table summary="Response Details" border="1"> |
| 403 | + <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> |
| 404 | + <tr><td> 200 </td><td> Successful Response </td><td> - </td></tr> |
| 405 | + </table> |
| 406 | + */ |
| 407 | + public ApiResponse<Void> op3WithHttpInfo(List<CodesEnum> queryEnum) throws ApiException { |
| 408 | + okhttp3.Call localVarCall = op3ValidateBeforeCall(queryEnum, null); |
| 409 | + return localVarApiClient.execute(localVarCall); |
| 410 | + } |
| 411 | + |
| 412 | + /** |
| 413 | + * op3 (asynchronously) |
| 414 | + * |
| 415 | + * @param queryEnum query enum test (required) |
| 416 | + * @param _callback The callback to be executed when the API call finishes |
| 417 | + * @return The request call |
| 418 | + * @throws ApiException If fail to process the API call, e.g. serializing the request body object |
| 419 | + * @http.response.details |
| 420 | + <table summary="Response Details" border="1"> |
| 421 | + <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> |
| 422 | + <tr><td> 200 </td><td> Successful Response </td><td> - </td></tr> |
| 423 | + </table> |
| 424 | + */ |
| 425 | + public okhttp3.Call op3Async(List<CodesEnum> queryEnum, final ApiCallback<Void> _callback) throws ApiException { |
| 426 | + |
| 427 | + okhttp3.Call localVarCall = op3ValidateBeforeCall(queryEnum, _callback); |
| 428 | + localVarApiClient.executeAsync(localVarCall, _callback); |
| 429 | + return localVarCall; |
| 430 | + } |
309 | 431 | /**
|
310 | 432 | * Build call for refToRefParameter
|
311 | 433 | * @param refToUuid to test ref to parameter (uuid) (required)
|
|
0 commit comments