@@ -5756,6 +5756,103 @@ def modify_backup_plan_with_http_info(self, body, **kwargs): # noqa: E501
57565756 _request_timeout = params .get ('_request_timeout' ),
57575757 collection_formats = collection_formats )
57585758
5759+ def modify_backup_point_name (self , body , ** kwargs ): # noqa: E501
5760+ """modify_backup_point_name # noqa: E501
5761+
5762+ This method makes a synchronous HTTP request by default. To make an
5763+ asynchronous HTTP request, please pass async_req=True
5764+ >>> thread = api.modify_backup_point_name(body, async_req=True)
5765+ >>> result = thread.get()
5766+
5767+ :param async_req bool
5768+ :param ModifyBackupPointNameRequest body: (required)
5769+ :return: ModifyBackupPointNameResponse
5770+ If the method is called asynchronously,
5771+ returns the request thread.
5772+ """
5773+ kwargs ['_return_http_data_only' ] = True
5774+ if kwargs .get ('async_req' ):
5775+ return self .modify_backup_point_name_with_http_info (body , ** kwargs ) # noqa: E501
5776+ else :
5777+ (data ) = self .modify_backup_point_name_with_http_info (body , ** kwargs ) # noqa: E501
5778+ return data
5779+
5780+ def modify_backup_point_name_with_http_info (self , body , ** kwargs ): # noqa: E501
5781+ """modify_backup_point_name # noqa: E501
5782+
5783+ This method makes a synchronous HTTP request by default. To make an
5784+ asynchronous HTTP request, please pass async_req=True
5785+ >>> thread = api.modify_backup_point_name_with_http_info(body, async_req=True)
5786+ >>> result = thread.get()
5787+
5788+ :param async_req bool
5789+ :param ModifyBackupPointNameRequest body: (required)
5790+ :return: ModifyBackupPointNameResponse
5791+ If the method is called asynchronously,
5792+ returns the request thread.
5793+ """
5794+
5795+ all_params = ['body' ] # noqa: E501
5796+ all_params .append ('async_req' )
5797+ all_params .append ('_return_http_data_only' )
5798+ all_params .append ('_preload_content' )
5799+ all_params .append ('_request_timeout' )
5800+
5801+ params = locals ()
5802+ for key , val in six .iteritems (params ['kwargs' ]):
5803+ if key not in all_params :
5804+ raise TypeError (
5805+ "Got an unexpected keyword argument '%s'"
5806+ " to method modify_backup_point_name" % key
5807+ )
5808+ params [key ] = val
5809+ del params ['kwargs' ]
5810+ # verify the required parameter 'body' is set
5811+ if self .api_client .client_side_validation and ('body' not in params or
5812+ params ['body' ] is None ): # noqa: E501
5813+ raise ValueError ("Missing the required parameter `body` when calling `modify_backup_point_name`" ) # noqa: E501
5814+
5815+ collection_formats = {}
5816+
5817+ path_params = {}
5818+
5819+ query_params = []
5820+
5821+ header_params = {}
5822+
5823+ form_params = []
5824+ local_var_files = {}
5825+
5826+ body_params = None
5827+ if 'body' in params :
5828+ body_params = params ['body' ]
5829+ # HTTP header `Accept`
5830+ header_params ['Accept' ] = self .api_client .select_header_accept (
5831+ ['application/json' ]) # noqa: E501
5832+
5833+ # HTTP header `Content-Type`
5834+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
5835+ ['application/json' ]) # noqa: E501
5836+
5837+ # Authentication setting
5838+ auth_settings = ['volcengineSign' ] # noqa: E501
5839+
5840+ return self .api_client .call_api (
5841+ '/ModifyBackupPointName/2020-12-07/redis/post/application_json/' , 'POST' ,
5842+ path_params ,
5843+ query_params ,
5844+ header_params ,
5845+ body = body_params ,
5846+ post_params = form_params ,
5847+ files = local_var_files ,
5848+ response_type = 'ModifyBackupPointNameResponse' , # noqa: E501
5849+ auth_settings = auth_settings ,
5850+ async_req = params .get ('async_req' ),
5851+ _return_http_data_only = params .get ('_return_http_data_only' ),
5852+ _preload_content = params .get ('_preload_content' , True ),
5853+ _request_timeout = params .get ('_request_timeout' ),
5854+ collection_formats = collection_formats )
5855+
57595856 def modify_cross_region_backup_policy (self , body , ** kwargs ): # noqa: E501
57605857 """modify_cross_region_backup_policy # noqa: E501
57615858
0 commit comments