+
    šÜiò#  ã                   óH   € ^ RI t ^ RIt^ RIHt ^ RIHt  ! R R4      tR tR# )é    N)Úescape_controls)Úparse_timestampc                   ór   a € ] tR t^t o R tR tR tR tRR ltR t	R t
R tR	 tR
 tR tR tR tRtV tR# )ÚSharedExampleDocumenterc                ó  € VP                   P                  4        VP                  VP                  R4      4       VP                   P	                  4        V P                  W1W$P                  4       V P                  W1VP                  4       R# )a  Documents a single shared example based on its definition.

:param example: The model of the example

:param prefix: The prefix to use in the method example.

:param section: The section to write to.

:param operation_model: The model of the operation used in the example
ÚdescriptionN)	ÚstyleÚnew_paragraphÚwriteÚgetÚnew_lineÚdocument_inputÚinput_shapeÚdocument_outputÚoutput_shape)ÚselfÚexampleÚprefixÚsectionÚoperation_models   &&&&&Ú=/usr/lib/python3/dist-packages/botocore/docs/sharedexample.pyÚdocument_shared_exampleÚ/SharedExampleDocumenter.document_shared_example   sj   € ð 	�‰×#Ñ#Ô%Ø�‰�g—k‘k -Ó0Ô1Ø�‰×ÑÔ Ø×ÑØ˜f×&AÑ&Aô	
ð 	×Ñ˜W¨×/KÑ/KÖLó    c                ó(  € VP                  R 4      pVP                  P                  4        Ve   VP                  V4       VP	                  R / 4      pVP	                  R4      pV'       d   VP	                  R 4      pVP                  R4      pV P                  W†V. V4       VP                  R4      p	V	P                  P                  4        V	P                  P                  4        V	P                  R4       V	P                  P                  4        R# )ÚinputNÚcommentsÚ
parameterszinput-closezprint(response))Úadd_new_sectionr	   Ústart_codeblockr   r   Ú_document_paramsr   Úend_codeblock)
r   r   r   r   ÚshapeÚinput_sectionÚparamsr   Úparam_sectionÚclosing_sections
   &&&&&     r   r   Ú&SharedExampleDocumenter.document_input*   sà   € Ø×/Ñ/°Ó8ˆØ×Ñ×+Ñ+Ô-ØÒØ×Ñ Ô'Ø—‘˜W bÓ)ˆØ—;‘;˜zÓ*ˆßØ—|‘| GÓ,ˆHØ%×5Ñ5°lÓCˆØ×Ñ˜m°X¸rÀ5ÔIØ'×7Ñ7¸ÓFˆØ×Ñ×&Ñ&Ô(Ø×Ñ×&Ñ&Ô(Ø×ÑÐ/Ô0Ø×Ñ×+Ñ+Ö-r   c                óì  € VP                  R 4      pVP                  P                  4        VP                  R4       VP                  P                  4        VP                  P	                  4        VP                  R / 4      pRR/VR&   VP                  R4      pV'       d   VP                  R 4      pV P                  WEV. VR4       VP                  R4      pVP                  P                  4        R# )ÚoutputzExpected Output:z...ÚResponseMetadatar   Tzoutput-closeN)r   r	   r   r   r    r   Ú_document_dictr"   )r   r   r   r#   Úoutput_sectionr%   r   r'   s   &&&&    r   r   Ú'SharedExampleDocumenter.document_output;   sÏ   € Ø ×0Ñ0°Ó:ˆØ×Ñ×%Ñ%Ô'Ø×ÑÐ/Ô0Ø×Ñ×%Ñ%Ô'Ø×Ñ×,Ñ,Ô.Ø—‘˜X rÓ*ˆð ',¨U ^ˆÐ!Ñ"Ø—;‘;˜zÓ*ˆßØ—|‘| HÓ-ˆHØ×Ñ˜N°H¸bÀ%ÈÔNØ(×8Ñ8¸ÓHˆØ×Ñ×+Ñ+Ö-r   c                ó˜  € \        V\        4      '       d   V P                  WW4V4       R# \        V\        4      '       d   V P	                  WW4V4       R# \        V\
        P                  4      '       d   V P                  WV4       R# V'       d&   VP                  R8X  d   V P                  WV4       R# V P                  WV4       R# )aË  
:param section: The section to add the docs to.

:param value: The input / output values representing the parameters that
              are included in the example.

:param comments: The dictionary containing all the comments to be
                 applied to the example.

:param path: A list describing where the documenter is in traversing the
             parameters. This is used to find the equivalent location
             in the comments dictionary.
Ú	timestampN)Ú
isinstanceÚdictr,   ÚlistÚ_document_listÚnumbersÚNumberÚ_document_numberÚ	type_nameÚ_document_datetimeÚ_document_str)r   r   Úvaluer   Úpathr#   s   &&&&&&r   Ú	_documentÚ!SharedExampleDocumenter._documentL   s‘   € ô �eœT×"Ò"Ø×Ñ °ÀÖFÜ˜œt×$Ò$Ø×Ñ °ÀÖFÜ˜œwŸ~™~×.Ò.Ø×!Ñ! '°$Ö7ß�u—‘¨+Ô5Ø×#Ñ# G°DÖ9à×Ñ˜w¨tÖ4r   c                ó  € VP                  R 4      pV P                  VR4       VP                  4        EF  w  r‰VP                  RV 24       VP                  V4      p
V
P                  P                  4        V P                  WC4      pV'       d,   V
P                  V4       V
P                  P                  4        V
P                  RV R24       RpV'       dK   VP                  R8X  d   VP                  P                  V4      pMVP                  R8X  d   VP                  pV P                  W©W4V4       VP                  4        EK  	  VP                  R4      pV P                  VR	4       V'       g   VP                  R
4       R# R# )z
dict-valueÚ{Ú.Ú'z': NÚ	structureÚmapzending-braceÚ}Ú,)r   Ú_start_nested_valueÚitemsÚappendr	   r   Ú_get_commentr   r8   Úmembersr   r;   r=   ÚpopÚ_end_nested_value)r   r   r;   r   r<   r#   Ú	top_levelÚdict_sectionÚkeyÚvalÚitem_sectionÚitem_commentÚ
item_shapeÚdict_section_ends   &&&&&&&       r   r,   Ú&SharedExampleDocumenter._document_dicte   sE  € ð ×.Ñ.¨|Ó<ˆØ× Ñ  ¨sÔ3ØŸ™Ÿ‰HˆCØ�K‰K˜!˜C˜5˜	Ô"Ø'×7Ñ7¸Ó<ˆLØ×Ñ×'Ñ'Ô)Ø×,Ñ,¨TÓ<ˆLßØ×"Ñ" <Ô0Ø×"Ñ"×+Ñ+Ô-Ø×Ñ  3 % s˜|Ô,ð ˆJßØ—?‘? kÔ1Ø!&§¡×!2Ñ!2°3Ó!7‘JØ—_‘_¨Ô-Ø!&§¡�JØ�N‰N˜<¨h¸jÔIØ�H‰H�Jñ% &ð& (×7Ñ7¸ÓGÐØ×ÑÐ/°Ô5ßØ×"Ñ" 3Ö'ñ r   c                óŠ  € VP                  R 4      pV P                  VR4       VP                  4        Fè  w  rxVP                  RV 24       VP                  V4      p	V	P                  P                  4        V P                  WC4      p
V
'       d,   V	P                  V
4       V	P                  P                  4        V	P                  VR,           4       RpV'       d   VP                  P                  V4      pV P                  W˜W4V4       VP                  4        Kê  	  VP                  R4      pV P                  VR4       R# )zparam-valuesÚ(rA   Ú=Nzending-parenthesisÚ))r   rG   rH   rI   r	   r   rJ   r   rK   r   r=   rL   rM   )r   r   r;   r   r<   r#   r&   rP   rQ   rR   rS   rT   Úparam_section_ends   &&&&&&       r   r!   Ú(SharedExampleDocumenter._document_params‚   s	  € Ø×/Ñ/°Ó?ˆØ× Ñ  °Ô4ØŸ™ž‰HˆCØ�K‰K˜!˜C˜5˜	Ô"Ø(×8Ñ8¸Ó=ˆLØ×Ñ×'Ñ'Ô)Ø×,Ñ,¨TÓ<ˆLßØ×"Ñ" <Ô0Ø×"Ñ"×+Ñ+Ô-Ø×Ñ˜s S�yÔ)ð ˆJßØ"Ÿ]™]×.Ñ.¨sÓ3�
Ø�N‰N˜<¨h¸jÔIØ�H‰HŽJñ &ð  *×9Ñ9Ð:NÓOÐØ×ÑÐ0°#Ö6r   c                ó   € VP                  R 4      pV P                  VR4       VP                  p\        V4       F¬  w  r‰VP                  V4      p
V
P                  P                  4        VP                  RV R24       V P                  WC4      pV'       d,   V
P                  V4       V
P                  P                  4        V P                  W©W4V4       VP                  4        K®  	  VP                  R4      pV P                  VR4       R# )zlist-sectionÚ[Ú]zending-bracketz],N)r   rG   ÚmemberÚ	enumerater	   r   rI   rJ   r   r=   rL   rM   )r   r   r;   r   r<   r#   Úlist_sectionrT   ÚindexrQ   rR   rS   Úlist_section_ends   &&&&&&       r   r4   Ú&SharedExampleDocumenter._document_list˜   sã   € Ø×.Ñ.¨~Ó>ˆØ× Ñ  ¨sÔ3Ø—\‘\ˆ
Ü# EÖ*‰JˆEØ'×7Ñ7¸Ó>ˆLØ×Ñ×'Ñ'Ô)Ø�K‰K˜!˜E˜7 !˜Ô%Ø×,Ñ,¨TÓ<ˆLßØ×"Ñ" <Ô0Ø×"Ñ"×+Ñ+Ô-Ø�N‰N˜<¨h¸jÔIØ�H‰HŽJñ +ð (×7Ñ7Ð8HÓIÐØ×ÑÐ/°Ö6r   c                óF   € \        V4      pVP                  R V R24       R# )rB   z',N)r   r   )r   r   r;   r<   Ú
safe_values   &&&& r   r:   Ú%SharedExampleDocumenter._document_str©   s#   € ô % UÓ+ˆ
Ø�‰˜˜*˜ RÐ(Ö)r   c                ó@   € VP                  \        V4       R 24       R# )rF   N)r   Ústr)r   r   r;   r<   s   &&&&r   r7   Ú(SharedExampleDocumenter._document_number¯   s   € Ø�‰œ˜U›˜ AÐ&Ö'r   c                óü   € \        V4      P                  4       p\        V^ ,          4      p\        ^\	        V4      4       F"  pVR\        WF,          4      ,           ,          pK$  	  VP                  RV R24       R# )r   z, z	datetime(z),N)r   Ú	timetuplerj   ÚrangeÚlenr   )r   r   r;   r<   Údatetime_tupleÚdatetime_strÚis   &&&&   r   r9   Ú*SharedExampleDocumenter._document_datetime²   sf   € Ü(¨Ó/×9Ñ9Ó;ˆÜ˜>¨!Õ,Ó-ˆÜ�qœ#˜nÓ-Ö.ˆAØ˜D¤3 ~Õ'8Ó#9Õ9Õ9ŠLñ /à�‰˜	 , ¨rÐ2Ö3r   c                óŽ   € \         P                  ! R RRP                  V4      4      pV'       d   W29   d   RW#,          ,           # R# )z^\.Ú z# )ÚreÚsubÚjoin)r   r<   r   rP   s   &&& r   rJ   Ú$SharedExampleDocumenter._get_comment¹   s3   € Ü�fŠf�V˜R §¡¨£Ó/ˆß˜œØ˜(�-Õ'Ð'ár   c                ó�   € VP                  V4       VP                  P                  4        VP                  P                  4        R # ©N)r   r	   Úindent)r   r   Ústarts   &&&r   rG   Ú+SharedExampleDocumenter._start_nested_valueÀ   s.   € Ø�‰�eÔØ�‰×ÑÔØ�‰×ÑÖr   c                óÄ   € VP                   P                  4        VP                   P                  4        VP                   P                  4        VP                  V4       R # r{   )r	   Údedentr   r   )r   r   Úends   &&&r   rM   Ú)SharedExampleDocumenter._end_nested_valueÅ   s>   € Ø�‰×ÑÔØ�‰×ÑÔØ�‰×ÑÔ Ø�‰�cÖr   © N)F)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__r   r   r   r=   r,   r!   r4   r:   r7   r9   rJ   rG   rM   Ú__static_attributes__Ú__classdictcell__)Ú__classdict__s   @r   r   r      sL   ø‡ € òMò*.ò".ò"5ô2(ò:7ò,7ò"*ò(ò4òò÷
ð r   r   c                ó  € V P                  R4      pVP                  P                  4        VP                  P                  R4       \	        4       pV F.  pVP                  VVP                  VR,          4      VVR7       K0  	  R# )a   Documents the shared examples

:param section: The section to write to.

:param operation_model: The model of the operation.

:param example_prefix: The prefix to use in the method example.

:param shared_examples: The shared JSON examples from the model.
zshared-examplesÚExamplesÚid)r   r   r   r   N)r   r	   r
   Úboldr   r   )r   r   Úexample_prefixÚshared_examplesÚcontainer_sectionÚ
documenterr   s   &&&&   r   Údocument_shared_examplesr“   Ì   s|   € ð  ×/Ñ/Ð0AÓBÐØ×Ñ×)Ñ)Ô+Ø×Ñ× Ñ  Ô,Ü(Ó*€JÛ"ˆØ×*Ñ*ØØ%×5Ñ5°g¸dµmÓDØ!Ø+ð	 	+ö 	
ó #r   )r5   rv   Úbotocore.docs.utilsr   Úbotocore.utilsr   r   r“   rƒ   r   r   Ú<module>r–      s%   ðó Û 	å /Ý *÷uñ uôp
r   