a
    ž˜ëjæ  ã                   @  sŒ   d Z ddlmZ ddlZddlmZmZ ddlmZmZm	Z	 ddl
mZmZ ddlmZmZmZmZmZ G dd	„ d	eƒZG d
d„ deƒZdS )zACode generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.é    )ÚannotationsN)Ú
ConfigDictÚmodel_serializer)ÚAnyÚDictÚOptional)ÚNotRequiredÚ	TypedDict)Ú	BaseModelÚNullableÚOptionalNullableÚUNSETÚUNSET_SENTINELc                   @  s>   e Zd ZU ded< ded< ded< ded< ded< d	ed
< dS )ÚAstraDBConnectorConfigTypedDictÚstrÚapi_endpointÚintÚ
batch_sizeÚcollection_nameÚtokenzNotRequired[bool]Úbinary_encode_vectorszNotRequired[Nullable[str]]ÚkeyspaceN)Ú__name__Ú
__module__Ú__qualname__Ú__annotations__© r   r   úw/mnt/bigstor/www/usecases/.venv/lib/python3.9/site-packages/unstructured_client/models/shared/astradbconnectorconfig.pyr      s   
r   c                   @  s”   e Zd ZU edddd�Zejdd�Zded< ded	< d
ed< ded< ded< dZ	ded< e
Zded< edd„ ƒZejdd„ ƒZedd�dd„ ƒZdS )ÚAstraDBConnectorConfigTZallow)Zpopulate_by_nameZarbitrary_types_allowedÚextraF)ÚinitzDict[str, Any]Ú__pydantic_extra__r   r   r   r   r   r   zOptional[bool]r   zOptionalNullable[str]r   c                 C  s   | j S ©N©r!   )Úselfr   r   r   Úadditional_properties,   s    z,AstraDBConnectorConfig.additional_propertiesc                 C  s
   || _ d S r"   r#   )r$   Úvaluer   r   r   r%   0   s    Úwrap)Úmodec                 C  sÔ   ddg}dg}g }|| ƒ}i }t | ƒj ¡ D ]ˆ\}}|jp<|}	| |	¡}
| |	d ¡ |	|v ob|	|v }| j |h¡px|	|v }|
d ur”|
tkr”|
||	< q,|
tkr,|	|vs¬|r,|r,|
||	< q,| ¡ D ]\}	}|||	< q¾|S )Nr   r   )	ÚtypeZmodel_fieldsÚitemsÚaliasÚgetÚpopZ__pydantic_fields_set__Úintersectionr   )r$   ÚhandlerZoptional_fieldsZnullable_fieldsZnull_default_fieldsZ
serializedÚmÚnÚfÚkÚvalZoptional_nullableÚis_setÚvr   r   r   Úserialize_model4   s4    

þ
ÿÿÿ

z&AstraDBConnectorConfig.serialize_modelN)r   r   r   r   Zmodel_configÚpydanticZFieldr!   r   r   r   r   Úpropertyr%   Úsetterr   r7   r   r   r   r   r      s    
ÿ

r   )Ú__doc__Ú
__future__r   r8   r   r   Útypingr   r   r   Ztyping_extensionsr   r	   Zunstructured_client.typesr
   r   r   r   r   r   r   r   r   r   r   Ú<module>   s   		