o
    øÎ
`Oi  ã                   @   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 )Ú
FoldersApiz«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/folders_api.pyÚ__init__   s   
zFoldersApi.__init__c                 K   ó:   d|d< |  d¡r| j|fi |¤ŽS | j|fi |¤Ž}|S )a
  Create a folder  # 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_folder(create_folder, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param CreateUpdateFolder create_folder: Name of the folder (required)
        :return: CreateModel
                 If the method is called asynchronously,
                 returns the request thread.
        TÚ_return_http_data_onlyÚ	async_req)ÚgetÚcreate_folder_with_http_info)r   Úcreate_folderÚkwargsÚdatar   r   r	   r   $   ó
   
zFoldersApi.create_folderc                 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 }g }	i }
g }i }d}d|v r[|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 folder  # 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_folder_with_http_info(create_folder, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param CreateUpdateFolder create_folder: Name of the folder (required)
        :return: CreateModel
                 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 create_folderNzKMissing the required parameter `create_folder` when calling `create_folder`úapplication/jsonÚAcceptúContent-Typeúapi-keyúpartner-keyú/contacts/foldersÚPOSTÚCreateModelT©
ÚbodyÚpost_paramsÚfilesÚresponse_typeÚauth_settingsr   r   r   r   Úcollection_formats©ÚappendÚlocalsÚsixÚ	iteritemsÚ	TypeErrorÚ
ValueErrorr   Ú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#   r   r   r	   r   9   sd   



ÿÿ
ÿÿ
òz'FoldersApi.create_folder_with_http_infoc                 K   r   )aþ  Delete a folder (and all its lists)  # 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_folder(folder_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param int folder_id: Id of the folder (required)
        :return: None
                 If the method is called asynchronously,
                 returns the request thread.
        Tr   r   )r   Údelete_folder_with_http_info©r   Ú	folder_idr   r   r   r   r	   Údelete_folder…   r   zFoldersApi.delete_folderc                 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 folder (and all its lists)  # 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_folder_with_http_info(folder_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param int folder_id: Id of the folder (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_folderNzGMissing the required parameter `folder_id` when calling `delete_folder`ÚfolderIdr   r   r   r   r   ú/contacts/folders/{folderId}ÚDELETETr   r%   ©r   r;   r   r/   r0   r1   r2   r$   r3   r4   r5   r6   r7   r8   r#   r   r   r	   r9   š   ód   



ÿÿ
ÿÿ
òz'FoldersApi.delete_folder_with_http_infoc                 K   r   )a÷  Returns a folder's details  # 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_folder(folder_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param int folder_id: id of the folder (required)
        :return: GetFolder
                 If the method is called asynchronously,
                 returns the request thread.
        Tr   r   )r   Úget_folder_with_http_infor:   r   r   r	   Ú
get_folderæ   r   zFoldersApi.get_folderc                 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  Returns a folder's details  # 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_folder_with_http_info(folder_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param int folder_id: id of the folder (required)
        :return: GetFolder
                 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 get_folderNzDMissing the required parameter `folder_id` when calling `get_folder`r=   r   r   r   r   r   r>   ÚGETÚ	GetFolderTr   r%   r@   r   r   r	   rB   û   rA   z$FoldersApi.get_folder_with_http_infoc                 K   r   )a  Get lists in a folder  # 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_folder_lists(folder_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param int folder_id: Id of the folder (required)
        :param int limit: Number of documents per page
        :param int offset: Index of the first document of the page
        :param str sort: Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed
        :return: GetFolderLists
                 If the method is called asynchronously,
                 returns the request thread.
        Tr   r   )r   Úget_folder_lists_with_http_infor:   r   r   r	   Úget_folder_listsG  s
   
zFoldersApi.get_folder_listsc                 K   s–  g d¢}|  d¡ |  d¡ |  d¡ |  d¡ tƒ }t |d ¡D ]\}}||vr0td| ƒ‚|||< q"|d= d|vsB|d d	u rFtd
ƒ‚d|v rT|d dkrTtdƒ‚i }i }d|v rb|d |d< g }	d|v rq|	  d|d f¡ d|v r~|	  d|d f¡ d|v r‹|	  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 )a  Get lists in a folder  # 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_folder_lists_with_http_info(folder_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param int folder_id: Id of the folder (required)
        :param int limit: Number of documents per page
        :param int offset: Index of the first document of the page
        :param str sort: Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed
        :return: GetFolderLists
                 If the method is called asynchronously,
                 returns the request thread.
        )r;   ÚlimitÚoffsetÚsortr   r   r   r   r   zBGot an unexpected keyword argument '%s' to method get_folder_listsr;   NzJMissing the required parameter `folder_id` when calling `get_folder_lists`rH   é2   zoInvalid value for parameter `limit` when calling `get_folder_lists`, must be a value less than or equal to `50`r=   rI   rJ   r   r   r   r   r   z"/contacts/folders/{folderId}/listsrD   ÚGetFolderListsTr   r%   r@   r   r   r	   rF   _  st   



ÿÿ
ÿÿ
òz*FoldersApi.get_folder_lists_with_http_infoc                 K   ó>   d|d< |  d¡r| j||fi |¤ŽS | j||fi |¤Ž}|S )aà  Get all folders  # 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_folders(limit, offset, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param int limit: Number of documents per page (required)
        :param int offset: Index of the first document of the page (required)
        :param str sort: Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed
        :return: GetFolders
                 If the method is called asynchronously,
                 returns the request thread.
        Tr   r   )r   Úget_folders_with_http_info)r   rH   rI   r   r   r   r   r	   Úget_folders¶  s
   
zFoldersApi.get_foldersc                 K   sž  g d¢}|  d¡ |  d¡ |  d¡ |  d¡ tƒ }t |d ¡D ]\}}||vr0td| ƒ‚|||< q"|d= d|vsB|d d	u rFtd
ƒ‚d|vsP|d d	u rTtdƒ‚d|v rb|d dkrbtdƒ‚i }i }	g }
d|v ru|
  d|d f¡ d|v r‚|
  d|d f¡ d|v r�|
  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 )aï  Get all folders  # 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_folders_with_http_info(limit, offset, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param int limit: Number of documents per page (required)
        :param int offset: Index of the first document of the page (required)
        :param str sort: Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed
        :return: GetFolders
                 If the method is called asynchronously,
                 returns the request thread.
        )rH   rI   rJ   r   r   r   r   r   z=Got an unexpected keyword argument '%s' to method get_foldersrH   NzAMissing the required parameter `limit` when calling `get_folders`rI   zBMissing the required parameter `offset` when calling `get_folders`rK   zjInvalid value for parameter `limit` when calling `get_folders`, must be a value less than or equal to `50`rJ   r   r   r   r   r   r   rD   Ú
GetFoldersTr   r%   )r   rH   rI   r   r/   r0   r1   r2   r$   r3   r4   r5   r6   r7   r8   r#   r   r   r	   rN   Í  sv   



ÿÿ
ÿÿ
òz%FoldersApi.get_folders_with_http_infoc                 K   rM   )aH  Update a folder  # 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_folder(folder_id, update_folder, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param int folder_id: Id of the folder (required)
        :param CreateUpdateFolder update_folder: Name of the folder (required)
        :return: None
                 If the method is called asynchronously,
                 returns the request thread.
        Tr   r   )r   Úupdate_folder_with_http_info)r   r;   Úupdate_folderr   r   r   r   r	   rR   %  s
   
zFoldersApi.update_folderc                 K   sX  ddg}|  d¡ |  d¡ |  d¡ |  d¡ tƒ }t |d ¡D ]\}}||vr0td| ƒ‚|||< q"|d= d|vsB|d d	u rFtd
ƒ‚d|vsP|d d	u rTtdƒ‚i }i }	d|v rb|d |	d< g }
i }g }i }d	}d|v rt|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  Update a folder  # 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_folder_with_http_info(folder_id, update_folder, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param int folder_id: Id of the folder (required)
        :param CreateUpdateFolder update_folder: Name of the folder (required)
        :return: None
                 If the method is called asynchronously,
                 returns the request thread.
        r;   rR   r   r   r   r   r   z?Got an unexpected keyword argument '%s' to method update_folderNzGMissing the required parameter `folder_id` when calling `update_folder`zKMissing the required parameter `update_folder` when calling `update_folder`r=   r   r   r   r   r   r>   ÚPUTTr   r%   )r   r;   rR   r   r/   r0   r1   r2   r$   r3   r4   r5   r6   r7   r8   r#   r   r   r	   rQ   ;  sn   



ÿÿ
ÿÿ
òz'FoldersApi.update_folder_with_http_infor   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r
   r   r   r<   r9   rC   rB   rG   rF   rO   rN   rR   rQ   r   r   r   r	   r      s    
LLLWXr   )	rW   Ú
__future__r   Úrer(   Úsib_api_v3_sdk.api_clientr   Úobjectr   r   r   r   r	   Ú<module>   s   