@@ -5465,6 +5465,103 @@ def increase_db_instance_node_number_with_http_info(self, body, **kwargs): # no
54655465 _request_timeout = params .get ('_request_timeout' ),
54665466 collection_formats = collection_formats )
54675467
5468+ def interrupt_key_scan_job (self , body , ** kwargs ): # noqa: E501
5469+ """interrupt_key_scan_job # noqa: E501
5470+
5471+ This method makes a synchronous HTTP request by default. To make an
5472+ asynchronous HTTP request, please pass async_req=True
5473+ >>> thread = api.interrupt_key_scan_job(body, async_req=True)
5474+ >>> result = thread.get()
5475+
5476+ :param async_req bool
5477+ :param InterruptKeyScanJobRequest body: (required)
5478+ :return: InterruptKeyScanJobResponse
5479+ If the method is called asynchronously,
5480+ returns the request thread.
5481+ """
5482+ kwargs ['_return_http_data_only' ] = True
5483+ if kwargs .get ('async_req' ):
5484+ return self .interrupt_key_scan_job_with_http_info (body , ** kwargs ) # noqa: E501
5485+ else :
5486+ (data ) = self .interrupt_key_scan_job_with_http_info (body , ** kwargs ) # noqa: E501
5487+ return data
5488+
5489+ def interrupt_key_scan_job_with_http_info (self , body , ** kwargs ): # noqa: E501
5490+ """interrupt_key_scan_job # noqa: E501
5491+
5492+ This method makes a synchronous HTTP request by default. To make an
5493+ asynchronous HTTP request, please pass async_req=True
5494+ >>> thread = api.interrupt_key_scan_job_with_http_info(body, async_req=True)
5495+ >>> result = thread.get()
5496+
5497+ :param async_req bool
5498+ :param InterruptKeyScanJobRequest body: (required)
5499+ :return: InterruptKeyScanJobResponse
5500+ If the method is called asynchronously,
5501+ returns the request thread.
5502+ """
5503+
5504+ all_params = ['body' ] # noqa: E501
5505+ all_params .append ('async_req' )
5506+ all_params .append ('_return_http_data_only' )
5507+ all_params .append ('_preload_content' )
5508+ all_params .append ('_request_timeout' )
5509+
5510+ params = locals ()
5511+ for key , val in six .iteritems (params ['kwargs' ]):
5512+ if key not in all_params :
5513+ raise TypeError (
5514+ "Got an unexpected keyword argument '%s'"
5515+ " to method interrupt_key_scan_job" % key
5516+ )
5517+ params [key ] = val
5518+ del params ['kwargs' ]
5519+ # verify the required parameter 'body' is set
5520+ if self .api_client .client_side_validation and ('body' not in params or
5521+ params ['body' ] is None ): # noqa: E501
5522+ raise ValueError ("Missing the required parameter `body` when calling `interrupt_key_scan_job`" ) # noqa: E501
5523+
5524+ collection_formats = {}
5525+
5526+ path_params = {}
5527+
5528+ query_params = []
5529+
5530+ header_params = {}
5531+
5532+ form_params = []
5533+ local_var_files = {}
5534+
5535+ body_params = None
5536+ if 'body' in params :
5537+ body_params = params ['body' ]
5538+ # HTTP header `Accept`
5539+ header_params ['Accept' ] = self .api_client .select_header_accept (
5540+ ['application/json' ]) # noqa: E501
5541+
5542+ # HTTP header `Content-Type`
5543+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
5544+ ['application/json' ]) # noqa: E501
5545+
5546+ # Authentication setting
5547+ auth_settings = ['volcengineSign' ] # noqa: E501
5548+
5549+ return self .api_client .call_api (
5550+ '/InterruptKeyScanJob/2020-12-07/redis/post/application_json/' , 'POST' ,
5551+ path_params ,
5552+ query_params ,
5553+ header_params ,
5554+ body = body_params ,
5555+ post_params = form_params ,
5556+ files = local_var_files ,
5557+ response_type = 'InterruptKeyScanJobResponse' , # noqa: E501
5558+ auth_settings = auth_settings ,
5559+ async_req = params .get ('async_req' ),
5560+ _return_http_data_only = params .get ('_return_http_data_only' ),
5561+ _preload_content = params .get ('_preload_content' , True ),
5562+ _request_timeout = params .get ('_request_timeout' ),
5563+ collection_formats = collection_formats )
5564+
54685565 def list_db_account (self , body , ** kwargs ): # noqa: E501
54695566 """list_db_account # noqa: E501
54705567
0 commit comments