o d<@s^ddlZddlZddZddZddZdd Zd d Zd d Z dddZGdddZ dS)NcCsZg}|D]&}t|j}|j}|dr|dd}|ds|ddkr*||dq|S)zHelper method to determine which parameters to ignore for actions :returns: A list of the parameter names that does not need to be included in a resource's method call for documentation purposes. childrenrtypefieldvalue)jmespathcompiletargetparsedappend)paramsZ ignore_paramsparamresultcurrentrk/private/var/folders/v1/_jykv66s6qd26_69j1njbrl80000gr/T/pip-target-p1gutpg6/lib/python/boto3/docs/utils.pyget_resource_ignore_paramss   rcCs t|SN)inspect isfunction)Z action_handlerrris_resource_action' rcCsPt|}i}|D]\}}|ds%|ds%|ds%t|r%|||<q |S)N_rZ wait_until)r getmembers startswithisupperr)Zresource_classZresource_class_membersZresource_methodsnamememberrrrget_resource_public_actions+s     rcCsddd|DS)N,cSsg|]}d|dqS)'r).0 identifierrrr 8sz5get_identifier_values_for_example..joinZidentifier_namesrrr!get_identifier_values_for_example7sr&cCs d|S)Nrr#r%rrr!get_identifier_args_for_signature;rr'cCsd|d|dS)NzThe z's z" identifier. This **must** be set.r) resource_nameZidentifier_namerrrget_identifier_description?sr)cCst|j|j||j|j|||j|dur8|d|d|d|jdSdS)NzFor more information about z1 refer to the :ref:`Resources Introduction Guide`.)stylenew_lineh3writelower)sectionZ resource_type descriptionZ intro_linkrrradd_resource_type_overviewFs       r1c@s$eZdZddZddZddZdS)DocumentModifiedShapecCs||_||_||_||_dSr) _shape_name _new_type_new_description_new_example_value)selfZ shape_namenew_typeZnew_descriptionZnew_example_valuerrr__init__Xs zDocumentModifiedShape.__init__cKsd|j|jdkr||||jD]}||}|j|jdkr)|||q|||qdS)Nshape)r3contextget_replace_documentationavailable_sections get_section(replace_documentation_for_matching_shape)r7 event_namer/kwargs section_nameZ sub_sectionrrrr@`s   z>DocumentModifiedShape.replace_documentation_for_matching_shapecCs|ds |dr||||j|ds"|drud}|jD] }||vr2||q'|d}|||j|d}| dd rd||d |j d |j dS||j d |j d dSdS)Nzdocs.request-examplezdocs.response-examplezdocs.request-paramszdocs.response-params)z param-nameparam-documentationz end-structure param-typez end-paramrDrEzutf-8z:typez:type z: (z) -- )rZremove_all_sectionsZ clear_textr-r6r>Zdelete_sectionr?r5getvaluedecoderr4r*Zitalics)r7rAr/Zallowed_sectionsrCZdescription_sectionZ type_sectionrrrr=ns8      z,DocumentModifiedShape._replace_documentationN)__name__ __module__ __qualname__r9r@r=rrrrr2Ws r2r) rrrrrr&r'r)r1r2rrrrs