U k‰^Nã@sjddlZddlZddlmZdd„Zdd„Zdd„Zd d „Zd d „Zd d„Z ddd„Z Gdd„de ƒZ dS)éN)ÚsixcCsTg}|D]F}t |j¡}|j}|dr4|dd}q|ddkr| |d¡q|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úg/private/var/folders/sd/whlwsn6x1_qgglc0mjv25_695qk2gl/T/pip-install-4zq3fp6i/boto3/boto3/docs/utils.pyÚget_resource_ignore_paramss  rcCstjrt |¡St |¡SdS©N)rÚPY3ÚinspectÚ isfunctionÚismethod)Z action_handlerrrÚis_resource_action)s rcCsPt |¡}i}|D]8\}}| d¡s|d ¡s| d¡st|ƒr|||<q|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_descriptionEsÿr*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          ÿÿr1c@s$eZdZdd„Zdd„Zdd„ZdS)ÚDocumentModifiedShapecCs||_||_||_||_dSr)Ú _shape_nameÚ _new_typeÚ_new_descriptionÚ_new_example_value)ÚselfZ shape_nameZnew_typeZnew_descriptionZnew_example_valuerrrÚ__init__]szDocumentModifiedShape.__init__cKsd|j|j d¡kr| ||¡|jD]:}| |¡}|j|j d¡krR| ||¡q$| ||¡q$dS)NÚshape)r3ÚcontextÚgetÚ_replace_documentationÚavailable_sectionsÚ get_sectionÚ(replace_documentation_for_matching_shape)r7Ú event_namer/ÚkwargsÚ section_nameZ sub_sectionrrrr?ds   ÿz>DocumentModifiedShape.replace_documentation_for_matching_shapecCsÜ| d¡s| d¡r0| ¡| ¡| |j¡| d¡sD| d¡rØ|jD]}|dkrJ| |¡qJ| 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-nameúparam-documentationz end-structureú param-typez end-paramrCrDzutf-8z:typez :type %s: %sz(%s) -- )rZremove_all_sectionsZ clear_textr-r6r=Zdelete_sectionr>r5ÚgetvalueÚdecoderr4r+Zitalics)r7r@r/rBZdescription_sectionZ type_sectionrrrr<ps0 ÿ  ÿ     ÿ z,DocumentModifiedShape._replace_documentationN)Ú__name__Ú __module__Ú __qualname__r8r?r<rrrrr2\s r2)N) rrZbotocore.compatrrrrr'r(r*r1Úobjectr2rrrrÚ s  ÿ