B ’äî\Nã@sjddlZddlZddlmZdd„Zdd„Zdd„Zd d „Zd d „Zd d„Z ddd„Z Gdd„de ƒZ dS)éN)ÚsixcCs\g}xR|D]J}t |j¡}|j}x|dr8|dd}q"W|ddkr | |d¡q W|S)zÕHelper 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. ÚchildrenrÚtypeÚfieldÚvalue)ÚjmespathÚcompileÚtargetÚparsedÚappend)ÚparamsZ ignore_paramsÚparamÚresultÚcurrent©rú1/tmp/pip-build-uw_ogi45/boto3/boto3/docs/utils.pyÚget_resource_ignore_paramss    rcCstjrt |¡St |¡SdS)N)rÚPY3ÚinspectZ isfunctionZismethod)Z action_handlerrrÚis_resource_action)s rcCsTt |¡}i}x@|D]8\}}| d¡s|d ¡s| d¡st|ƒr|||<qW|S)NÚ_rZ wait_until)rÚ getmembersÚ startswithÚisupperr)Zresource_classZresource_class_membersZresource_methodsÚnameÚmemberrrrÚget_resource_public_actions0s     rcCsdd„|Dƒ}d |¡S)NcSsg|] }d|‘qS)z'%s'r)Ú.0Ú identifierrrrú =sz5get_identifier_values_for_example..ú,)Újoin)Úidentifier_namesZexample_valuesrrrÚ!get_identifier_values_for_example<sr#cCs d |¡S)Nr )r!)r"rrrÚ!get_identifier_args_for_signatureAsr$cCs d||fS)Nz-The %s's %s identifier. This **must** be set.r)Ú resource_nameZidentifier_namerrrÚget_identifier_descriptionEsr&cCs†|j ¡| d¡|j ¡|j ¡| |¡|j ¡|j ¡| |¡|j ¡|dk r‚| d| ¡|f¡|j ¡dS)Nz.. rst-class:: admonition-titlezSFor more information about %s refer to the :ref:`Resources Introduction Guide<%s>`.)ÚstyleÚnew_lineÚwriteÚlower)ÚsectionZ resource_typeÚ descriptionZ intro_linkrrrÚadd_resource_type_overviewJs         r-c@s$eZdZdd„Zdd„Zdd„ZdS)ÚDocumentModifiedShapecCs||_||_||_||_dS)N)Ú _shape_nameÚ _new_typeÚ_new_descriptionÚ_new_example_value)ÚselfZ shape_nameZnew_typeZnew_descriptionZnew_example_valuerrrÚ__init__]szDocumentModifiedShape.__init__cKsh|j|j d¡kr| ||¡xD|jD]:}| |¡}|j|j d¡krT| ||¡q&| ||¡q&WdS)NÚshape)r/ÚcontextÚgetÚ_replace_documentationÚavailable_sectionsÚ get_sectionÚ(replace_documentation_for_matching_shape)r3Ú event_namer+ÚkwargsÚ section_nameZ sub_sectionrrrr;ds   z>DocumentModifiedShape.replace_documentation_for_matching_shapecCsà| d¡s| d¡r0| ¡| ¡| |j¡| d¡sD| d¡rÜx |jD]}|dkrL| |¡qLW| d¡}| ¡| |j¡| d¡}|  ¡  d¡ d ¡rÂ| ¡| d |j |j f¡n| ¡|j  d |j ¡dS) Nzdocs.request-examplezdocs.response-examplezdocs.request-paramszdocs.response-params)z param-namezparam-documentationz end-structurez param-typez end-paramzparam-documentationz param-typezutf-8z:typez :type %s: %sz(%s) -- )rZremove_all_sectionsZ clear_textr)r2r9Zdelete_sectionr:r1ÚgetvalueÚdecoderr0r'Zitalics)r3r<r+r>Zdescription_sectionZ type_sectionrrrr8ps(         z,DocumentModifiedShape._replace_documentationN)Ú__name__Ú __module__Ú __qualname__r4r;r8rrrrr.\s r.)N) rrZbotocore.compatrrrrr#r$r&r-Úobjectr.rrrrÚ s