o
    l2Æ^÷  ã                   @   s0   d Z ddlZddlZddl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
é    Nc                   @   sª   e Zd ZdZ	 ddddœZddddœZdd	d
„Zedd„ ƒZej	dd„ ƒZedd„ ƒZ
e
j	dd„ ƒZ
edd„ ƒZej	dd„ ƒZdd„ Zdd„ Zdd„ Zdd„ Zdd„ ZdS )ÚCreateAttributezsNOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    Ústrz list[CreateAttributeEnumeration])ÚvalueÚenumerationÚtyper   r   r   Nc                 C   sJ   d| _ d| _d| _d| _|dur|| _|dur|| _|dur#|| _dS dS )z,CreateAttribute - a model defined in SwaggerN)Ú_valueÚ_enumerationÚ_typeÚdiscriminatorr   r   r   )Úselfr   r   r   © r   úX/var/www/html/env/lib/python3.10/site-packages/sib_api_v3_sdk/models/create_attribute.pyÚ__init__-   s   
ÿzCreateAttribute.__init__c                 C   ó   | j S )a  Gets the value of this CreateAttribute.  # noqa: E501

        Value of the attribute. Use only if the attribute's category is 'calculated' or 'global'  # noqa: E501

        :return: The value of this CreateAttribute.  # noqa: E501
        :rtype: str
        ©r   ©r   r   r   r   r   <   ó   	zCreateAttribute.valuec                 C   ó
   || _ dS )zûSets the value of this CreateAttribute.

        Value of the attribute. Use only if the attribute's category is 'calculated' or 'global'  # noqa: E501

        :param value: The value of this CreateAttribute.  # noqa: E501
        :type: str
        Nr   )r   r   r   r   r   r   G   ó   

c                 C   r   )aŠ  Gets the enumeration of this CreateAttribute.  # noqa: E501

        List of values and labels that the attribute can take. Use only if the attribute's category is "category". For example, [{"value":1, "label":"male"}, {"value":2, "label":"female"}]  # noqa: E501

        :return: The enumeration of this CreateAttribute.  # noqa: E501
        :rtype: list[CreateAttributeEnumeration]
        ©r   r   r   r   r   r   S   r   zCreateAttribute.enumerationc                 C   r   )a†  Sets the enumeration of this CreateAttribute.

        List of values and labels that the attribute can take. Use only if the attribute's category is "category". For example, [{"value":1, "label":"male"}, {"value":2, "label":"female"}]  # noqa: E501

        :param enumeration: The enumeration of this CreateAttribute.  # noqa: E501
        :type: list[CreateAttributeEnumeration]
        Nr   )r   r   r   r   r   r   ^   r   c                 C   r   )aò  Gets the type of this CreateAttribute.  # noqa: E501

        Type of the attribute. Use only if the attribute's category is 'normal', 'category' or 'transactional' ( type 'boolean' is only available if the category is 'normal' attribute, type 'id' is only available if the category is 'transactional' attribute & type 'category' is only available if the category is 'category' attribute )  # noqa: E501

        :return: The type of this CreateAttribute.  # noqa: E501
        :rtype: str
        )r	   r   r   r   r   r   j   r   zCreateAttribute.typec                 C   s*   g d¢}||vrt d ||¡ƒ‚|| _dS )aç  Sets the type of this CreateAttribute.

        Type of the attribute. Use only if the attribute's category is 'normal', 'category' or 'transactional' ( type 'boolean' is only available if the category is 'normal' attribute, type 'id' is only available if the category is 'transactional' attribute & type 'category' is only available if the category is 'category' attribute )  # noqa: E501

        :param type: The type of this CreateAttribute.  # noqa: E501
        :type: str
        )ÚtextÚdateÚfloatÚbooleanÚidÚcategoryz2Invalid value for `type` ({0}), must be one of {1}N)Ú
ValueErrorÚformatr	   )r   r   Úallowed_valuesr   r   r   r   u   s   	þ
c                 C   s´   i }t  | j¡D ]=\}}t| |ƒ}t|tƒr"ttdd„ |ƒƒ||< qt|dƒr.| ¡ ||< qt|t	ƒrAt	tdd„ | 
¡ ƒƒ||< q|||< qttt	ƒrX|  
¡ D ]\}}|||< qO|S )z&Returns the model properties as a dictc                 S   s   t | dƒr	|  ¡ S | S )NÚto_dict©Úhasattrr   )Úxr   r   r   Ú<lambda>�   s    z)CreateAttribute.to_dict.<locals>.<lambda>r   c                 S   s&   t | d dƒr| d | d  ¡ fS | S )Né   r   r   r    )Úitemr   r   r   r#   –   s   ÿ)ÚsixÚ	iteritemsÚswagger_typesÚgetattrÚ
isinstanceÚlistÚmapr!   r   ÚdictÚitemsÚ
issubclassr   )r   ÚresultÚattrÚ_r   Úkeyr   r   r   r   ‡   s(   

þ

ý


zCreateAttribute.to_dictc                 C   s   t  |  ¡ ¡S )z.Returns the string representation of the model)ÚpprintÚpformatr   r   r   r   r   Úto_str¢   s   zCreateAttribute.to_strc                 C   s   |   ¡ S )zFor `print` and `pprint`)r6   r   r   r   r   Ú__repr__¦   s   zCreateAttribute.__repr__c                 C   s   t |tƒsdS | j|jkS )z&Returns true if both objects are equalF)r*   r   Ú__dict__©r   Úotherr   r   r   Ú__eq__ª   s   
zCreateAttribute.__eq__c                 C   s
   | |k S )z*Returns true if both objects are not equalr   r9   r   r   r   Ú__ne__±   s   
zCreateAttribute.__ne__)NNN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r(   Úattribute_mapr   Úpropertyr   Úsetterr   r   r   r6   r7   r;   r<   r   r   r   r   r      s:    ýý









r   )r@   r4   Úrer&   Úobjectr   r   r   r   r   Ú<module>   s
   