@@ -1871,3 +1871,127 @@ def post_replace_with_http_info(self, file, text, newtext, **kwargs):
18711871 _preload_content = params .get ('_preload_content' , True ),
18721872 _request_timeout = params .get ('_request_timeout' ),
18731873 collection_formats = collection_formats )
1874+
1875+ def post_reverse (self , file , rotate_type , format , ** kwargs ):
1876+ """
1877+ This method makes a synchronous HTTP request by default. To make an
1878+ asynchronous HTTP request, please define a `callback` function
1879+ to be invoked when receiving the response.
1880+ >>> def callback_function(response):
1881+ >>> pprint(response)
1882+ >>>
1883+ >>> thread = api.post_reverse(file, text, color, callback=callback_function)
1884+
1885+ :param callback function: The callback function
1886+ for asynchronous request. (optional)
1887+ :param file file: File to upload (required)
1888+ :param str rotate_type: (required)
1889+ :param str format: (required)
1890+ :return: FilesResult
1891+ If the method is called asynchronously,
1892+ returns the request thread.
1893+ """
1894+ kwargs ['_return_http_data_only' ] = True
1895+ self .check_access_token ()
1896+ if kwargs .get ('callback' ):
1897+ return self .post_reverse_with_http_info (file , rotate_type , format , ** kwargs )
1898+ else :
1899+ (data ) = self .post_reverse_with_http_info (file , rotate_type , format , ** kwargs )
1900+ return data
1901+
1902+ def post_reverse_with_http_info (self , file , rotate_type , format , ** kwargs ):
1903+ """
1904+ This method makes a synchronous HTTP request by default. To make an
1905+ asynchronous HTTP request, please define a `callback` function
1906+ to be invoked when receiving the response.
1907+ >>> def callback_function(response):
1908+ >>> pprint(response)
1909+ >>>
1910+ >>> thread = api.post_reverse_with_http_info(file, rotateType, format, callback=callback_function)
1911+
1912+ :param callback function: The callback function
1913+ for asynchronous request. (optional)
1914+ :param file file: File to upload (required)
1915+ :param str rotateType: (required)
1916+ :param str format: (required)
1917+ :return: FilesResult
1918+ If the method is called asynchronously,
1919+ returns the request thread.
1920+ """
1921+
1922+ all_params = ['file' , 'rotate_type' , 'format' ]
1923+ all_params .append ('callback' )
1924+ all_params .append ('_return_http_data_only' )
1925+ all_params .append ('_preload_content' )
1926+ all_params .append ('_request_timeout' )
1927+
1928+ params = locals ()
1929+ for key , val in iteritems (params ['kwargs' ]):
1930+ if key not in all_params :
1931+ raise TypeError (
1932+ "Got an unexpected keyword argument '%s'"
1933+ " to method post_replace" % key
1934+ )
1935+ params [key ] = val
1936+ del params ['kwargs' ]
1937+ # verify the required parameter 'file' is set
1938+ if ('file' not in params ) or (params ['file' ] is None ):
1939+ raise ValueError ("Missing the required parameter `file` when calling `post_reverse`" )
1940+ # verify the required parameter 'rotateType' is set
1941+ if ('rotate_type' not in params ) or (params ['rotate_type' ] is None ):
1942+ raise ValueError ("Missing the required parameter `text` when calling `post_reverse`" )
1943+ # verify the required parameter 'format' is set
1944+ if ('format' not in params ) or (params ['format' ] is None ):
1945+ raise ValueError ("Missing the required parameter `newtext` when calling `post_reverse`" )
1946+
1947+
1948+ collection_formats = {}
1949+
1950+ path_params = {}
1951+
1952+ query_params = []
1953+ if 'format' in params :
1954+ query_params .append (('format' , params ['format' ]))
1955+ if 'rotate_type' in params :
1956+ query_params .append (('rotateType' , params ['rotate_type' ]))
1957+
1958+
1959+ header_params = {}
1960+
1961+ form_params = []
1962+ local_var_files = {}
1963+ if 'file' in params :
1964+
1965+ if isinstance (params ['file' ],dict ):
1966+ for filename , filecontext in params ['file' ].items ():
1967+ local_var_files [filename ] = filecontext
1968+ else :
1969+ local_var_files ['File' ] = params ['file' ]
1970+
1971+
1972+ body_params = None
1973+ # HTTP header `Accept`
1974+ header_params ['Accept' ] = self .api_client .\
1975+ select_header_accept (['application/json' ])
1976+
1977+ # HTTP header `Content-Type`
1978+ header_params ['Content-Type' ] = self .api_client .\
1979+ select_header_content_type (['multipart/form-data' ])
1980+
1981+ # Authentication setting
1982+ auth_settings = []
1983+
1984+ return self .api_client .call_api ('/cells/reverse' , 'POST' ,
1985+ path_params ,
1986+ query_params ,
1987+ header_params ,
1988+ body = body_params ,
1989+ post_params = form_params ,
1990+ files = local_var_files ,
1991+ response_type = 'FilesResult' ,
1992+ auth_settings = auth_settings ,
1993+ callback = params .get ('callback' ),
1994+ _return_http_data_only = params .get ('_return_http_data_only' ),
1995+ _preload_content = params .get ('_preload_content' , True ),
1996+ _request_timeout = params .get ('_request_timeout' ),
1997+ collection_formats = collection_formats )
0 commit comments