@@ -7987,6 +7987,103 @@ def restart_db_instance_with_http_info(self, body, **kwargs): # noqa: E501
79877987 _request_timeout = params .get ('_request_timeout' ),
79887988 collection_formats = collection_formats )
79897989
7990+ def restore_to_cross_region_instance (self , body , ** kwargs ): # noqa: E501
7991+ """restore_to_cross_region_instance # noqa: E501
7992+
7993+ This method makes a synchronous HTTP request by default. To make an
7994+ asynchronous HTTP request, please pass async_req=True
7995+ >>> thread = api.restore_to_cross_region_instance(body, async_req=True)
7996+ >>> result = thread.get()
7997+
7998+ :param async_req bool
7999+ :param RestoreToCrossRegionInstanceRequest body: (required)
8000+ :return: RestoreToCrossRegionInstanceResponse
8001+ If the method is called asynchronously,
8002+ returns the request thread.
8003+ """
8004+ kwargs ['_return_http_data_only' ] = True
8005+ if kwargs .get ('async_req' ):
8006+ return self .restore_to_cross_region_instance_with_http_info (body , ** kwargs ) # noqa: E501
8007+ else :
8008+ (data ) = self .restore_to_cross_region_instance_with_http_info (body , ** kwargs ) # noqa: E501
8009+ return data
8010+
8011+ def restore_to_cross_region_instance_with_http_info (self , body , ** kwargs ): # noqa: E501
8012+ """restore_to_cross_region_instance # noqa: E501
8013+
8014+ This method makes a synchronous HTTP request by default. To make an
8015+ asynchronous HTTP request, please pass async_req=True
8016+ >>> thread = api.restore_to_cross_region_instance_with_http_info(body, async_req=True)
8017+ >>> result = thread.get()
8018+
8019+ :param async_req bool
8020+ :param RestoreToCrossRegionInstanceRequest body: (required)
8021+ :return: RestoreToCrossRegionInstanceResponse
8022+ If the method is called asynchronously,
8023+ returns the request thread.
8024+ """
8025+
8026+ all_params = ['body' ] # noqa: E501
8027+ all_params .append ('async_req' )
8028+ all_params .append ('_return_http_data_only' )
8029+ all_params .append ('_preload_content' )
8030+ all_params .append ('_request_timeout' )
8031+
8032+ params = locals ()
8033+ for key , val in six .iteritems (params ['kwargs' ]):
8034+ if key not in all_params :
8035+ raise TypeError (
8036+ "Got an unexpected keyword argument '%s'"
8037+ " to method restore_to_cross_region_instance" % key
8038+ )
8039+ params [key ] = val
8040+ del params ['kwargs' ]
8041+ # verify the required parameter 'body' is set
8042+ if self .api_client .client_side_validation and ('body' not in params or
8043+ params ['body' ] is None ): # noqa: E501
8044+ raise ValueError ("Missing the required parameter `body` when calling `restore_to_cross_region_instance`" ) # noqa: E501
8045+
8046+ collection_formats = {}
8047+
8048+ path_params = {}
8049+
8050+ query_params = []
8051+
8052+ header_params = {}
8053+
8054+ form_params = []
8055+ local_var_files = {}
8056+
8057+ body_params = None
8058+ if 'body' in params :
8059+ body_params = params ['body' ]
8060+ # HTTP header `Accept`
8061+ header_params ['Accept' ] = self .api_client .select_header_accept (
8062+ ['application/json' ]) # noqa: E501
8063+
8064+ # HTTP header `Content-Type`
8065+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
8066+ ['application/json' ]) # noqa: E501
8067+
8068+ # Authentication setting
8069+ auth_settings = ['volcengineSign' ] # noqa: E501
8070+
8071+ return self .api_client .call_api (
8072+ '/RestoreToCrossRegionInstance/2022-01-01/rds_mysql/post/application_json/' , 'POST' ,
8073+ path_params ,
8074+ query_params ,
8075+ header_params ,
8076+ body = body_params ,
8077+ post_params = form_params ,
8078+ files = local_var_files ,
8079+ response_type = 'RestoreToCrossRegionInstanceResponse' , # noqa: E501
8080+ auth_settings = auth_settings ,
8081+ async_req = params .get ('async_req' ),
8082+ _return_http_data_only = params .get ('_return_http_data_only' ),
8083+ _preload_content = params .get ('_preload_content' , True ),
8084+ _request_timeout = params .get ('_request_timeout' ),
8085+ collection_formats = collection_formats )
8086+
79908087 def restore_to_existed_instance (self , body , ** kwargs ): # noqa: E501
79918088 """restore_to_existed_instance # noqa: E501
79928089
0 commit comments