@@ -12934,6 +12934,103 @@ def modify_task_with_http_info(self, body, **kwargs): # noqa: E501
1293412934 _request_timeout=params.get('_request_timeout'),
1293512935 collection_formats=collection_formats)
1293612936
12937+ def rebuild_db_green_instance(self, body, **kwargs): # noqa: E501
12938+ """rebuild_db_green_instance # noqa: E501
12939+
12940+ This method makes a synchronous HTTP request by default. To make an
12941+ asynchronous HTTP request, please pass async_req=True
12942+ >>> thread = api.rebuild_db_green_instance(body, async_req=True)
12943+ >>> result = thread.get()
12944+
12945+ :param async_req bool
12946+ :param RebuildDBGreenInstanceRequest body: (required)
12947+ :return: RebuildDBGreenInstanceResponse
12948+ If the method is called asynchronously,
12949+ returns the request thread.
12950+ """
12951+ kwargs['_return_http_data_only'] = True
12952+ if kwargs.get('async_req'):
12953+ return self.rebuild_db_green_instance_with_http_info(body, **kwargs) # noqa: E501
12954+ else:
12955+ (data) = self.rebuild_db_green_instance_with_http_info(body, **kwargs) # noqa: E501
12956+ return data
12957+
12958+ def rebuild_db_green_instance_with_http_info(self, body, **kwargs): # noqa: E501
12959+ """rebuild_db_green_instance # noqa: E501
12960+
12961+ This method makes a synchronous HTTP request by default. To make an
12962+ asynchronous HTTP request, please pass async_req=True
12963+ >>> thread = api.rebuild_db_green_instance_with_http_info(body, async_req=True)
12964+ >>> result = thread.get()
12965+
12966+ :param async_req bool
12967+ :param RebuildDBGreenInstanceRequest body: (required)
12968+ :return: RebuildDBGreenInstanceResponse
12969+ If the method is called asynchronously,
12970+ returns the request thread.
12971+ """
12972+
12973+ all_params = ['body'] # noqa: E501
12974+ all_params.append('async_req')
12975+ all_params.append('_return_http_data_only')
12976+ all_params.append('_preload_content')
12977+ all_params.append('_request_timeout')
12978+
12979+ params = locals()
12980+ for key, val in six.iteritems(params['kwargs']):
12981+ if key not in all_params:
12982+ raise TypeError(
12983+ "Got an unexpected keyword argument '%s'"
12984+ " to method rebuild_db_green_instance" % key
12985+ )
12986+ params[key] = val
12987+ del params['kwargs']
12988+ # verify the required parameter 'body' is set
12989+ if self.api_client.client_side_validation and ('body' not in params or
12990+ params['body'] is None): # noqa: E501
12991+ raise ValueError("Missing the required parameter `body` when calling `rebuild_db_green_instance`") # noqa: E501
12992+
12993+ collection_formats = {}
12994+
12995+ path_params = {}
12996+
12997+ query_params = []
12998+
12999+ header_params = {}
13000+
13001+ form_params = []
13002+ local_var_files = {}
13003+
13004+ body_params = None
13005+ if 'body' in params:
13006+ body_params = params['body']
13007+ # HTTP header `Accept`
13008+ header_params['Accept'] = self.api_client.select_header_accept(
13009+ ['application/json']) # noqa: E501
13010+
13011+ # HTTP header `Content-Type`
13012+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
13013+ ['application/json']) # noqa: E501
13014+
13015+ # Authentication setting
13016+ auth_settings = ['volcengineSign'] # noqa: E501
13017+
13018+ return self.api_client.call_api(
13019+ '/RebuildDBGreenInstance/2022-01-01/rds_mysql/post/application_json/', 'POST',
13020+ path_params,
13021+ query_params,
13022+ header_params,
13023+ body=body_params,
13024+ post_params=form_params,
13025+ files=local_var_files,
13026+ response_type='RebuildDBGreenInstanceResponse', # noqa: E501
13027+ auth_settings=auth_settings,
13028+ async_req=params.get('async_req'),
13029+ _return_http_data_only=params.get('_return_http_data_only'),
13030+ _preload_content=params.get('_preload_content', True),
13031+ _request_timeout=params.get('_request_timeout'),
13032+ collection_formats=collection_formats)
13033+
1293713034 def rebuild_db_instance(self, body, **kwargs): # noqa: E501
1293813035 """rebuild_db_instance # noqa: E501
1293913036
0 commit comments