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)ÚparamsÚ ignore_paramsÚparamÚresultÚcurrent©rúQ/Users/kashii/Desktop/Projects/Workshops/worker-safety/lambda/boto3/docs/utils.pyÚget_resource_ignore_paramss    rcCstjrt |¡St |¡SdS)N)rÚPY3ÚinspectÚ isfunctionÚismethod)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_namesÚexample_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_nameÚidentifier_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)ÚsectionÚ resource_typeÚ descriptionÚ intro_linkrrrÚadd_resource_type_overviewJs         r4c@s$eZdZdd„Zdd„Zdd„ZdS)ÚDocumentModifiedShapecCs||_||_||_||_dS)N)Ú _shape_nameÚ _new_typeÚ_new_descriptionÚ_new_example_value)ÚselfÚ 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)r6ÚcontextÚgetÚ_replace_documentationÚavailable_sectionsÚ get_sectionÚ(replace_documentation_for_matching_shape)r:Ú event_namer0ÚkwargsÚ section_nameZ sub_sectionrrrrCds   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) -- )rÚremove_all_sectionsÚ clear_textr.r9rAÚdelete_sectionrBr8ÚgetvalueÚdecoderr7r,Úitalics)r:rDr0rFÚdescription_sectionÚ type_sectionrrrr@ps(         z,DocumentModifiedShape._replace_documentationN)Ú__name__Ú __module__Ú __qualname__r<rCr@rrrrr5\s r5)N) rrÚbotocore.compatrrrrr'r(r+r4Úobjectr5rrrrÚ s