Ë
    £ªði[~  ã                   ó
  — d Z ddlmZ ddlmZm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mZmZ  e«       Z G d„ d	e«      Z G d
„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ d«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z  G d„ de«      Z! G d„ de«      Z" G d „ d!e«      Z# G d"„ d#«      Z$ G d$„ d%«      Z% G d&„ d'«      Z& G d(„ d)«      Z' G d*„ d+«      Z( G d,„ d-«      Z)y.)/z-Abstractions to interact with service models.é    )Údefaultdict)Ú
NamedTupleÚUnion)Úresolve_auth_type)ÚOrderedDict)ÚMissingServiceIdErrorÚUndefinedModelAttributeErrorÚ UnsupportedServiceProtocolsError)Ú$PRIORITY_ORDERED_SUPPORTED_PROTOCOLSÚCachedPropertyÚhyphenize_service_idÚinstance_cachec                   ó   — e Zd Zy)ÚNoShapeFoundErrorN©Ú__name__Ú
__module__Ú__qualname__© ó    úe/var/www/acinvestment.org/public_html/aci/backend/venv/lib/python3.12/site-packages/botocore/model.pyr   r   #   ó   „ Ør   r   c                   ó   — e Zd Zy)ÚInvalidShapeErrorNr   r   r   r   r   r   '   r   r   r   c                   ó   — e Zd Zy)ÚOperationNotFoundErrorNr   r   r   r   r   r   +   r   r   r   c                   ó   — e Zd Zy)ÚInvalidShapeReferenceErrorNr   r   r   r   r   r   /   r   r   r   c                   ó   — e Zd Zd„ Zy)Ú	ServiceIdc                 ó   — t        | «      S ©N)r   ©Úselfs    r   Ú	hyphenizezServiceId.hyphenize4   s   € Ü# DÓ)Ð)r   N)r   r   r   r%   r   r   r   r    r    3   s   „ ó*r   r    c                   óx   — e Zd ZdZg d¢Zg d¢ZeZdd„Ze	d„ «       Z
e	d„ «       Ze	d„ «       Zd	„ Zd
„ Zed„ «       Zy)ÚShapez3Object representing a shape from the service model.)ÚlocationNameÚ	queryNameÚ	flattenedÚlocationÚpayloadÚ	streamingÚtimestampFormatÚxmlNamespaceÚresultWrapperÚxmlAttributeÚeventstreamÚeventÚeventheaderÚeventpayloadÚ	jsonvaluer.   Ú	hostLabel)ÚrequiredÚminÚmaxÚpatternÚ	sensitiveÚenumÚidempotencyTokenÚerrorÚ	exceptionÚendpointdiscoveryidÚ	retryableÚdocumentÚunionÚcontextParamÚclientContextParamsÚrequiresLengthNc                 ó–   — || _         |d   | _        |j                  dd«      | _        || _        |€
t        «       }|| _        i | _        y)a  

        :type shape_name: string
        :param shape_name: The name of the shape.

        :type shape_model: dict
        :param shape_model: The shape model.  This would be the value
            associated with the key in the "shapes" dict of the
            service model (i.e ``model['shapes'][shape_name]``)

        :type shape_resolver: botocore.model.ShapeResolver
        :param shape_resolver: A shape resolver object.  This is used to
            resolve references to other shapes.  For scalar shape types
            (string, integer, boolean, etc.), this argument is not
            required.  If a shape_resolver is not provided for a complex
            type, then a ``ValueError`` will be raised when an attempt
            to resolve a shape is made.

        ÚtypeÚdocumentationÚ N)ÚnameÚ	type_nameÚgetrJ   Ú_shape_modelÚUnresolvableShapeMapÚ_shape_resolverÚ_cache)r$   Ú
shape_nameÚshape_modelÚshape_resolvers       r   Ú__init__zShape.__init__f   sQ   € ð( ˆŒ	Ø$ VÑ,ˆŒØ(Ÿ_™_¨_¸bÓAˆÔØ'ˆÔØÐ!ô 2Ó3ˆNØ-ˆÔØˆ�r   c                 ó¢   — | j                   }i }| j                  D ]  }|| j                   v sŒ||   ||<   Œ d|v r|j                  d«      |d<   |S )a  Serialization information about the shape.

        This contains information that may be needed for input serialization
        or response parsing.  This can include:

            * name
            * queryName
            * flattened
            * location
            * payload
            * streaming
            * xmlNamespace
            * resultWrapper
            * xmlAttribute
            * jsonvalue
            * timestampFormat

        :rtype: dict
        :return: Serialization information about the shape.

        r(   rL   )rO   ÚSERIALIZED_ATTRSÚpop)r$   ÚmodelÚserializationÚattrs       r   r[   zShape.serializationˆ   sj   € ð. ×!Ñ!ˆØˆØ×)Ñ)ò 	2ˆDØ�t×(Ñ(Ò(Ø&+¨D¡k�˜dÒ#ð	2ð ˜]Ñ*Ø$1×$5Ñ$5°nÓ$EˆM˜&Ñ!ØÐr   c                 ór   — | j                   }i }| j                  D ]  }|| j                   v sŒ||   ||<   Œ |S )aÍ  Metadata about the shape.

        This requires optional information about the shape, including:

            * min
            * max
            * pattern
            * enum
            * sensitive
            * required
            * idempotencyToken
            * document
            * union
            * contextParam
            * clientContextParams
            * requiresLength

        :rtype: dict
        :return: Metadata about the shape.

        )rO   ÚMETADATA_ATTRS)r$   rZ   Úmetadatar\   s       r   r_   zShape.metadata©   sK   € ð. ×!Ñ!ˆØˆØ×'Ñ'ò 	-ˆDØ�t×(Ñ(Ò(Ø!& t¡�˜’ð	-ð ˆr   c                 ó:   — | j                   j                  dg «      S )zïA list of members that are required.

        A structure shape can define members that are required.
        This value will return a list of required members.  If there
        are no required members an empty list is returned.

        r8   ©r_   rN   r#   s    r   Úrequired_memberszShape.required_membersÇ   s   € ð �}‰}× Ñ  ¨RÓ0Ð0r   c                 ó8   — | j                   j                  |«      S r"   ©rQ   Úresolve_shape_ref©r$   Ú	shape_refs     r   Ú_resolve_shape_refzShape._resolve_shape_refÒ   ó   € Ø×#Ñ#×5Ñ5°iÓ@Ð@r   c                 óP   — d| j                   j                  › d| j                  › d�S )Nú<ú(z)>©Ú	__class__r   rL   r#   s    r   Ú__repr__zShape.__repr__Õ   s&   € Ø�4—>‘>×*Ñ*Ð+¨1¨T¯Y©Y¨K°rÐ:Ð:r   c                  ó   — y r"   r   r#   s    r   Úevent_stream_namezShape.event_stream_nameØ   s   € àr   r"   )r   r   r   Ú__doc__rX   r^   r   ÚMAP_TYPErV   r   r[   r_   rb   rh   ro   Úpropertyrq   r   r   r   r'   r'   8   s}   „ Ù=òÐò&€Nð$ €Hó ðD ñó ðð@ ñó ðð: ñ1ó ð1òAò;ð ñó ñr   r'   c                   ó\   — e Zd Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zy)ÚStructureShapec                 óÒ   — | j                   j                  d| j                  «       «      }| j                  «       }|j                  «       D ]  \  }}| j	                  |«      ||<   Œ |S )NÚmembers)rO   rN   rs   Úitemsrh   )r$   rx   Úshape_membersrL   rg   s        r   rx   zStructureShape.membersÞ   sc   € à×#Ñ#×'Ñ'¨	°4·=±=³?ÓCˆð Ÿ™›ˆØ&Ÿ}™}›ò 	E‰OˆD�)Ø"&×"9Ñ"9¸)Ó"DˆM˜$Òð	EàÐr   c                 ó†   — | j                   j                  «       D ]$  \  }}|j                  j                  d«      sŒ"|c S  y )Nr2   )rx   ry   r[   rN   )r$   Úmember_nameÚmembers      r   rq   z StructureShape.event_stream_nameì   sB   € à#'§<¡<×#5Ñ#5Ó#7ò 	#ÑˆK˜Ø×#Ñ#×'Ñ'¨Õ6Ø"Ò"ð	#ð r   c                 ó¶   — | j                   j                  dd«      sy | j                   j                  di «      }|j                  d«      }|r|S | j                  S )Nr@   Fr?   Úcode)r_   rN   rL   )r$   Úerror_metadatar   s      r   Ú
error_codezStructureShape.error_codeó   sQ   € à�}‰}× Ñ  ¨eÔ4ØØŸ™×*Ñ*¨7°BÓ7ˆØ×!Ñ! &Ó)ˆÙØˆKà�y‰yÐr   c                 ó:   — | j                   j                  dd«      S )NrC   Fra   r#   s    r   Úis_document_typezStructureShape.is_document_typeþ   s   € à�}‰}× Ñ  ¨UÓ3Ð3r   c                 ó:   — | j                   j                  dd«      S )NrD   Fra   r#   s    r   Úis_tagged_unionzStructureShape.is_tagged_union  s   € à�}‰}× Ñ  ¨%Ó0Ð0r   N)	r   r   r   r   rx   rq   r�   rƒ   r…   r   r   r   rv   rv   Ý   sd   „ Øñó ðð ñó ðð ñó ðð ñ4ó ð4ð ñ1ó ñ1r   rv   c                   ó   — e Zd Zed„ «       Zy)Ú	ListShapec                 ó>   — | j                  | j                  d   «      S )Nr}   ©rh   rO   r#   s    r   r}   zListShape.member  s   € à×&Ñ& t×'8Ñ'8¸Ñ'BÓCÐCr   N)r   r   r   r   r}   r   r   r   r‡   r‡     s   „ ØñDó ñDr   r‡   c                   ó,   — e Zd Zed„ «       Zed„ «       Zy)ÚMapShapec                 ó>   — | j                  | j                  d   «      S )NÚkeyr‰   r#   s    r   r�   zMapShape.key  s   € à×&Ñ& t×'8Ñ'8¸Ñ'?Ó@Ð@r   c                 ó>   — | j                  | j                  d   «      S )NÚvaluer‰   r#   s    r   r�   zMapShape.value  s   € à×&Ñ& t×'8Ñ'8¸Ñ'AÓBÐBr   N)r   r   r   r   r�   r�   r   r   r   r‹   r‹     s,   „ ØñAó ðAð ñCó ñCr   r‹   c                   ó   — e Zd Zed„ «       Zy)ÚStringShapec                 ó:   — | j                   j                  dg «      S )Nr=   ra   r#   s    r   r=   zStringShape.enum  s   € à�}‰}× Ñ  ¨Ó,Ð,r   N)r   r   r   r   r=   r   r   r   r‘   r‘     s   „ Øñ-ó ñ-r   r‘   c                   ó,   — e Zd ZU eed<   eeef   ed<   y)ÚStaticContextParameterrL   r�   N)r   r   r   ÚstrÚ__annotations__r   Úboolr   r   r   r”   r”     s   … Ø
ƒIØ��s�ÑÔr   r”   c                   ó"   — e Zd ZU eed<   eed<   y)ÚContextParameterrL   r|   N©r   r   r   r•   r–   r   r   r   r™   r™   "  s   … Ø
ƒIØÔr   r™   c                   ó,   — e Zd ZU eed<   eed<   eed<   y)ÚClientContextParameterrL   rI   rJ   Nrš   r   r   r   rœ   rœ   '  s   … Ø
ƒIØ
ƒIØÔr   rœ   c                   óŒ  — e Zd ZdZdd„Zdd„Zd„ Zed„ «       Zd„ Z	ed„ «       Z
ed	„ «       Zed
„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zd„ Zed„ «       Zej<                  d„ «       Zed„ «       Zd„ Z y)ÚServiceModelzQ

    :ivar service_description: The parsed service description dictionary.

    Nc                 ó²   — || _         |j                  di «      | _        t        |j                  di «      «      | _        t
        | _        || _        i | _        y)a‡  

        :type service_description: dict
        :param service_description: The service description model.  This value
            is obtained from a botocore.loader.Loader, or from directly loading
            the file yourself::

                service_description = json.load(
                    open('/path/to/service-description-model.json'))
                model = ServiceModel(service_description)

        :type service_name: str
        :param service_name: The name of the service.  Normally this is
            the endpoint prefix defined in the service_description.  However,
            you can override this value to provide a more convenient name.
            This is done in a few places in botocore (ses instead of email,
            emr instead of elasticmapreduce).  If this value is not provided,
            it will default to the endpointPrefix defined in the model.

        r_   ÚshapesN)	Ú_service_descriptionrN   r_   ÚShapeResolverrQ   ÚNOT_SETÚ_signature_versionÚ_service_nameÚ_instance_cache)r$   Úservice_descriptionÚservice_names      r   rV   zServiceModel.__init__4  sW   € ð* %8ˆÔ!à+×/Ñ/°
¸BÓ?ˆŒÜ,Ø×#Ñ# H¨bÓ1ó 
ˆÔô #*ˆÔØ)ˆÔØ!ˆÕr   c                 ó:   — | j                   j                  ||«      S r"   )rQ   Úget_shape_by_name©r$   rS   Úmember_traitss      r   Ú	shape_forzServiceModel.shape_forS  s    € Ø×#Ñ#×5Ñ5Ø˜ó
ð 	
r   c                 ó:   — | j                   j                  |d «      S r"   )Ú_error_code_cacherN   )r$   r�   s     r   Úshape_for_error_codez!ServiceModel.shape_for_error_codeX  s   € Ø×%Ñ%×)Ñ)¨*°dÓ;Ð;r   c                 óN   — i }| j                   D ]  }|j                  }|||<   Œ |S r"   )Úerror_shapesr�   )r$   Úerror_code_cacheÚerror_shaper   s       r   r¯   zServiceModel._error_code_cache[  s;   € àÐØ×,Ñ,ò 	1ˆKØ×)Ñ)ˆDØ%0Ð˜TÒ"ð	1ð  Ðr   c                 ó8   — | j                   j                  |«      S r"   rd   rf   s     r   re   zServiceModel.resolve_shape_refc  ri   r   c                 óL   — t        | j                  j                  di «      «      S )Nr    ©Úlistr¡   rN   r#   s    r   Úshape_nameszServiceModel.shape_namesf  s    € ä�D×-Ñ-×1Ñ1°(¸BÓ?Ó@Ð@r   c                 óª   — g }| j                   D ]A  }| j                  |«      }|j                  j                  dd«      sŒ1|j	                  |«       ŒC |S )Nr@   F)r¹   r­   r_   rN   Úappend)r$   r²   rS   r´   s       r   r²   zServiceModel.error_shapesj  sV   € àˆØ×*Ñ*ò 	1ˆJØŸ.™.¨Ó4ˆKØ×#Ñ#×'Ñ'¨°UÕ;Ø×#Ñ# KÕ0ð	1ð Ðr   c                 ór   — 	 | j                   d   |   }t        || |«      S # t        $ r t        |«      ‚w xY w©NÚ
operations)r¡   ÚKeyErrorr   ÚOperationModel)r$   Úoperation_namerZ   s      r   Úoperation_modelzServiceModel.operation_models  sI   € ð	9Ø×-Ñ-¨lÑ;¸NÑKˆEô ˜e T¨>Ó:Ð:øô ò 	9Ü(¨Ó8Ð8ð	9ús   ‚! ¡6c                 ó:   — | j                   j                  dd«      S ©NrJ   rK   )r¡   rN   r#   s    r   rJ   zServiceModel.documentation{  s   € à×(Ñ(×,Ñ,¨_¸bÓAÐAr   c                 óL   — t        | j                  j                  dg «      «      S r½   r·   r#   s    r   Úoperation_nameszServiceModel.operation_names  s    € ä�D×-Ñ-×1Ñ1°,ÀÓCÓDÐDr   c                 óJ   — | j                   �| j                   S | j                  S )a«  The name of the service.

        This defaults to the endpointPrefix defined in the service model.
        However, this value can be overriden when a ``ServiceModel`` is
        created.  If a service_name was not provided when the ``ServiceModel``
        was created and if there is no endpointPrefix defined in the
        service model, then an ``UndefinedModelAttributeError`` exception
        will be raised.

        )r¥   Úendpoint_prefixr#   s    r   r¨   zServiceModel.service_nameƒ  s(   € ð ×ÑÐ)Ø×%Ñ%Ð%à×'Ñ'Ð'r   c                 ó~   — 	 t        | j                  d«      «      S # t        $ r t        | j                  ¬«      ‚w xY w)NÚ	serviceId)r¨   )r    Ú_get_metadata_propertyr	   r   r¥   r#   s    r   Ú
service_idzServiceModel.service_id”  s@   € ð	IÜ˜T×8Ñ8¸ÓEÓFÐFøÜ+ò 	IÜ'°T×5GÑ5GÔHÐHð	Iús   ‚ œ <c                 óX   — | j                   j                  d«      }|€| j                  }|S )z®The name to use when computing signatures.

        If the model does not define a signing name, this
        value will be the endpoint prefix defined in the model.
        ÚsigningName)r_   rN   rÈ   )r$   Úsigning_names     r   rÏ   zServiceModel.signing_name›  s/   € ð —}‘}×(Ñ(¨Ó7ˆØÐØ×/Ñ/ˆLØÐr   c                 ó$   — | j                  d«      S )NÚ
apiVersion©rË   r#   s    r   Úapi_versionzServiceModel.api_version§  s   € à×*Ñ*¨<Ó8Ð8r   c                 ó$   — | j                  d«      S )NÚprotocolrÒ   r#   s    r   rÕ   zServiceModel.protocol«  s   € à×*Ñ*¨:Ó6Ð6r   c                 ó$   — | j                  d«      S )NÚ	protocolsrÒ   r#   s    r   r×   zServiceModel.protocols¯  s   € à×*Ñ*¨;Ó7Ð7r   c                 óÖ   — | j                   j                  d«      rCt        D ]  }|| j                  v sŒ|c S  t	        t        | j                  | j
                  ¬«      ‚| j                  S )Nr×   )Úbotocore_supported_protocolsÚservice_supported_protocolsÚservice)r_   rN   r   r×   r
   r¨   rÕ   )r$   rÕ   s     r   Úresolved_protocolzServiceModel.resolved_protocol³  sd   € ð
 �=‰=×Ñ˜[Ô)Ü@ò $�Ø˜tŸ~™~Ò-Ø#’Oð$ô 3Ü-QØ,0¯N©NØ×)Ñ)ôð ð �}‰}Ðr   c                 ó$   — | j                  d«      S )NÚendpointPrefixrÒ   r#   s    r   rÈ   zServiceModel.endpoint_prefixÅ  s   € à×*Ñ*Ð+;Ó<Ð<r   c                 óh   — | j                   D ]#  }| j                  |«      }|j                  sŒ!|c S  y r"   )rÆ   rÂ   Úis_endpoint_discovery_operation©r$   Ú	operationrZ   s      r   Úendpoint_discovery_operationz)ServiceModel.endpoint_discovery_operationÉ  s5   € à×-Ñ-ò 	ˆIØ×(Ñ(¨Ó3ˆEØ×4Ó4Ø’ñ	r   c                 óœ   — | j                   D ]=  }| j                  |«      }|j                  €Œ!|j                  j                  d«      sŒ= y y)Nr8   TF)rÆ   rÂ   Úendpoint_discoveryrN   rá   s      r   Úendpoint_discovery_requiredz(ServiceModel.endpoint_discovery_requiredÐ  sO   € à×-Ñ-ò 	ˆIØ×(Ñ(¨Ó3ˆEà×(Ñ(Ñ4Ø×,Ñ,×0Ñ0°Õ<áð	ð r   c           
      ó°   — | j                   j                  di «      }|j                  «       D ��cg c]  \  }}t        ||d   |d   ¬«      ‘Œ c}}S c c}}w )NrF   rI   rJ   )rL   rI   rJ   )r¡   rN   ry   rœ   )r$   ÚparamsÚ
param_nameÚ	param_vals       r   Úclient_context_parametersz&ServiceModel.client_context_parametersÛ  sa   € à×*Ñ*×.Ñ.Ð/DÀbÓIˆð *0¯©«÷
ñ &�
˜Iô #ØØ˜vÑ&Ø'¨Ñ8öó
ð 	
ùó 
s   °Ac                 ó^   — 	 | j                   |   S # t        $ r t        d|› d| › �«      ‚w xY w)Nú"z," not defined in the metadata of the model: )r_   r¿   r	   ©r$   rL   s     r   rË   z#ServiceModel._get_metadata_propertyç  sC   € ð	Ø—=‘= Ñ&Ð&øÜò 	Ü.Ø�D�6ÐEÀdÀVÐLóð ð	ús   ‚ ‘,c                 ó‚   — | j                   t        u r"| j                  j                  d«      }|| _         | j                   S )NÚsignatureVersion)r¤   r£   r_   rN   )r$   Úsignature_versions     r   rñ   zServiceModel.signature_versionò  s:   € à×"Ñ"¤gÑ-Ø $§¡× 1Ñ 1Ð2DÓ EÐØ&7ˆDÔ#Ø×&Ñ&Ð&r   c                 ó   — || _         y r"   )r¤   )r$   r�   s     r   rñ   zServiceModel.signature_versionù  s
   € à"'ˆÕr   c                 ó   — d| j                   v S )NÚawsQueryCompatible)r_   r#   s    r   Úis_query_compatiblez ServiceModel.is_query_compatibleý  s   € à# t§}¡}Ð4Ð4r   c                 óN   — | j                   j                  › d| j                  › d�S )Nrl   ú))rn   r   r¨   r#   s    r   ro   zServiceModel.__repr__  s'   € Ø—.‘.×)Ñ)Ð*¨!¨D×,=Ñ,=Ð+>¸aÐ@Ð@r   r"   )!r   r   r   rr   rV   r­   r°   r   r¯   re   r¹   r²   r   rÂ   rJ   rÆ   r¨   rÌ   rÏ   rÓ   rÕ   r×   rÜ   rÈ   rã   ræ   rë   rË   rt   rñ   Úsetterrõ   ro   r   r   r   rž   rž   -  sÅ  „ ñó"ó>
ò
<ð ñ ó ð òAð ñAó ðAð ñó ðð ñ;ó ð;ð ñBó ðBð ñEó ðEð ñ(ó ð(ð  ñIó ðIð ñ	ó ð	ð ñ9ó ð9ð ñ7ó ð7ð ñ8ó ð8ð ñó ðð" ñ=ó ð=ð ñó ðð ñó ðð ñ	
ó ð	
òð ñ'ó ð'ð ×Ññ(ó ð(ð ñ5ó ð5óAr   rž   c                   óÞ  — e Zd Zd$d„Zed„ «       Zed„ «       Zed„ «       Zed„ «       Z	ed„ «       Z
ed„ «       Zed	„ «       Zed
„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zd„ Zd„ Zd„ Z ed„ «       Z!ed„ «       Z"d „ Z#d!„ Z$d"„ Z%d#„ Z&y)%rÀ   Nc                 óª   — || _         || _        || _        |j                  d«      | _        |j
                  | _        |j                  di «      | _        y)a†  

        :type operation_model: dict
        :param operation_model: The operation model.  This comes from the
            service model, and is the value associated with the operation
            name in the service model (i.e ``model['operations'][op_name]``).

        :type service_model: botocore.model.ServiceModel
        :param service_model: The service model associated with the operation.

        :type name: string
        :param name: The operation name.  This is the operation name exposed to
            the users of this model.  This can potentially be different from
            the "wire_name", which is the operation name that *must* by
            provided over the wire.  For example, given::

               "CreateCloudFrontOriginAccessIdentity":{
                 "name":"CreateCloudFrontOriginAccessIdentity2014_11_06",
                  ...
              }

           The ``name`` would be ``CreateCloudFrontOriginAccessIdentity``,
           but the ``self.wire_name`` would be
           ``CreateCloudFrontOriginAccessIdentity2014_11_06``, which is the
           value we must send in the corresponding HTTP request.

        rL   ÚhttpN)Ú_operation_modelÚ_service_modelÚ	_api_namerN   Ú
_wire_namer_   rû   )r$   rÂ   Úservice_modelrL   s       r   rV   zOperationModel.__init__  sP   € ð8 !0ˆÔØ+ˆÔØˆŒð *×-Ñ-¨fÓ5ˆŒØ%×.Ñ.ˆŒØ#×'Ñ'¨°Ó3ˆ�	r   c                 óJ   — | j                   �| j                   S | j                  S r"   )rþ   Ú	wire_namer#   s    r   rL   zOperationModel.name+  s    € à�>‰>Ð%Ø—>‘>Ð!à—>‘>Ð!r   c                 ó8   — | j                   j                  d«      S )aR  The wire name of the operation.

        In many situations this is the same value as the
        ``name``, value, but in some services, the operation name
        exposed to the user is different from the operation name
        we send across the wire (e.g cloudfront).

        Any serialization code should use ``wire_name``.

        rL   ©rü   rN   r#   s    r   r  zOperationModel.wire_name2  s   € ð ×$Ñ$×(Ñ(¨Ó0Ð0r   c                 ó   — | j                   S r"   )rý   r#   s    r   r   zOperationModel.service_model@  s   € à×"Ñ"Ð"r   c                 ó:   — | j                   j                  dd«      S rÄ   r  r#   s    r   rJ   zOperationModel.documentationD  s   € à×$Ñ$×(Ñ(¨¸"Ó=Ð=r   c                 ó:   — | j                   j                  dd«      S )NÚ
deprecatedFr  r#   s    r   r  zOperationModel.deprecatedH  s   € à×$Ñ$×(Ñ(¨°uÓ=Ð=r   c                 ó:   — | j                   j                  dd «      S )NÚendpointdiscoveryr  r#   s    r   rå   z!OperationModel.endpoint_discoveryL  s   € ð ×$Ñ$×(Ñ(Ð)<¸dÓCÐCr   c                 ó:   — | j                   j                  dd«      S )NÚendpointoperationFr  r#   s    r   rà   z.OperationModel.is_endpoint_discovery_operationR  s   € à×$Ñ$×(Ñ(Ð)<¸eÓDÐDr   c                 óp   — d| j                   vry | j                  j                  | j                   d   «      S )NÚinput©rü   rý   re   r#   s    r   Úinput_shapezOperationModel.input_shapeV  s<   € à˜$×/Ñ/Ñ/ð Ø×"Ñ"×4Ñ4Ø×!Ñ! 'Ñ*ó
ð 	
r   c                 óp   — d| j                   vry | j                  j                  | j                   d   «      S )NÚoutputr  r#   s    r   Úoutput_shapezOperationModel.output_shape`  s<   € à˜4×0Ñ0Ñ0ð Ø×"Ñ"×4Ñ4Ø×!Ñ! (Ñ+ó
ð 	
r   c                 óÂ   — | j                   }|sg S |j                  j                  «       D ��cg c]$  \  }}d|j                  v r|j                  d   r|‘Œ& c}}S c c}}w )Nr>   )r  rx   ry   r_   )r$   r  rL   Úshapes       r   Úidempotent_membersz!OperationModel.idempotent_membersk  sc   € à×&Ñ&ˆÙØˆIð "-×!4Ñ!4×!:Ñ!:Ó!<÷
á��uØ! U§^¡^Ñ3Ø—‘Ð1Ò2ò ó
ð 	
ùó 
s   ®)Ac           
      óÀ   — | j                   j                  di «      }|j                  «       D ��cg c]!  \  }}t        ||j                  d«      ¬«      ‘Œ# c}}S c c}}w )NÚstaticContextParamsr�   )rL   r�   )rü   rN   ry   r”   )r$   rè   rL   Úpropss       r   Ústatic_context_parametersz(OperationModel.static_context_parametersx  sW   € à×&Ñ&×*Ñ*Ð+@À"ÓEˆð  &Ÿ|™|›~÷
á��eô #¨°E·I±I¸gÓ4FÖGó
ð 	
ùó 
s   °&Ac                 ó  — | j                   sg S | j                   j                  j                  «       D ��cg c]A  \  }}d|j                  v r.d|j                  d   v rt	        |j                  d   d   |¬«      ‘ŒC c}}S c c}}w )NrE   rL   )rL   r|   )r  rx   ry   r_   r™   )r$   rL   r  s      r   Úcontext_parametersz!OperationModel.context_parameters€  sƒ   € à×ÒØˆIð  $×/Ñ/×7Ñ7×=Ñ=Ó?÷
ñ
 ��eØ §¡Ñ/Ø˜%Ÿ.™.¨Ñ8Ñ8ô Ø—^‘^ NÑ3°FÑ;Ø öó
ð 	
ùó 
s   ¶AB c                 ó:   — | j                   j                  dg «      S )NÚoperationContextParamsr  r#   s    r   Úoperation_context_parametersz+OperationModel.operation_context_parameters�  s   € à×$Ñ$×(Ñ(Ð)AÀ2ÓFÐFr   c                 ó8   — | j                   j                  d«      S )NÚrequestcompressionr  r#   s    r   Úrequest_compressionz"OperationModel.request_compression“  s   € à×$Ñ$×(Ñ(Ð)=Ó>Ð>r   c                 ó8   — | j                   j                  d«      S )NÚauthr  r#   s    r   r$  zOperationModel.auth—  s   € à×$Ñ$×(Ñ(¨Ó0Ð0r   c                 ó8   — | j                   j                  d«      S )NÚauthtyper  r#   s    r   Ú	auth_typezOperationModel.auth_type›  ó   € à×$Ñ$×(Ñ(¨Ó4Ð4r   c                 ó\   — | j                   rt        | j                   «      S | j                  S r"   )r$  r   r'  r#   s    r   Úresolved_auth_typez!OperationModel.resolved_auth_typeŸ  s"   € à�9Š9Ü$ T§Y¡YÓ/Ð/Ø�~‰~Ðr   c                 ó8   — | j                   j                  d«      S )NÚunsignedPayloadr  r#   s    r   Úunsigned_payloadzOperationModel.unsigned_payload¥  s   € à×$Ñ$×(Ñ(Ð):Ó;Ð;r   c                 ód   ‡ — ‰ j                   j                  dg «      }t        ˆ fd„|D «       «      S )NÚerrorsc              3   óT   •K  — | ]  }‰j                   j                  |«      –— Œ! y ­wr"   )rý   re   )Ú.0Úsr$   s     €r   ú	<genexpr>z.OperationModel.error_shapes.<locals>.<genexpr>¬  s"   øè ø€ ÒMÀ�D×'Ñ'×9Ñ9¸!×<ÑMùs   ƒ%()rü   rN   r¸   )r$   r    s   ` r   r²   zOperationModel.error_shapes©  s,   ø€ à×&Ñ&×*Ñ*¨8°RÓ8ˆÜÓMÀfÔMÓMÐMr   c                 ó8   — | j                   j                  d«      S )NÚendpointr  r#   s    r   r5  zOperationModel.endpoint®  r(  r   c                 ó:   — | j                   j                  dd«      S )NÚhttpChecksumRequiredFr  r#   s    r   Úhttp_checksum_requiredz%OperationModel.http_checksum_required²  s   € à×$Ñ$×(Ñ(Ð)?ÀÓGÐGr   c                 ó:   — | j                   j                  di «      S )NÚhttpChecksumr  r#   s    r   Úhttp_checksumzOperationModel.http_checksum¶  s   € à×$Ñ$×(Ñ(¨¸Ó<Ð<r   c                 ó&   — | j                  «       d uS r"   )Úget_event_stream_inputr#   s    r   Úhas_event_stream_inputz%OperationModel.has_event_stream_inputº  s   € à×*Ñ*Ó,°DÐ8Ð8r   c                 ó&   — | j                  «       d uS r"   )Úget_event_stream_outputr#   s    r   Úhas_event_stream_outputz&OperationModel.has_event_stream_output¾  s   € à×+Ñ+Ó-°TÐ9Ð9r   c                 ó8   — | j                  | j                  «      S r"   )Ú_get_event_streamr  r#   s    r   r=  z%OperationModel.get_event_stream_inputÂ  s   € Ø×%Ñ% d×&6Ñ&6Ó7Ð7r   c                 ó8   — | j                  | j                  «      S r"   )rC  r  r#   s    r   r@  z&OperationModel.get_event_stream_outputÅ  s   € Ø×%Ñ% d×&7Ñ&7Ó8Ð8r   c                 óD   — |€y|j                   }|r|j                  |   S y)zAReturns the event stream member's shape if any or None otherwise.N)rq   rx   )r$   r  Ú
event_names      r   rC  z OperationModel._get_event_streamÈ  s*   € àˆ=ØØ×,Ñ,ˆ
ÙØ—=‘= Ñ,Ð,Ør   c                 ó&   — | j                  «       d uS r"   )Úget_streaming_inputr#   s    r   Úhas_streaming_inputz"OperationModel.has_streaming_inputÑ  s   € à×'Ñ'Ó)°Ð5Ð5r   c                 ó&   — | j                  «       d uS r"   )Úget_streaming_outputr#   s    r   Úhas_streaming_outputz#OperationModel.has_streaming_outputÕ  s   € à×(Ñ(Ó*°$Ð6Ð6r   c                 ó8   — | j                  | j                  «      S r"   )Ú_get_streaming_bodyr  r#   s    r   rH  z"OperationModel.get_streaming_inputÙ  s   € Ø×'Ñ'¨×(8Ñ(8Ó9Ð9r   c                 ó8   — | j                  | j                  «      S r"   )rN  r  r#   s    r   rK  z#OperationModel.get_streaming_outputÜ  s   € Ø×'Ñ'¨×(9Ñ(9Ó:Ð:r   c                 ó„   — |€y|j                   j                  d«      }|� |j                  |   }|j                  dk(  r|S y)z?Returns the streaming member's shape if any; or None otherwise.Nr,   Úblob)r[   rN   rx   rM   )r$   r  r,   Úpayload_shapes       r   rN  z"OperationModel._get_streaming_bodyß  sK   € àˆ=ØØ×%Ñ%×)Ñ)¨)Ó4ˆØÐØ!ŸM™M¨'Ñ2ˆMØ×&Ñ&¨&Ò0Ø$Ð$Ør   c                 óN   — | j                   j                  › d| j                  › d�S )Nz(name=r÷   rm   r#   s    r   ro   zOperationModel.__repr__ê  s$   € Ø—.‘.×)Ñ)Ð*¨&°·±°¸1Ð=Ð=r   r"   )'r   r   r   rV   r   rL   rt   r  r   rJ   r  rå   rà   r  r  r  r  r  r  r"  r$  r'  r*  r-  r²   r5  r8  r;  r>  rA  r=  r@  rC  rI  rL  rH  rK  rN  ro   r   r   r   rÀ   rÀ     s=  „ ó#4ðJ ñ"ó ð"ð ñ1ó ð1ð ñ#ó ð#ð ñ>ó ð>ð ñ>ó ð>ð ñDó ðDð
 ñEó ðEð ñ
ó ð
ð ñ
ó ð
ð ñ

ó ð

ð ñ
ó ð
ð ñ
ó ð
ð ñGó ðGð ñ?ó ð?ð ñ1ó ð1ð ñ5ó ð5ð ñó ðð
 ñ<ó ð<ð ñNó ðNð ñ5ó ð5ð ñHó ðHð ñ=ó ð=ð ñ9ó ð9ð ñ:ó ð:ò8ò9òð ñ6ó ð6ð ñ7ó ð7ò:ò;ò	ó>r   rÀ   c                   ó2   — e Zd ZdZeeeedœZd„ Z	dd„Z
d„ Zy)r¢   zResolves shape references.)Ú	structurer¸   ÚmapÚstringc                 ó    — || _         i | _        y r"   )Ú
_shape_mapÚ_shape_cache)r$   Ú	shape_maps     r   rV   zShapeResolver.__init__ù  s   € Ø#ˆŒØˆÕr   Nc                 ó.  — 	 | j                   |   }	 | j                  j	                  |d   t
        «      }|r!|j                  «       }|j                  |«        |||| «      }|S # t        $ r t        |«      ‚w xY w# t        $ r t        d|› �«      ‚w xY w)NrI   z&Shape is missing required key 'type': )	rY  r¿   r   ÚSHAPE_CLASSESrN   r'   r   ÚcopyÚupdate)r$   rS   r¬   rT   Ú	shape_clsÚresults         r   rª   zShapeResolver.get_shape_by_nameý  s®   € ð	0ØŸ/™/¨*Ñ5ˆKð	Ø×*Ñ*×.Ñ.¨{¸6Ñ/BÄEÓJˆIñ
 Ø%×*Ñ*Ó,ˆKØ×Ñ˜}Ô-Ù˜: {°DÓ9ˆØˆøô ò 	0Ü# JÓ/Ð/ð	0ûô ò 	Ü#Ø8¸¸ÐFóð ð	ús   ‚A$ ’#A< Á$A9Á<Bc                 óì   — t        |«      dk(  rd|v r| j                  |d   «      S |j                  «       }	 |j                  d«      }| j                  ||«      S # t        $ r t        d|› �«      ‚w xY w)Né   r  z(Invalid model, missing shape reference: )Úlenrª   r^  rY   r¿   r   )r$   rg   r¬   rS   s       r   re   zShapeResolver.resolve_shape_ref  s�   € ô ˆy‹>˜QÒ 7¨iÑ#7ð ×)Ñ)¨)°GÑ*<Ó=Ð=à%ŸN™NÓ,ˆMðØ*×.Ñ.¨wÓ7�
ð
 ×)Ñ)¨*°mÓDÐDøô	 ò Ü0Ø>¸y¸kÐJóð ðús   ¸A ÁA3r"   )r   r   r   rr   rv   r‡   r‹   r‘   r]  rV   rª   re   r   r   r   r¢   r¢   î  s*   „ Ù$ð $ØØØñ	€Mòóó"Er   r¢   c                   ó   — e Zd ZdZdd„Zd„ Zy)rP   zEA ShapeResolver that will throw ValueErrors when shapes are resolved.Nc                 ó    — t        d|› d�«      ‚)NzAttempted to lookup shape 'ú!', but no shape map was provided.©Ú
ValueErrorr«   s      r   rª   z&UnresolvableShapeMap.get_shape_by_name'  s   € ÜØ)¨*¨Ð5VÐWó
ð 	
r   c                 ó    — t        d|› d�«      ‚)NzAttempted to resolve shape 'rg  rh  rf   s     r   re   z&UnresolvableShapeMap.resolve_shape_ref,  s    € ÜØ*¨9¨+ð 6 ð !ó
ð 	
r   r"   )r   r   r   rr   rª   re   r   r   r   rP   rP   $  s   „ ÙOó
ó

r   rP   c                   óR   — e Zd ZdZdZdd„Zd„ Zd„ Zd„ Zd„ Z	d	„ Z
d
„ Zd„ Zd„ Zd„ Zy)ÚDenormalizedStructureBuilderaÊ  Build a StructureShape from a denormalized model.

    This is a convenience builder class that makes it easy to construct
    ``StructureShape``s based on a denormalized model.

    It will handle the details of creating unique shape names and creating
    the appropriate shape map needed by the ``StructureShape`` class.

    Example usage::

        builder = DenormalizedStructureBuilder()
        shape = builder.with_members({
            'A': {
                'type': 'structure',
                'members': {
                    'B': {
                        'type': 'structure',
                        'members': {
                            'C': {
                                'type': 'string',
                            }
                        }
                    }
                }
            }
        }).build_model()
        # ``shape`` is now an instance of botocore.model.StructureShape

    :type dict_type: class
    :param dict_type: The dictionary type to use, allowing you to opt-in
                      to using OrderedDict or another dict type. This can
                      be particularly useful for testing when order
                      matters, such as for documentation.

    )	rW  ÚintegerÚbooleanrQ  ÚfloatÚ	timestampÚlongÚdoubleÚcharNc                 ó†   — t        «       | _        t        «       | _        |€!| j                  j	                  d«      | _        y y )NrU  )r   rx   ÚShapeNameGeneratorÚ_name_generatorÚnew_shape_namerL   rî   s     r   rV   z%DenormalizedStructureBuilder.__init__d  s8   € Ü"“}ˆŒÜ1Ó3ˆÔØˆ<Ø×,Ñ,×;Ñ;¸KÓHˆD�Ið r   c                 ó   — || _         | S )zp

        :type members: dict
        :param members: The denormalized members.

        :return: self

        )Ú_members)r$   rx   s     r   Úwith_membersz)DenormalizedStructureBuilder.with_membersj  s   € ð  ˆŒØˆr   c                 óÐ   — t        «       }d| j                  dœ}| j                  ||| j                  «       t	        |¬«      }t        | j                  || j                     |¬«      S )z™Build the model based on the provided members.

        :rtype: botocore.model.StructureShape
        :return: The built StructureShape object.

        rU  )rI   rx   )r[  )rS   rT   rU   )r   ry  Ú_build_modelrL   r¢   rv   )r$   r    ÚdenormalizedÚresolvers       r   Úbuild_modelz(DenormalizedStructureBuilder.build_modelv  sa   € ô “ˆàØ—}‘}ñ
ˆð 	×Ñ˜,¨°·	±	Ô:Ü ¨6Ô2ˆÜØ—y‘yØ˜tŸy™yÑ)Ø#ô
ð 	
r   c                 ó$  — |d   dk(  r| j                  ||«      ||<   y |d   dk(  r| j                  ||«      ||<   y |d   dk(  r| j                  ||«      ||<   y |d   | j                  v r| j	                  |«      ||<   y t        d|d   › �«      ‚)NrI   rU  r¸   rV  zUnknown shape type: )Ú_build_structureÚ_build_listÚ
_build_mapÚSCALAR_TYPESÚ_build_scalarr   )r$   rZ   r    rS   s       r   r|  z)DenormalizedStructureBuilder._build_modelŠ  s§   € Ø�‰=˜KÒ'Ø!%×!6Ñ!6°u¸fÓ!EˆF�:ÒØ�6‰]˜fÒ$Ø!%×!1Ñ!1°%¸Ó!@ˆF�:ÒØ�6‰]˜eÒ#Ø!%§¡°¸Ó!?ˆF�:ÒØ�6‰]˜d×/Ñ/Ñ/Ø!%×!3Ñ!3°EÓ!:ˆF�:Òä#Ð&:¸5À¹=¸/Ð$JÓKÐKr   c                 óü   — t        «       }| j                  |«      }||d<   |j                  dt        «       «      j                  «       D ]0  \  }}| j	                  |«      }d|i||<   | j                  |||«       Œ2 |S )Nrx   r  )r   Ú_build_initial_shaperN   ry   Ú_get_shape_namer|  )r$   rZ   r    rx   r  rL   Úmember_modelÚmember_shape_names           r   r�  z-DenormalizedStructureBuilder._build_structure–  s‰   € Ü“-ˆØ×)Ñ)¨%Ó0ˆØ"ˆˆiÑà"'§)¡)¨I´{³}Ó"E×"KÑ"KÓ"Mò 	GÑˆD�,Ø $× 4Ñ 4°\Ó BÐØ$Ð&7Ð8ˆG�D‰MØ×Ñ˜l¨FÐ4EÕFð	Gð ˆr   c                 ó„   — | j                  |«      }| j                  |«      }d|i|d<   | j                  |d   ||«       |S )Nr  r}   ©rˆ  r‡  r|  )r$   rZ   r    rŠ  r  s        r   r‚  z(DenormalizedStructureBuilder._build_list¡  sN   € Ø ×0Ñ0°Ó7ÐØ×)Ñ)¨%Ó0ˆØ"Ð$5Ð6ˆˆh‰Ø×Ñ˜% ™/¨6Ð3DÔEØˆr   c                 óì   — | j                  |d   «      }| j                  |d   «      }| j                  |«      }d|i|d<   d|i|d<   | j                  |d   ||«       | j                  |d   ||«       |S )Nr�   r�   r  rŒ  )r$   rZ   r    Úkey_shape_nameÚvalue_shape_namer  s         r   rƒ  z'DenormalizedStructureBuilder._build_map¨  sŠ   € Ø×-Ñ-¨e°E©lÓ;ˆØ×/Ñ/°°g±Ó?ÐØ×)Ñ)¨%Ó0ˆØ Ð0ˆˆe‰Ø!Ð#3Ð4ˆˆg‰Ø×Ñ˜% ™,¨°Ô?Ø×Ñ˜% ™.¨&Ð2BÔCØˆr   c                 óp   — d|d   i}d|v r|d   |d<   t         j                  D ]  }||v sŒ||   ||<   Œ |S )NrI   rJ   )r'   r^   )r$   rZ   r  r\   s       r   r‡  z1DenormalizedStructureBuilder._build_initial_shape²  s[   € à�E˜&‘Mð
ˆð ˜eÑ#Ø%*¨?Ñ%;ˆE�/Ñ"Ü×(Ñ(ò 	*ˆDØ�uŠ}Ø# D™k��d’ð	*ð ˆr   c                 ó$   — | j                  |«      S r"   )r‡  ©r$   rZ   s     r   r…  z*DenormalizedStructureBuilder._build_scalar½  s   € Ø×(Ñ(¨Ó/Ð/r   c                 óP   — d|v r|d   S | j                   j                  |d   «      S )NrS   rI   )rv  rw  r’  s     r   rˆ  z,DenormalizedStructureBuilder._get_shape_nameÀ  s0   € Ø˜5Ñ Ø˜Ñ&Ð&à×'Ñ'×6Ñ6°u¸V±}ÓEÐEr   r"   )r   r   r   rr   r„  rV   rz  r  r|  r�  r‚  rƒ  r‡  r…  rˆ  r   r   r   rl  rl  3  sD   „ ñ"ðH
€LóIò
ò
ò(
Lò	òòò	ò0óFr   rl  c                   ó   — e Zd ZdZd„ Zd„ Zy)ru  z³Generate unique shape names for a type.

    This class can be used in conjunction with the DenormalizedStructureBuilder
    to generate unique shape names for a given type.

    c                 ó,   — t        t        «      | _        y r"   )r   ÚintÚ_name_cacher#   s    r   rV   zShapeNameGenerator.__init__Ï  s   € Ü&¤sÓ+ˆÕr   c                 óx   — | j                   |xx   dz  cc<   | j                   |   }|j                  «       › d|› �S )aŸ  Generate a unique shape name.

        This method will guarantee a unique shape name each time it is
        called with the same type.

        ::

            >>> s = ShapeNameGenerator()
            >>> s.new_shape_name('structure')
            'StructureType1'
            >>> s.new_shape_name('structure')
            'StructureType2'
            >>> s.new_shape_name('list')
            'ListType1'
            >>> s.new_shape_name('list')
            'ListType2'


        :type type_name: string
        :param type_name: The type name (structure, list, map, string, etc.)

        :rtype: string
        :return: A unique shape name for the given type

        rc  ÚType)r—  Ú
capitalize)r$   rM   Úcurrent_indexs      r   rw  z!ShapeNameGenerator.new_shape_nameÒ  sE   € ð4 	×Ñ˜Ó# qÑ(Ó#Ø×(Ñ(¨Ñ3ˆØ×&Ñ&Ó(Ð)¨¨m¨_Ð=Ð=r   N)r   r   r   rr   rV   rw  r   r   r   ru  ru  Ç  s   „ ñò,ó>r   ru  N)*rr   Úcollectionsr   Útypingr   r   Úbotocore.authr   Úbotocore.compatr   Úbotocore.exceptionsr   r	   r
   Úbotocore.utilsr   r   r   r   Úobjectr£   Ú	Exceptionr   r   r   r   r•   r    r'   rv   r‡   r‹   r‘   r”   r™   rœ   rž   rÀ   r¢   rP   rl  ru  r   r   r   ú<module>r¤     s!  ðñ 4å #ß $å +Ý '÷ñ ÷
ó ñ ‹(€ô	˜	ô 	ô	˜	ô 	ô	˜Yô 	ô	 ô 	ô*�ô *÷
bñ bôJ'1�Uô '1ôTD�ô DôCˆuô Cô-�%ô -ô˜Zô ô
�zô ô
˜Zô ÷UAñ UA÷pf>ñ f>÷R3Eñ 3E÷l
ñ 
÷QFñ QF÷h'>ò '>r   