a
    ž˜ëj÷  ã                   @  sÔ   d Z ddlmZ ddlZddlZddlmZ ddl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 dd	lmZmZmZmZ G d
d„ deƒZG dd„ deƒ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)Úmodel_serializer)ÚOptional)Ú	AnnotatedÚNotRequiredÚ	TypedDict)ÚsourceconnectorinformationÚupdatesourceconnector)Ú	BaseModelÚNullableÚOptionalNullableÚUNSETÚUNSET_SENTINEL)ÚFieldMetadataÚHeaderMetadataÚPathParamMetadataÚRequestMetadatac                   @  s&   e Zd ZU ded< ded< ded< dS )ÚUpdateSourceRequestTypedDictz;shared_updatesourceconnector.UpdateSourceConnectorTypedDictÚupdate_source_connectorÚstrÚ	source_idzNotRequired[Nullable[str]]Úunstructured_api_keyN©Ú__name__Ú
__module__Ú__qualname__Ú__annotations__© r   r   úr/mnt/bigstor/www/usecases/.venv/lib/python3.9/site-packages/unstructured_client/models/operations/update_source.pyr      s   
r   c                   @  s<   e Zd ZU ded< ded< eZded< edd�d	d
„ ƒZdS )ÚUpdateSourceRequestz„Annotated[shared_updatesourceconnector.UpdateSourceConnector, FieldMetadata(request=RequestMetadata(media_type='application/json'))]r   zTAnnotated[str, FieldMetadata(path=PathParamMetadata(style='simple', explode=False))]r   z“Annotated[OptionalNullable[str], pydantic.Field(alias='unstructured-api-key'), FieldMetadata(header=HeaderMetadata(style='simple', explode=False))]r   Úwrap)Úmodec                 C  s¸   dg}dg}g }|| ƒ}i }t | ƒj ¡ D ]ˆ\}}|jp:|}	| |	¡}
| |	d ¡ |	|v o`|	|v }| j |h¡pv|	|v }|
d ur’|
tkr’|
||	< q*|
tkr*|	|vsª|r*|r*|
||	< q*|S )Nzunstructured-api-key)	ÚtypeZmodel_fieldsÚitemsÚaliasÚgetÚpopZ__pydantic_fields_set__Úintersectionr   )ÚselfÚhandlerZoptional_fieldsZnullable_fieldsZnull_default_fieldsZ
serializedÚmÚnÚfÚkÚvalZoptional_nullableÚis_setr   r   r   Úserialize_model2   s0    

þ
ÿÿÿ
z#UpdateSourceRequest.serialize_modelN)r   r   r   r   r   r   r   r0   r   r   r   r   r   "   s   
ü
r   c                   @  s.   e Zd ZU ded< ded< ded< ded< d	S )
ÚUpdateSourceResponseTypedDictr   Úcontent_typeÚintÚstatus_codeúhttpx.ResponseÚraw_responsezRNotRequired[shared_sourceconnectorinformation.SourceConnectorInformationTypedDict]Úsource_connector_informationNr   r   r   r   r   r1   Q   s
   
r1   c                   @  s2   e Zd ZU ded< ded< ded< dZded	< dS )
ÚUpdateSourceResponser   r2   r3   r4   r5   r6   NzFOptional[shared_sourceconnectorinformation.SourceConnectorInformation]r7   )r   r   r   r   r7   r   r   r   r   r8   ^   s   
þ
r8   ) Ú__doc__Ú
__future__r   ZhttpxZpydanticr   Útypingr   Ztyping_extensionsr   r   r   Z!unstructured_client.models.sharedr   Z!shared_sourceconnectorinformationr	   Zshared_updatesourceconnectorZunstructured_client.typesr
   r   r   r   r   Zunstructured_client.utilsr   r   r   r   r   r   r1   r8   r   r   r   r   Ú<module>   s   /