
    ~i5[                     J    d Z ddlmZ ddlZddlZddlZ G d de          ZdS )a  
    translate20250301

    No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501

    OpenAPI spec version: common-version
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
    )absolute_importNc                   b    e Zd ZdZddZd Zd Zd Zd Zd Z	d	 Z
d
 Zd Zd Zd Zd Zd ZdS )TRANSLATE20250301ApizNOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    Ref: https://github.com/swagger-api/swagger-codegen
    Nc                 >    |t          j                    }|| _        d S N)volcenginesdkcore	ApiClient
api_client)selfr
   s     /root/.openclaw/workspace/.venvs/ark-sdk/lib/python3.11/site-packages/volcenginesdktranslate20250301/api/translate20250301_api.py__init__zTRANSLATE20250301Api.__init__   s!    *466J$    c                 r    d|d<   |                     d          r | j        |fi |S  | j        |fi |}|S )a  get_usage  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.get_usage(body, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param GetUsageRequest body: (required)
        :return: GetUsageResponse
                 If the method is called asynchronously,
                 returns the request thread.
        T_return_http_data_only	async_req)getget_usage_with_http_infor   bodykwargsdatas       r   	get_usagezTRANSLATE20250301Api.get_usage$   s]     ,0'(::k"" 	040@@@@@2T24BB6BBTKr   c                 4   dg}|                     d           |                     d           |                     d           |                     d           t                      }t          j        |d                   D ] \  }}||vrt	          d|z            |||<   !|d= | j        j        rd|vs|d         t          d	          i }i }g }	i }
g }i }d}d|v r|d         }| j                            d
g          |
d<   | j        	                    d
g          |
d<   dg}| j        
                    dd||	|
|||d||                    d          |                    d          |                    dd          |                    d          |          S )a  get_usage  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.get_usage_with_http_info(body, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param GetUsageRequest body: (required)
        :return: GetUsageResponse
                 If the method is called asynchronously,
                 returns the request thread.
        r   r   r   _preload_content_request_timeoutr   z;Got an unexpected keyword argument '%s' to method get_usageNz>Missing the required parameter `body` when calling `get_usage`application/jsonAcceptContent-TypevolcengineSignz5/GetUsage/2025-03-01/translate/post/application_json/POSTGetUsageResponseT
r   post_paramsfilesresponse_typeauth_settingsr   r   r   r   collection_formatsappendlocalssix	iteritems	TypeErrorr
   client_side_validation
ValueErrorselect_header_acceptselect_header_content_typecall_apir   r   r   r   
all_paramsparamskeyvalr'   path_paramsquery_paramsheader_paramsform_paramslocal_var_filesbody_paramsr&   s                  r   r   z-TRANSLATE20250301Api.get_usage_with_http_info9   s    X
+&&&2333,---,---fX&677 	 	HC*$$+-01   F3KK8?1 	_vV7K7K7=f~7M]^^^V .K"&/"F"F #" #"h )-(R(R )" )"n% **''CV#!,'jj--#)::.F#G#G#ZZ(:DAA#ZZ(:;;1 ( 3 3 	3r   c                 r    d|d<   |                     d          r | j        |fi |S  | j        |fi |}|S )a  lang_detect  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.lang_detect(body, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param LangDetectRequest body: (required)
        :return: LangDetectResponse
                 If the method is called asynchronously,
                 returns the request thread.
        Tr   r   )r   lang_detect_with_http_infor   s       r   lang_detectz TRANSLATE20250301Api.lang_detect   ]     ,0'(::k"" 	2424BB6BBB4T4TDDVDDTKr   c                 4   dg}|                     d           |                     d           |                     d           |                     d           t                      }t          j        |d                   D ] \  }}||vrt	          d|z            |||<   !|d= | j        j        rd|vs|d         t          d	          i }i }g }	i }
g }i }d}d|v r|d         }| j                            d
g          |
d<   | j        	                    d
g          |
d<   dg}| j        
                    dd||	|
|||d||                    d          |                    d          |                    dd          |                    d          |          S )a  lang_detect  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.lang_detect_with_http_info(body, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param LangDetectRequest body: (required)
        :return: LangDetectResponse
                 If the method is called asynchronously,
                 returns the request thread.
        r   r   r   r   r   r   z=Got an unexpected keyword argument '%s' to method lang_detectNz@Missing the required parameter `body` when calling `lang_detect`r   r   r   r   z7/LangDetect/2025-03-01/translate/post/application_json/r    LangDetectResponseTr"   r(   r3   s                  r   r?   z/TRANSLATE20250301Api.lang_detect_with_http_info       X
+&&&2333,---,---fX&677 	 	HC*$$-/23   F3KK8?1 	avV7K7K7=f~7M_```V .K"&/"F"F #" #"h )-(R(R )" )"n% **''Ev#!.'jj--#)::.F#G#G#ZZ(:DAA#ZZ(:;;1 ( 3 3 	3r   c                 r    d|d<   |                     d          r | j        |fi |S  | j        |fi |}|S )a  query_audio  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.query_audio(body, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param QueryAudioRequest body: (required)
        :return: QueryAudioResponse
                 If the method is called asynchronously,
                 returns the request thread.
        Tr   r   )r   query_audio_with_http_infor   s       r   query_audioz TRANSLATE20250301Api.query_audio   rA   r   c                 4   dg}|                     d           |                     d           |                     d           |                     d           t                      }t          j        |d                   D ] \  }}||vrt	          d|z            |||<   !|d= | j        j        rd|vs|d         t          d	          i }i }g }	i }
g }i }d}d|v r|d         }| j                            d
g          |
d<   | j        	                    d
g          |
d<   dg}| j        
                    dd||	|
|||d||                    d          |                    d          |                    dd          |                    d          |          S )a  query_audio  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.query_audio_with_http_info(body, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param QueryAudioRequest body: (required)
        :return: QueryAudioResponse
                 If the method is called asynchronously,
                 returns the request thread.
        r   r   r   r   r   r   z=Got an unexpected keyword argument '%s' to method query_audioNz@Missing the required parameter `body` when calling `query_audio`r   r   r   r   z7/QueryAudio/2025-03-01/translate/post/application_json/r    QueryAudioResponseTr"   r(   r3   s                  r   rF   z/TRANSLATE20250301Api.query_audio_with_http_info   rD   r   c                 r    d|d<   |                     d          r | j        |fi |S  | j        |fi |}|S )a  submit_audio  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.submit_audio(body, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param SubmitAudioRequest body: (required)
        :return: SubmitAudioResponse
                 If the method is called asynchronously,
                 returns the request thread.
        Tr   r   )r   submit_audio_with_http_infor   s       r   submit_audioz!TRANSLATE20250301Api.submit_audioG  s]     ,0'(::k"" 	343DCCFCCC5T5dEEfEETKr   c                 4   dg}|                     d           |                     d           |                     d           |                     d           t                      }t          j        |d                   D ] \  }}||vrt	          d|z            |||<   !|d= | j        j        rd|vs|d         t          d	          i }i }g }	i }
g }i }d}d|v r|d         }| j                            d
g          |
d<   | j        	                    d
g          |
d<   dg}| j        
                    dd||	|
|||d||                    d          |                    d          |                    dd          |                    d          |          S )a  submit_audio  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.submit_audio_with_http_info(body, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param SubmitAudioRequest body: (required)
        :return: SubmitAudioResponse
                 If the method is called asynchronously,
                 returns the request thread.
        r   r   r   r   r   r   z>Got an unexpected keyword argument '%s' to method submit_audioNzAMissing the required parameter `body` when calling `submit_audio`r   r   r   r   z8/SubmitAudio/2025-03-01/translate/post/application_json/r    SubmitAudioResponseTr"   r(   r3   s                  r   rK   z0TRANSLATE20250301Api.submit_audio_with_http_info\  s    X
+&&&2333,---,---fX&677 	 	HC*$$.034   F3KK8?1 	bvV7K7K7=f~7M`aaaV .K"&/"F"F #" #"h )-(R(R )" )"n% **''F#!/'jj--#)::.F#G#G#ZZ(:DAA#ZZ(:;;1 ( 3 3 	3r   c                 r    d|d<   |                     d          r | j        |fi |S  | j        |fi |}|S )a  translate_image  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.translate_image(body, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param TranslateImageRequest body: (required)
        :return: TranslateImageResponse
                 If the method is called asynchronously,
                 returns the request thread.
        Tr   r   )r   translate_image_with_http_infor   s       r   translate_imagez$TRANSLATE20250301Api.translate_image  s]     ,0'(::k"" 	646tFFvFFF8T8HHHHTKr   c                 4   dg}|                     d           |                     d           |                     d           |                     d           t                      }t          j        |d                   D ] \  }}||vrt	          d|z            |||<   !|d= | j        j        rd|vs|d         t          d	          i }i }g }	i }
g }i }d}d|v r|d         }| j                            d
g          |
d<   | j        	                    d
g          |
d<   dg}| j        
                    dd||	|
|||d||                    d          |                    d          |                    dd          |                    d          |          S )a  translate_image  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.translate_image_with_http_info(body, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param TranslateImageRequest body: (required)
        :return: TranslateImageResponse
                 If the method is called asynchronously,
                 returns the request thread.
        r   r   r   r   r   r   zAGot an unexpected keyword argument '%s' to method translate_imageNzDMissing the required parameter `body` when calling `translate_image`r   r   r   r   z;/TranslateImage/2025-03-01/translate/post/application_json/r    TranslateImageResponseTr"   r(   r3   s                  r   rP   z3TRANSLATE20250301Api.translate_image_with_http_info  s    X
+&&&2333,---,---fX&677 	 	HC*$$1367   F3KK8?1 	evV7K7K7=f~7McdddV .K"&/"F"F #" #"h )-(R(R )" )"n% **''I6#!2'jj--#)::.F#G#G#ZZ(:DAA#ZZ(:;;1 ( 3 3 	3r   c                 r    d|d<   |                     d          r | j        |fi |S  | j        |fi |}|S )a  translate_text  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.translate_text(body, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param TranslateTextRequest body: (required)
        :return: TranslateTextResponse
                 If the method is called asynchronously,
                 returns the request thread.
        Tr   r   )r   translate_text_with_http_infor   s       r   translate_textz#TRANSLATE20250301Api.translate_text	  s]     ,0'(::k"" 	545dEEfEEE7T7GGGGTKr   c                 4   dg}|                     d           |                     d           |                     d           |                     d           t                      }t          j        |d                   D ] \  }}||vrt	          d|z            |||<   !|d= | j        j        rd|vs|d         t          d	          i }i }g }	i }
g }i }d}d|v r|d         }| j                            d
g          |
d<   | j        	                    d
g          |
d<   dg}| j        
                    dd||	|
|||d||                    d          |                    d          |                    dd          |                    d          |          S )a   translate_text  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.translate_text_with_http_info(body, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param TranslateTextRequest body: (required)
        :return: TranslateTextResponse
                 If the method is called asynchronously,
                 returns the request thread.
        r   r   r   r   r   r   z@Got an unexpected keyword argument '%s' to method translate_textNzCMissing the required parameter `body` when calling `translate_text`r   r   r   r   z:/TranslateText/2025-03-01/translate/post/application_json/r    TranslateTextResponseTr"   r(   r3   s                  r   rU   z2TRANSLATE20250301Api.translate_text_with_http_info  s    X
+&&&2333,---,---fX&677 	 	HC*$$0256   F3KK8?1 	dvV7K7K7=f~7MbcccV .K"&/"F"F #" #"h )-(R(R )" )"n% **''H&#!1'jj--#)::.F#G#G#ZZ(:DAA#ZZ(:;;1 ( 3 3 	3r   r   )__name__
__module____qualname____doc__r   r   r   r@   r?   rG   rF   rL   rK   rQ   rP   rV   rU    r   r   r   r      s         % % % %
  *J3 J3 J3X  *J3 J3 J3X  *J3 J3 J3X  *J3 J3 J3X  *J3 J3 J3X  *J3 J3 J3 J3 J3r   r   )r\   
__future__r   rer+   r   objectr   r]   r   r   <module>ra      s     ' & & & & & 				 


    P	3 P	3 P	3 P	3 P	36 P	3 P	3 P	3 P	3 P	3r   