@@ -8472,6 +8472,200 @@ def switch_over_with_http_info(self, body, **kwargs): # noqa: E501
84728472 _request_timeout = params .get ('_request_timeout' ),
84738473 collection_formats = collection_formats )
84748474
8475+ def test_failover_db_instance_zone (self , body , ** kwargs ): # noqa: E501
8476+ """test_failover_db_instance_zone # noqa: E501
8477+
8478+ This method makes a synchronous HTTP request by default. To make an
8479+ asynchronous HTTP request, please pass async_req=True
8480+ >>> thread = api.test_failover_db_instance_zone(body, async_req=True)
8481+ >>> result = thread.get()
8482+
8483+ :param async_req bool
8484+ :param TestFailoverDBInstanceZoneRequest body: (required)
8485+ :return: TestFailoverDBInstanceZoneResponse
8486+ If the method is called asynchronously,
8487+ returns the request thread.
8488+ """
8489+ kwargs ['_return_http_data_only' ] = True
8490+ if kwargs .get ('async_req' ):
8491+ return self .test_failover_db_instance_zone_with_http_info (body , ** kwargs ) # noqa: E501
8492+ else :
8493+ (data ) = self .test_failover_db_instance_zone_with_http_info (body , ** kwargs ) # noqa: E501
8494+ return data
8495+
8496+ def test_failover_db_instance_zone_with_http_info (self , body , ** kwargs ): # noqa: E501
8497+ """test_failover_db_instance_zone # noqa: E501
8498+
8499+ This method makes a synchronous HTTP request by default. To make an
8500+ asynchronous HTTP request, please pass async_req=True
8501+ >>> thread = api.test_failover_db_instance_zone_with_http_info(body, async_req=True)
8502+ >>> result = thread.get()
8503+
8504+ :param async_req bool
8505+ :param TestFailoverDBInstanceZoneRequest body: (required)
8506+ :return: TestFailoverDBInstanceZoneResponse
8507+ If the method is called asynchronously,
8508+ returns the request thread.
8509+ """
8510+
8511+ all_params = ['body' ] # noqa: E501
8512+ all_params .append ('async_req' )
8513+ all_params .append ('_return_http_data_only' )
8514+ all_params .append ('_preload_content' )
8515+ all_params .append ('_request_timeout' )
8516+
8517+ params = locals ()
8518+ for key , val in six .iteritems (params ['kwargs' ]):
8519+ if key not in all_params :
8520+ raise TypeError (
8521+ "Got an unexpected keyword argument '%s'"
8522+ " to method test_failover_db_instance_zone" % key
8523+ )
8524+ params [key ] = val
8525+ del params ['kwargs' ]
8526+ # verify the required parameter 'body' is set
8527+ if self .api_client .client_side_validation and ('body' not in params or
8528+ params ['body' ] is None ): # noqa: E501
8529+ raise ValueError ("Missing the required parameter `body` when calling `test_failover_db_instance_zone`" ) # noqa: E501
8530+
8531+ collection_formats = {}
8532+
8533+ path_params = {}
8534+
8535+ query_params = []
8536+
8537+ header_params = {}
8538+
8539+ form_params = []
8540+ local_var_files = {}
8541+
8542+ body_params = None
8543+ if 'body' in params :
8544+ body_params = params ['body' ]
8545+ # HTTP header `Accept`
8546+ header_params ['Accept' ] = self .api_client .select_header_accept (
8547+ ['application/json' ]) # noqa: E501
8548+
8549+ # HTTP header `Content-Type`
8550+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
8551+ ['application/json' ]) # noqa: E501
8552+
8553+ # Authentication setting
8554+ auth_settings = ['volcengineSign' ] # noqa: E501
8555+
8556+ return self .api_client .call_api (
8557+ '/TestFailoverDBInstanceZone/2020-12-07/redis/post/application_json/' , 'POST' ,
8558+ path_params ,
8559+ query_params ,
8560+ header_params ,
8561+ body = body_params ,
8562+ post_params = form_params ,
8563+ files = local_var_files ,
8564+ response_type = 'TestFailoverDBInstanceZoneResponse' , # noqa: E501
8565+ auth_settings = auth_settings ,
8566+ async_req = params .get ('async_req' ),
8567+ _return_http_data_only = params .get ('_return_http_data_only' ),
8568+ _preload_content = params .get ('_preload_content' , True ),
8569+ _request_timeout = params .get ('_request_timeout' ),
8570+ collection_formats = collection_formats )
8571+
8572+ def test_shut_down_db_instance_nodes (self , body , ** kwargs ): # noqa: E501
8573+ """test_shut_down_db_instance_nodes # noqa: E501
8574+
8575+ This method makes a synchronous HTTP request by default. To make an
8576+ asynchronous HTTP request, please pass async_req=True
8577+ >>> thread = api.test_shut_down_db_instance_nodes(body, async_req=True)
8578+ >>> result = thread.get()
8579+
8580+ :param async_req bool
8581+ :param TestShutDownDBInstanceNodesRequest body: (required)
8582+ :return: TestShutDownDBInstanceNodesResponse
8583+ If the method is called asynchronously,
8584+ returns the request thread.
8585+ """
8586+ kwargs ['_return_http_data_only' ] = True
8587+ if kwargs .get ('async_req' ):
8588+ return self .test_shut_down_db_instance_nodes_with_http_info (body , ** kwargs ) # noqa: E501
8589+ else :
8590+ (data ) = self .test_shut_down_db_instance_nodes_with_http_info (body , ** kwargs ) # noqa: E501
8591+ return data
8592+
8593+ def test_shut_down_db_instance_nodes_with_http_info (self , body , ** kwargs ): # noqa: E501
8594+ """test_shut_down_db_instance_nodes # noqa: E501
8595+
8596+ This method makes a synchronous HTTP request by default. To make an
8597+ asynchronous HTTP request, please pass async_req=True
8598+ >>> thread = api.test_shut_down_db_instance_nodes_with_http_info(body, async_req=True)
8599+ >>> result = thread.get()
8600+
8601+ :param async_req bool
8602+ :param TestShutDownDBInstanceNodesRequest body: (required)
8603+ :return: TestShutDownDBInstanceNodesResponse
8604+ If the method is called asynchronously,
8605+ returns the request thread.
8606+ """
8607+
8608+ all_params = ['body' ] # noqa: E501
8609+ all_params .append ('async_req' )
8610+ all_params .append ('_return_http_data_only' )
8611+ all_params .append ('_preload_content' )
8612+ all_params .append ('_request_timeout' )
8613+
8614+ params = locals ()
8615+ for key , val in six .iteritems (params ['kwargs' ]):
8616+ if key not in all_params :
8617+ raise TypeError (
8618+ "Got an unexpected keyword argument '%s'"
8619+ " to method test_shut_down_db_instance_nodes" % key
8620+ )
8621+ params [key ] = val
8622+ del params ['kwargs' ]
8623+ # verify the required parameter 'body' is set
8624+ if self .api_client .client_side_validation and ('body' not in params or
8625+ params ['body' ] is None ): # noqa: E501
8626+ raise ValueError ("Missing the required parameter `body` when calling `test_shut_down_db_instance_nodes`" ) # noqa: E501
8627+
8628+ collection_formats = {}
8629+
8630+ path_params = {}
8631+
8632+ query_params = []
8633+
8634+ header_params = {}
8635+
8636+ form_params = []
8637+ local_var_files = {}
8638+
8639+ body_params = None
8640+ if 'body' in params :
8641+ body_params = params ['body' ]
8642+ # HTTP header `Accept`
8643+ header_params ['Accept' ] = self .api_client .select_header_accept (
8644+ ['application/json' ]) # noqa: E501
8645+
8646+ # HTTP header `Content-Type`
8647+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
8648+ ['application/json' ]) # noqa: E501
8649+
8650+ # Authentication setting
8651+ auth_settings = ['volcengineSign' ] # noqa: E501
8652+
8653+ return self .api_client .call_api (
8654+ '/TestShutDownDBInstanceNodes/2020-12-07/redis/post/application_json/' , 'POST' ,
8655+ path_params ,
8656+ query_params ,
8657+ header_params ,
8658+ body = body_params ,
8659+ post_params = form_params ,
8660+ files = local_var_files ,
8661+ response_type = 'TestShutDownDBInstanceNodesResponse' , # noqa: E501
8662+ auth_settings = auth_settings ,
8663+ async_req = params .get ('async_req' ),
8664+ _return_http_data_only = params .get ('_return_http_data_only' ),
8665+ _preload_content = params .get ('_preload_content' , True ),
8666+ _request_timeout = params .get ('_request_timeout' ),
8667+ collection_formats = collection_formats )
8668+
84758669 def upgrade_allow_list_version (self , body , ** kwargs ): # noqa: E501
84768670 """upgrade_allow_list_version # noqa: E501
84778671
0 commit comments