@@ -482,107 +482,6 @@ def test_body_with_query_params_with_http_info(self, body, query, **kwargs): #
482
482
_request_timeout = params .get ('_request_timeout' ),
483
483
collection_formats = collection_formats )
484
484
485
- def test_body_with_query_params (self , body , query , ** kwargs ): # noqa: E501
486
- """test_body_with_query_params # noqa: E501
487
-
488
- This method makes a synchronous HTTP request by default. To make an
489
- asynchronous HTTP request, please pass async=True
490
- >>> thread = api.test_body_with_query_params(body, query, async=True)
491
- >>> result = thread.get()
492
-
493
- :param async bool
494
- :param User body: (required)
495
- :param str query: (required)
496
- :return: None
497
- If the method is called asynchronously,
498
- returns the request thread.
499
- """
500
- kwargs ['_return_http_data_only' ] = True
501
- if kwargs .get ('async' ):
502
- return self .test_body_with_query_params_with_http_info (body , query , ** kwargs ) # noqa: E501
503
- else :
504
- (data ) = self .test_body_with_query_params_with_http_info (body , query , ** kwargs ) # noqa: E501
505
- return data
506
-
507
- def test_body_with_query_params_with_http_info (self , body , query , ** kwargs ): # noqa: E501
508
- """test_body_with_query_params # noqa: E501
509
-
510
- This method makes a synchronous HTTP request by default. To make an
511
- asynchronous HTTP request, please pass async=True
512
- >>> thread = api.test_body_with_query_params_with_http_info(body, query, async=True)
513
- >>> result = thread.get()
514
-
515
- :param async bool
516
- :param User body: (required)
517
- :param str query: (required)
518
- :return: None
519
- If the method is called asynchronously,
520
- returns the request thread.
521
- """
522
-
523
- all_params = ['body' , 'query' ] # noqa: E501
524
- all_params .append ('async' )
525
- all_params .append ('_return_http_data_only' )
526
- all_params .append ('_preload_content' )
527
- all_params .append ('_request_timeout' )
528
-
529
- params = locals ()
530
- for key , val in six .iteritems (params ['kwargs' ]):
531
- if key not in all_params :
532
- raise TypeError (
533
- "Got an unexpected keyword argument '%s'"
534
- " to method test_body_with_query_params" % key
535
- )
536
- params [key ] = val
537
- del params ['kwargs' ]
538
- # verify the required parameter 'body' is set
539
- if ('body' not in params or
540
- params ['body' ] is None ):
541
- raise ValueError ("Missing the required parameter `body` when calling `test_body_with_query_params`" ) # noqa: E501
542
- # verify the required parameter 'query' is set
543
- if ('query' not in params or
544
- params ['query' ] is None ):
545
- raise ValueError ("Missing the required parameter `query` when calling `test_body_with_query_params`" ) # noqa: E501
546
-
547
- collection_formats = {}
548
-
549
- path_params = {}
550
-
551
- query_params = []
552
- if 'query' in params :
553
- query_params .append (('query' , params ['query' ])) # noqa: E501
554
-
555
- header_params = {}
556
-
557
- form_params = []
558
- local_var_files = {}
559
-
560
- body_params = None
561
- if 'body' in params :
562
- body_params = params ['body' ]
563
- # HTTP header `Content-Type`
564
- header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
565
- ['application/json' ]) # noqa: E501
566
-
567
- # Authentication setting
568
- auth_settings = [] # noqa: E501
569
-
570
- return self .api_client .call_api (
571
- '/fake/body-with-query-params' , 'PUT' ,
572
- path_params ,
573
- query_params ,
574
- header_params ,
575
- body = body_params ,
576
- post_params = form_params ,
577
- files = local_var_files ,
578
- response_type = None , # noqa: E501
579
- auth_settings = auth_settings ,
580
- async = params .get ('async' ),
581
- _return_http_data_only = params .get ('_return_http_data_only' ),
582
- _preload_content = params .get ('_preload_content' , True ),
583
- _request_timeout = params .get ('_request_timeout' ),
584
- collection_formats = collection_formats )
585
-
586
485
def test_client_model (self , body , ** kwargs ): # noqa: E501
587
486
"""To test \"client\" model # noqa: E501
588
487
0 commit comments