o
    l2Æ^ÉZ  ã                   @   s@   d Z ddlmZ ddlZddlZddlmZ G dd„ deƒZdS )aø  
    SendinBlue API

    SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to :   - Manage your campaigns and get the statistics   - Manage your contacts   - Send transactional Emails and SMS   - and much more...  You can download our wrappers at https://github.com/orgs/sendinblue  **Possible responses**   | Code | Message |   | :-------------: | ------------- |   | 200  | OK. Successful Request  |   | 201  | OK. Successful Creation |   | 202  | OK. Request accepted |   | 204  | OK. Successful Update/Deletion  |   | 400  | Error. Bad Request  |   | 401  | Error. Authentication Needed  |   | 402  | Error. Not enough credit, plan upgrade needed  |   | 403  | Error. Permission denied  |   | 404  | Error. Object does not exist |   | 405  | Error. Method not allowed  |   | 406  | Error. Not Acceptable  |   # noqa: E501

    OpenAPI spec version: 3.0.0
    Contact: contact@sendinblue.com
    Generated by: https://github.com/swagger-api/swagger-codegen.git
é    )Úabsolute_importN)Ú	ApiClientc                   @   sz   e Zd ZdZddd„Zdd„ Zdd„ Zd	d
„ Zdd„ Zdd„ Z	dd„ Z
dd„ Zdd„ Zdd„ Zdd„ Zdd„ Zdd„ ZdS )Ú
SendersApiz«NOTE: 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                 C   s   |d u rt ƒ }|| _d S ©N)r   Ú
api_client)Úselfr   © r   úP/var/www/html/env/lib/python3.10/site-packages/sib_api_v3_sdk/api/senders_api.pyÚ__init__   s   
zSendersApi.__init__c                 K   ó6   d|d< |  d¡r| jdi |¤ŽS | jdi |¤Ž}|S )aè  Create a new sender  # noqa: E501

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

        :param async_req bool
        :param CreateSender sender: sender's name
        :return: CreateSenderModel
                 If the method is called asynchronously,
                 returns the request thread.
        TÚ_return_http_data_onlyÚ	async_reqNr   )ÚgetÚcreate_sender_with_http_info©r   ÚkwargsÚdatar   r   r	   Úcreate_sender$   s
   
zSendersApi.create_senderc                 K   s
  dg}|  d¡ |  d¡ |  d¡ |  d¡ tƒ }t |d ¡D ]\}}||vr/td| ƒ‚|||< q!|d= i }i }g }i }	g }
i }d}d|v rM|d }| j d	g¡|	d
< | j d	g¡|	d< ddg}| jjdd|||	||
|d|| 	d¡| 	d¡| 	dd¡| 	d¡|d�S )a÷  Create a new sender  # noqa: E501

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

        :param async_req bool
        :param CreateSender sender: sender's name
        :return: CreateSenderModel
                 If the method is called asynchronously,
                 returns the request thread.
        Úsenderr   r   Ú_preload_contentÚ_request_timeoutr   z?Got an unexpected keyword argument '%s' to method create_senderNúapplication/jsonÚAcceptúContent-Typeúapi-keyúpartner-keyú/sendersÚPOSTÚCreateSenderModelT©
ÚbodyÚpost_paramsÚfilesÚresponse_typeÚauth_settingsr   r   r   r   Úcollection_formats©
ÚappendÚlocalsÚsixÚ	iteritemsÚ	TypeErrorr   Úselect_header_acceptÚselect_header_content_typeÚcall_apir   ©r   r   Ú
all_paramsÚparamsÚkeyÚvalr%   Úpath_paramsÚquery_paramsÚheader_paramsÚform_paramsÚlocal_var_filesÚbody_paramsr$   r   r   r	   r   9   s^   



ÿÿ
ÿÿ
òz'SendersApi.create_sender_with_http_infoc                 K   ó:   d|d< |  d¡r| j|fi |¤ŽS | j|fi |¤Ž}|S )aê  Delete a sender  # noqa: E501

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

        :param async_req bool
        :param int sender_id: Id of the sender (required)
        :return: None
                 If the method is called asynchronously,
                 returns the request thread.
        Tr   r   )r   Údelete_sender_with_http_info©r   Ú	sender_idr   r   r   r   r	   Údelete_sender�   ó
   
zSendersApi.delete_senderc                 K   s*  dg}|  d¡ |  d¡ |  d¡ |  d¡ tƒ }t |d ¡D ]\}}||vr/td| ƒ‚|||< q!|d= d|vsA|d du rEtd	ƒ‚i }i }d|v rS|d |d
< g }	i }
g }i }d}| j dg¡|
d< | j dg¡|
d< ddg}| jj	dd||	|
|||d|| 
d¡| 
d¡| 
dd¡| 
d¡|d�S )aù  Delete a sender  # noqa: E501

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

        :param async_req bool
        :param int sender_id: Id of the sender (required)
        :return: None
                 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 delete_senderNzGMissing the required parameter `sender_id` when calling `delete_sender`ÚsenderIdr   r   r   r   r   ú/senders/{senderId}ÚDELETETr   ©r'   r(   r)   r*   r+   Ú
ValueErrorr   r,   r-   r.   r   ©r   r=   r   r0   r1   r2   r3   r%   r4   r5   r6   r7   r8   r9   r$   r   r   r	   r;   –   ód   



ÿÿ
ÿÿ
òz'SendersApi.delete_sender_with_http_infoc                 K   r   )a¼  Get all the dedicated IPs for your account  # 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_ips(async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :return: GetIps
                 If the method is called asynchronously,
                 returns the request thread.
        Tr   r   Nr   )r   Úget_ips_with_http_infor   r   r   r	   Úget_ipsâ   s
   
zSendersApi.get_ipsc                 K   sø   g }|  d¡ |  d¡ |  d¡ |  d¡ tƒ }t |d ¡D ]\}}||vr.td| ƒ‚|||< q |d= i }i }g }i }	g }
i }d}| j dg¡|	d	< | j dg¡|	d
< ddg}| jjdd|||	||
|d|| 	d¡| 	d¡| 	dd¡| 	d¡|d�S )aË  Get all the dedicated IPs for your account  # 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_ips_with_http_info(async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :return: GetIps
                 If the method is called asynchronously,
                 returns the request thread.
        r   r   r   r   r   z9Got an unexpected keyword argument '%s' to method get_ipsNr   r   r   r   r   z/senders/ipsÚGETÚGetIpsTr   r&   r/   r   r   r	   rG   ö   sZ   



ÿÿ
ÿÿ
òz!SendersApi.get_ips_with_http_infoc                 K   r:   )a  Get all the dedicated IPs for a sender  # 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_ips_from_sender(sender_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param int sender_id: Id of the sender (required)
        :return: GetIpsFromSender
                 If the method is called asynchronously,
                 returns the request thread.
        Tr   r   )r   Ú"get_ips_from_sender_with_http_infor<   r   r   r	   Úget_ips_from_sender;  r?   zSendersApi.get_ips_from_senderc                 K   s*  dg}|  d¡ |  d¡ |  d¡ |  d¡ tƒ }t |d ¡D ]\}}||vr/td| ƒ‚|||< q!|d= d|vsA|d du rEtd	ƒ‚i }i }d|v rS|d |d
< g }	i }
g }i }d}| j dg¡|
d< | j dg¡|
d< ddg}| jj	dd||	|
|||d|| 
d¡| 
d¡| 
dd¡| 
d¡|d�S )a"  Get all the dedicated IPs for a sender  # 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_ips_from_sender_with_http_info(sender_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param int sender_id: Id of the sender (required)
        :return: GetIpsFromSender
                 If the method is called asynchronously,
                 returns the request thread.
        r=   r   r   r   r   r   zEGot an unexpected keyword argument '%s' to method get_ips_from_senderNzMMissing the required parameter `sender_id` when calling `get_ips_from_sender`r@   r   r   r   r   r   z/senders/{senderId}/ipsrI   ÚGetIpsFromSenderTr   rC   rE   r   r   r	   rK   P  rF   z-SendersApi.get_ips_from_sender_with_http_infoc                 K   r   )ah  Get the list of all your senders  # 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_senders(async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str ip: Filter your senders for a specific ip (available for dedicated IP usage only)
        :param str domain: Filter your senders for a specific domain
        :return: GetSendersList
                 If the method is called asynchronously,
                 returns the request thread.
        Tr   r   Nr   )r   Úget_senders_with_http_infor   r   r   r	   Úget_sendersœ  s
   
zSendersApi.get_sendersc                 K   s0  ddg}|  d¡ |  d¡ |  d¡ |  d¡ tƒ }t |d ¡D ]\}}||vr0td| ƒ‚|||< q"|d= i }i }g }d|v rK|  d|d f¡ d|v rX|  d|d f¡ i }	g }
i }d	}| j d
g¡|	d< | j d
g¡|	d< ddg}| jjdd|||	||
|d|| 	d¡| 	d¡| 	dd¡| 	d¡|d�S )aw  Get the list of all your senders  # 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_senders_with_http_info(async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str ip: Filter your senders for a specific ip (available for dedicated IP usage only)
        :param str domain: Filter your senders for a specific domain
        :return: GetSendersList
                 If the method is called asynchronously,
                 returns the request thread.
        ÚipÚdomainr   r   r   r   r   z=Got an unexpected keyword argument '%s' to method get_sendersNr   r   r   r   r   r   rI   ÚGetSendersListTr   r&   r/   r   r   r	   rN   ²  sb   



ÿÿ
ÿÿ
òz%SendersApi.get_senders_with_http_infoc                 K   r:   )a  Update a sender  # noqa: E501

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

        :param async_req bool
        :param int sender_id: Id of the sender (required)
        :param UpdateSender sender: sender's name
        :return: None
                 If the method is called asynchronously,
                 returns the request thread.
        Tr   r   )r   Úupdate_sender_with_http_infor<   r   r   r	   Úupdate_senderý  s
   
zSendersApi.update_senderc                 K   s<  ddg}|  d¡ |  d¡ |  d¡ |  d¡ tƒ }t |d ¡D ]\}}||vr0td| ƒ‚|||< q"|d= d|vsB|d d	u rFtd
ƒ‚i }i }d|v rT|d |d< g }	i }
g }i }d	}d|v rf|d }| j dg¡|
d< | j dg¡|
d< ddg}| jj	dd||	|
|||d	|| 
d¡| 
d¡| 
dd¡| 
d¡|d�S )a+  Update a sender  # noqa: E501

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

        :param async_req bool
        :param int sender_id: Id of the sender (required)
        :param UpdateSender sender: sender's name
        :return: None
                 If the method is called asynchronously,
                 returns the request thread.
        r=   r   r   r   r   r   r   z?Got an unexpected keyword argument '%s' to method update_senderNzGMissing the required parameter `sender_id` when calling `update_sender`r@   r   r   r   r   r   rA   ÚPUTTr   rC   rE   r   r   r	   rS     sh   



ÿÿ
ÿÿ
òz'SendersApi.update_sender_with_http_infor   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r
   r   r   r>   r;   rH   rG   rL   rK   rO   rN   rT   rS   r   r   r   r	   r      s    
HLELKr   )	rY   Ú
__future__r   Úrer)   Úsib_api_v3_sdk.api_clientr   Úobjectr   r   r   r   r	   Ú<module>   s   