+
     Ii"  c                   s`    ^ RI Ht ^ RIHt  ! R R]4      t ! R R]4      t ! R R]4      tR	# )
i    )ShapeDocumenter)
py_defaultc                   s   a  ] tR t^t o RR ltR tRR ltRR ltRR ltRR lt	RR lt
R	 tRR
 ltRR ltR tRtV tR# )BaseExampleDocumenterNc                s   . pVP                   P                  4        VP                   P                  4        Ve   VP                  V4       V P	                  VVVVVR7       VP                  R4      pVP                   P                  4        R# )a  Generates an example based on a shape

:param section: The section to write the documentation to.

:param shape: The shape of the operation.

:param prefix: Anything to be included before the example

:type include: Dictionary where keys are parameter names and
    values are the shapes of the parameter names.
:param include: The parameter shapes to include in the documentation.

:type exclude: List of the names of the parameters to exclude.
:param exclude: The names of the parameters to exclude from
    documentation.
N)sectionshapehistoryincludeexcludezfinal-blank-line)stylenew_lineZstart_codeblockwritetraverse_and_document_shapeadd_new_section)selfr   r   Zprefixr   r   r   Zfinal_blank_line_sections   &&&&&&  :/usr/lib/python3.14/site-packages/botocore/docs/example.pydocument_exampleZ&BaseExampleDocumenter.document_example   s    &  %%'MM&!(( 	) 	
 $+#:#:;M#N  &&//1    c                s(    VP                  R 4       R# )z{'... recursive ...'}N)r
   )r   r   r   kwargss   &&&,r   document_recursive_shapeZ.BaseExampleDocumenter.document_recursive_shape4   s    /0r   c                s    V P                  V4      pVf   \        VP                  4      pV P                  P	                  R4      V8X  d   RpVP                  V4       R # )NZstreaming_shapezStreamingBody())Z_get_special_py_defaultr   Z	type_nameZ_contextZgetr
   )r   r   r   r   r   r   r   Zpy_types   &&&&&&, r   document_shape_defaultZ,BaseExampleDocumenter.document_shape_default7   sP     ..u5? 1G==./58'Ggr   c                s:   R VP                   9   dx   \        VP                   R ,          4       FU  w  rxVP                  RV R24       V\        VP                   R ,          4      ^,
          8  g   KD  VP                  R4       KW  	  R# V P	                  WV4       R# )enum'Z|N)Zmetadata	enumerater
   lenr   )	r   r   r   r   r   r   r   ir   s	   &&&&&&,  r   document_shape_type_stringZ0BaseExampleDocumenter.document_shape_type_stringB   sw     U^^#$U^^F%;<4&m,s5>>&12Q66MM#& =
 ''@r   c                sR   VP                   pVP                  R 4      pV P                  VR4       VP                  RRVP                  /R7      p	V P	                  WVR7       VP                  R4      p
V
P                  R4       VP                  R4      pV P                  VR	4       R
# )z
list-valueZ[memberr   Zcontextr   r   r   ending-comma,ending-bracketZ]N)r   r   _start_nested_paramnamer   r
   _end_nested_param)r   r   r   r   r   r   r   param_shapeZlist_sectionparam_sectionending_comma_sectionZending_bracket_section   &&&&&&,     r   document_shape_type_listZ.BaseExampleDocumenter.document_shape_type_listM   s     ll..|<  s3$44w(8(89 5 
 	((!g 	) 	
  ,;;NK""3'!-!=!=>N!O5s;r   c                s   VP                   '       g   VP                  R 4       R# VP                  R4      pV P                  VR4       V P	                  VP                   V4      p\        V4       F  w  rV'       d	   W9   d   K  VP                  V	4      p
V
P                  RV	 R24       Wy,          pV
P                  RRVP                  /R7      pV P                  VVVV	R	7       V\        V4      ^,
          8  g   K  V
P                  R
4      pVP                  R4       VP                  P                  4        K  	  V P                  VRR4       R# )z{}Nstructure-value{r   z': member-valuer   r   r   r   r   r!   r   r   })membersr
   r   r    _add_members_to_shaper   r!   r   r   r   r	   _end_structure)r   r   r   r   r   r   r   input_membersr   paramr$   r#   param_value_sectionr%   s   &&&&&&,       r   document_shape_type_structureZ3BaseExampleDocumenter.document_shape_type_structure^   sD    }}}MM$))*;<  #.225=='J!-0HA5+#33E:M"UG4 01'.K"/"?"?+2B2B(C #@ # ,,+!	 -  3}%))'4'D'D"($ %**3/$**335) 1* 	GS#.r   c                s   VP                  R 4      pV P                  VR4       VP                  pVP                  RRVP                  P                  /R7      p	V	P                  R4       VP                  RRVP                  /R7      p
V P                  WVR7       VP                  R4      pV P                  VR	4       R
# )z	map-valuer)   keyr   r   z
'string': valuer   r   r,   N)r   r    r5   r4   r!   r
   r   r"   )r   r   r   r   r   r   r   Zmap_sectionZvalue_shapeZkey_sectionZvalue_sectionend_bracket_sectionr&   r   document_shape_type_mapZ-BaseExampleDocumenter.document_shape_type_map   s     --k:  c2kk!11GUYY^^4 2 
 	.)#33g{'7'78 4 
 	((!g 	) 	
 *99:JK2C8r   c                sd    V'       d(   VP                  4       pV F  pW1VP                  &   K  	  V# N)Zcopyr!   )r   r-   r   r1   s   &&& r   r.   Z+BaseExampleDocumenter._add_members_to_shape   s+    llnG &+

# !r   c                s    Ve   VP                  V4       VP                  P                  4        VP                  P                  4        VP                  P                  4        R # r8   )r
   r   Zindentr	   )r   r   start   &&&r   r    Z)BaseExampleDocumenter._start_nested_param   sD    MM%  r   c                s    VP                   P                  4        VP                   P                  4        VP                   P                  4        Ve   VP                  V4       R # R # r8   )r   Zdedentr	   r
   )r   r   endr:   r   r"   Z'BaseExampleDocumenter._end_nested_param   sH     ?MM# r   c                s    VP                   '       g;   VP                  4        VP                  W#,           4       V P                  V4       R# VP	                  R 4      pV P                  WC4       R# )r   N)Zavailable_sectionsZ
clear_textr
   r"   r   )r   r   r9   r;   r6   s   &&&& r   r/   Z$BaseExampleDocumenter._end_structure   sY     ))) MM%+&""7+")"9"9:J"K""#6<r    )NNNNNr8   )__name__
__module____qualname____firstlineno__r   r   r   r   r'   r3   r7   r.   r    r"   r/   __static_attributes____classdictcell__Z__classdict__   @r   r   r      sD      2D1		A<"!/F9&!
= 
=r   r   c                   s*   a  ] tR t^t o RtR tRtV tR# )ResponseExampleDocumenterzresponse-examplec                s    VP                  R 4       V P                  ! WV3/ VB  VP                  R4      pVP                  R4       R# )zEventStream(zevent-stream-end)N)r
   r3   r   )r   r   r   r   r   Zend_sections   &&&&, r    document_shape_type_event_streamZ:ResponseExampleDocumenter.document_shape_type_event_stream   sD     	n%**77MfM--.@A#r   r<   N)r>   r?   r@   rA   
EVENT_NAMErH   rB   rC   rD   rE   r   rF   rF      s     #J r   rF   c                   s.   a  ] tR t^t o RtRR ltRtV tR# )RequestExampleDocumenterzrequest-exampleNc                s   R pRpRp	Rp
\        V4      ^8:  d	   RpRp	Rp
RpVP                  R4      pV P                  W4       V P                  VP                  V4      p\        V4       F  w  rV'       d	   W9   d   K  VP                  V4      pVP                  W},          4       VP                  V4       W,          pVP                  R	R
VP                  /R7      pV P                  VVVVR7       V\        V4      ^,
          8  g   K  VP                  R4      pVP                  R4       VP                  P                  4        K  	  V P                  WV
4       R# )z'%s'z: r)   r,   Z=Z(rG   z%sr(   r*   r   r   r+   r   r   N)r   r   r    r.   r-   r   r
   r!   r   r   r	   r/   )r   r   r   r   r   r   r   Zparam_formatZoperatorr9   r;   r0   r   r1   r$   r#   r2   r%   s   &&&&&&,           r   r3   Z6RequestExampleDocumenter.document_shape_type_structure   sd     w<1HECL))*;<  0225=='J!-0HA5+#33E:M 45)'.K"/"?"?+2B2B(C #@ # ,,+!	 -  3}%))'4'D'D"($ %**3/$**335+ 1, 	GC0r   r<   r=   )r>   r?   r@   rA   rI   r3   rB   rC   rD   rE   r   rJ   rJ      s     "J'1 '1r   rJ   N)Zbotocore.docs.shaper    Zbotocore.docs.utilsr   r   rF   rJ   r<   r   r   <module>rK      s6    0 *b=O b=J	 5 	*14 *1r   