o
    ?Hh                     @   sx   d Z ddlZddlZddlmZmZ ddlmZ ddlm	Z	 ddl
mZ ddlmZ ddlmZmZ G d	d
 d
eZdS )z
    Webhook Type Definition

    Webhook event definition of the LINE Messaging API  # noqa: E501

    The version of the OpenAPI document: 1.0.0
    Generated by OpenAPI Generator (https://openapi-generator.tech)

    Do not edit the class manually.
    N)validate_argumentsValidationError)	Annotated)CallbackRequest)	ApiClient)ApiResponse)ApiTypeErrorApiValueErrorc                   @   sF   e Zd ZdZdddZededefddZedede	fd	d
Z
dS )DummyzNOTE: This class is auto generated by OpenAPI Generator
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    Nc                 C   s    |d u rt  }|| _d| _d S )Nzhttps://example.com)r   get_default
api_clientline_base_path)selfr    r   ]/home/air/sanwanet/gpt-api/venv/lib/python3.10/site-packages/linebot/v3/webhooks/api/dummy.py__init__&   s   
zDummy.__init__callback_requestreturnc                 K   s*   d|d< d|v rt d| j|fi |S )a  callback  # noqa: E501

        This is the dummy endpoint to generate the model classes  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True

        >>> thread = api.callback(callback_request, async_req=True)
        >>> result = thread.get()

        :param callback_request: (required)
        :type callback_request: CallbackRequest
        :param async_req: Whether to execute the request asynchronously.
        :type async_req: bool, optional
        :param _request_timeout: timeout setting for this request. If one
                                 number provided, it will be total request
                                 timeout. It can also be a pair (tuple) of
                                 (connection, read) timeouts.
        :return: Returns the result object.
                 If the method is called asynchronously,
                 returns the request thread.
        :rtype: str
        T_return_http_data_only_preload_contentzError! Please call the callback_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data)
ValueErrorcallback_with_http_info)r   r   kwargsr   r   r   callback-   s   zDummy.callbackc                 K   s"  | j }t }dg}|g d |d  D ]\}}||vr$td| |||< q|d= i }i }	g }
t|di }g }i }d}|d durJ|d }| jdg|d< |d	| j	dg}|rd||d
< g }ddi}| jj
dd|	|
|||||||d|d|dd|d|||ddS )a  callback  # noqa: E501

        This is the dummy endpoint to generate the model classes  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True

        >>> thread = api.callback_with_http_info(callback_request, async_req=True)
        >>> result = thread.get()

        :param callback_request: (required)
        :type callback_request: CallbackRequest
        :param async_req: Whether to execute the request asynchronously.
        :type async_req: bool, optional
        :param _preload_content: if False, the ApiResponse.data will
                                 be set to none and raw_data will store the
                                 HTTP response body without reading/decoding.
                                 Default is True.
        :type _preload_content: bool, optional
        :param _return_http_data_only: response data instead of ApiResponse
                                       object with status code, headers, etc
        :type _return_http_data_only: bool, optional
        :param _request_timeout: timeout setting for this request. If one
                                 number provided, it will be total request
                                 timeout. It can also be a pair (tuple) of
                                 (connection, read) timeouts.
        :param _request_auth: set to override the auth_settings for an a single
                              request; this effectively ignores the authentication
                              in the spec for a single request.
        :type _request_auth: dict, optional
        :type _content_type: string, optional: force content-type for the request
        :return: Returns the result object.
                 If the method is called asynchronously,
                 returns the request thread.
        :rtype: tuple(str, status_code(int), headers(HTTPHeaderDict))
        r   )	async_reqr   r   _request_timeout_request_auth_content_type_headersr   z:Got an unexpected keyword argument '%s' to method callbackr   Nzapplication/jsonAcceptr   zContent-Type200strz	/callbackPOSTr   r   r   Tr   r   )bodypost_paramsfilesresponse_types_mapauth_settingsr   r   r   r   _hostcollection_formatsr   )r   localsextenditemsr   dictgetr   select_header_acceptselect_header_content_typecall_api)r   r   r   r(   _params_all_params_key_val_collection_formats_path_params_query_params_header_params_form_params_files_body_params_content_types_list_auth_settings_response_types_mapr   r   r   r   J   sp   &

zDummy.callback_with_http_info)N)__name__
__module____qualname____doc__r   r   r   r!   r   r   r   r   r   r   r   r
      s    
r
   )rC   reiopydantic.v1r   r   typing_extensionsr   +linebot.v3.webhooks.models.callback_requestr   linebot.v3.webhooks.api_clientr    linebot.v3.webhooks.api_responser   linebot.v3.webhooks.exceptionsr   r	   objectr
   r   r   r   r   <module>   s   