o
    ?Hh	                     @  s`   d Z ddlmZ ddlZddlZddlZddlmZ ddlm	Z	m
Z
mZmZ G dd de	ZdS )z
    LINE Messaging API

    This document describes LINE Messaging API.  # noqa: E501

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

    Do not edit the class manually.
    )annotationsN)Optional)	BaseModelField
StrictBoolconintc                   @  s   e Zd ZU dZedddZded< eddd	d
Zded< ddgZG dd dZ	dddZ
dddZedddZdd Zed ddZdS )!Limitzu
    Limit of the Narrowcast
    https://developers.line.biz/en/reference/messaging-api/#send-narrowcast-message
    NzThe maximum number of narrowcast messages to send. Use this parameter to limit the number of narrowcast messages sent. The recipients will be chosen at random. )descriptionz#Optional[conint(strict=True, ge=1)]maxFupToRemainingQuotazIf true, the message will be sent within the maximum number of deliverable messages. The default value is `false`.  Targets will be selected at random. )aliasr	   zOptional[StrictBool]up_to_remaining_quotac                   @  s   e Zd ZdZdZdZdS )zLimit.ConfigzPydantic configurationTN)__name__
__module____qualname____doc__allow_population_by_field_namevalidate_assignment r   r   a/home/air/sanwanet/gpt-api/venv/lib/python3.10/site-packages/linebot/v3/messaging/models/limit.pyConfig"   s    r   returnstrc                 C  s   t | jddS )z:Returns the string representation of the model using aliasT)by_alias)pprintpformatdictselfr   r   r   to_str'   s   zLimit.to_strc                 C  s   t |  S )z8Returns the JSON representation of the model using alias)jsondumpsto_dictr   r   r   r   to_json+   s   zLimit.to_jsonjson_strc                 C  s   |  t|S )z.Create an instance of Limit from a JSON string)	from_dictr    loads)clsr$   r   r   r   	from_json/   s   zLimit.from_jsonc                 C  s   | j di dd}|S )z>Returns the dictionary representation of the model using aliasT)r   excludeexclude_none)r   )r   _dictr   r   r   r"   4   s
   zLimit.to_dictobjr   c                 C  sR   |du rdS t |tst|S t|d|ddur"|dndd}|S )z'Create an instance of Limit from a dictNr
   r   F)r
   r   )
isinstancer   r   	parse_objget)r'   r,   _objr   r   r   r%   <   s   

zLimit.from_dict)r   r   )r$   r   r   r   )r,   r   r   r   )r   r   r   r   r   r
   __annotations__r   _Limit__propertiesr   r   r#   classmethodr(   r"   r%   r   r   r   r   r      s   
 

r   )r   
__future__r   r   rer    typingr   pydantic.v1r   r   r   r   r   r   r   r   r   <module>   s   