
    vKg                     v    S SK r S SKJr  S SKJr  S SKJr  S SKJr  S SK	J
r
JrJrJr   " S S\5      r S
S	 jrg)    N)
xform_name)DocumentStructure)get_service_module_name)NestedDocumenter)add_resource_type_overview!get_identifier_args_for_signatureget_identifier_description!get_identifier_values_for_examplec                       \ rS rSrS rSrg)SubResourceDocumenter   c                 @   [        USSSS9  [        U R                  R                  R                  R
                  S S9n/ nX0R                  S'   U GHH  nUR                  UR                  5        [        UR                  SS	9nUR                  S
5      nUR                  R                  U R                  S5        UR                  SUR                   35        UR                  UR                  5        UR                  UR                  SU R                    S30S9n[#        UU R$                  UU R&                  S9  [(        R*                  R-                  U R.                  U R0                   U R2                   5      nUR5                  XR                  5        GMK     g )NzSub-resourceszSub-resources are methods that create a new instance of a child resource. This resource's identifiers get passed along to the child.subresources_intro)sectionresource_typedescription
intro_linkc                     U R                   $ )N)name)sub_resources    V/var/www/highfloat_scraper/venv/lib/python3.13/site-packages/boto3/docs/subresource.py<lambda>>SubResourceDocumenter.document_sub_resources.<locals>.<lambda>*   s
    \%6%6    )keyzsub-resourceshtml)target
breadcrumbindexz / Sub-Resource / 	qualifier.)context)r   resource_namesub_resource_modelservice_model)r   sorted	_resourcemetaresource_modelsubresources
member_mapappendr   r   add_new_sectionstyleref_resource_class_namewriteadd_title_section
class_namedocument_sub_resource_resource_name_service_modelospathjoin_root_docs_path_service_name_resource_sub_pathwrite_to_file)	selfr   sub_resourcessub_resources_listr   sub_resource_docbreadcrumb_sectionsub_resource_sectionsub_resources_dir_paths	            r   document_sub_resources,SubResourceDocumenter.document_sub_resources   s   ")' ,		
 NN..;;6
  +=()L%%l&7&780!!&  "2!A!A,!O$$(()B)BGL$$'9,:K:K9L%MN..|/@/@A#3#C#C!!$(9&;< $D $  ","11#/"11	 &(WW\\$$%%&**+&"
 **&(9(99 *r    N)__name__
__module____qualname____firstlineno__rE   __static_attributes__rG   r   r   r   r      s    /r   r   c                    / nUR                   R                   H9  nUR                  S:X  d  M  UR                  [	        UR
                  5      5        M;     U(       aP  [        U5      nU R                  R                  SS5       UR                   3nU R                  R                  X5        U R                  S5      n	SUR                   R                   S3n
U	R                  U
5        U R                  S5      n[        U5      n[	        U5      nUR                   U:X  a  Un[	        UR                   R                  5       SU S	UR                   S
U S3nUR                  R#                  5         UR%                  U5        UR                  R'                  5         U R                  S5      nU Hy  n[)        UR                  U5      n
UR%                  SU S35        UR                  R+                  5         UR%                  SU SU
 35        UR                  R+                  5         M{     U R                  S5      nUR                  R+                  5         UR%                  S[-        U5       S	UR                   R                   S35        UR                  R+                  5         UR%                  SUR                   R                   S35        UR                  R+                  5         g)aN  Documents a resource action

:param section: The section to write to

:param resource_name: The name of the resource

:param sub_resource_model: The model of the subresource

:param service_model: The model of the service

:param include_signature: Whether or not to include the signature.
    It is useful for generating docstrings.
inputr     zmethod-introz
Creates a z
 resource.examplez = r!   ()paramsz:type z: stringz:param z: returnz:rtype: :py:class:``z:returns: A z	 resourceN)resourceidentifierssourcer,   r   r   r   r"   getr   r.   start_sphinx_py_methodr-   typeinclude_doc_stringr
   service_namestart_codeblockr1   end_codeblockr	   new_liner   )r   r#   r$   r%   include_signatureidentifiers_needed
identifiersignature_argsfull_sub_resource_namemethod_intro_sectionr   example_sectionexample_valuesexample_resource_namerP   param_sectionreturn_sections                    r   r4   r4   O   s   ( (11==
'%%j1B1B&CD > :;MN"";345G5L5L4MN 	 	,,"	
 #22>B1::??@
KK++K8--i8O67IJN&}5!!]2 -.77<<=>cBWAXXYZlZqZqYrrs  uC  tD  DE  FG))+'"'')++H5M(
0##Z
 	fZL9:$$&gj\K=AB$$& ) ,,X6N!!#
5mDEQGYGbGbGgGgFhhij !!#
)22778	B !!#r   )T)r7   botocorer   botocore.docs.bcdoc.restdocr   botocore.utilsr   boto3.docs.baser   boto3.docs.utilsr   r   r	   r
   r   r4   rG   r   r   <module>rq      s9    
  9 2 , 0, 0p B$r   