3 ?ã\Nã@sjddlZddlZddlmZdd„Zdd„Zdd„Zd d „Zd d „Zd d„Z ddd„Z Gdd„de ƒZ dS)éN)ÚsixcCs\g}xR|D]J}tj|jƒ}|j}x|dr8|dd}q"W|ddkr |j|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úg/private/var/folders/pf/wv4htv3x0qs2c2mp0dnn0kchsvlck3/T/pip-install-emcbgzcf/boto3/boto3/docs/utils.pyÚget_resource_ignore_paramss    rcCstjrtj|ƒStj|ƒSdS)N)rÚPY3ÚinspectÚ isfunctionÚismethod)Z action_handlerrrÚis_resource_action)s rcCsTtj|ƒ}i}x@|D]8\}}|jdƒs|djƒs|jdƒ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ƒ}dj|ƒ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 dj|ƒ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†|jjƒ|jdƒ|jjƒ|jjƒ|j|ƒ|jjƒ|jjƒ|j|ƒ|jjƒ|dk r‚|jd|jƒ|fƒ|jjƒ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|jjdƒkr|j||ƒxD|jD]:}|j|ƒ}|j|jjdƒkrT|j||ƒq&|j||ƒq&WdS)NÚshape)r1ÚcontextÚgetÚ_replace_documentationÚavailable_sectionsÚ get_sectionÚ(replace_documentation_for_matching_shape)r5Ú event_namer-ÚkwargsÚ section_nameZ sub_sectionrrrr=ds   z>DocumentModifiedShape.replace_documentation_for_matching_shapecCsà|jdƒs|jdƒr0|jƒ|jƒ|j|jƒ|jdƒsD|jdƒrÜx |jD]}|dkrL|j|ƒqLW|jdƒ}|jƒ|j|jƒ|jdƒ}|j ƒj d ƒjd ƒrÂ|jƒ|jd |j |j fƒn|jƒ|j jd |j ƒdS)Nzdocs.request-examplezdocs.response-examplezdocs.request-paramszdocs.response-paramsú param-nameúparam-documentationú end-structureú param-typeú end-paramzutf-8z:typez :type %s: %sz(%s) -- )rArBrCrDrE)rZremove_all_sectionsZ clear_textr+r4r;Zdelete_sectionr<r3ÚgetvalueÚdecoderr2r)Zitalics)r5r>r-r@Zdescription_sectionZ type_sectionrrrr:ps,         z,DocumentModifiedShape._replace_documentationN)Ú__name__Ú __module__Ú __qualname__r6r=r:rrrrr0\s r0)N) rrZbotocore.compatrrrrr%r&r(r/Úobjectr0rrrrÚ s