ó T!¶\c@s¢ddlZddlZddlmZddlmZddlmZddl m Z ddl m Z ddl mZddl mZd efd „ƒYZdS( iÿÿÿÿN(tDataNotFoundError(tServiceDocumenter(tDocumentStructure(tServiceContext(tBoto3ClientDocumenter(tResourceDocumenter(tServiceResourceDocumenterRcBskeZejjejjejƒdƒZd„Z d„Z d„Z d„Z d„Z d„Zd„ZRS(texamplescCsžtt|ƒjd|d|jƒ||_|jj|ƒ|_d|_|j |jj ƒkry|jj |ƒ|_nddddddd d g|_ dS( Nt service_nametsessionttitlestable-of-contentstclientt paginatorstwaiterssservice-resourcet resourcesR( tsuperRt__init__t_sessiont_boto3_sessionR t_clienttNonet_service_resourcet _service_nametget_available_resourcestresourcetsections(tselfRR ((s3/tmp/pip-install-usGedi/boto3/boto3/docs/service.pyRs    cCsät|jd|jddƒ}|j|jdƒƒ|j|jdƒƒ|j|jdƒƒ|j|jdƒƒ|j|jdƒƒ|j rÄ|j |jd ƒƒ|j |jd ƒƒn|j |jd ƒƒ|j ƒS( siDocuments an entire service. :returns: The reStructured text of the documented service. t section_namesttargetthtmlR stable-of-contentsR R R sservice-resourceRR(RRRR t get_sectionttable_of_contentst client_apit paginator_apit waiter_apiRt_document_service_resourcet_document_resourcest_document_examplestflush_structure(Rt doc_structure((s3/tmp/pip-install-usGedi/boto3/boto3/docs/service.pytdocument_service5s  cCsMd}y|j|jƒ}Wntk r/nXt|j|ƒj|ƒdS(N(Rt get_examplesRRRRtdocument_client(RtsectionR((s3/tmp/pip-install-usGedi/boto3/boto3/docs/service.pyR Js  cCs t|j|jƒj|ƒdS(N(RRRtdocument_resource(RR+((s3/tmp/pip-install-usGedi/boto3/boto3/docs/service.pyR#Ssc Cs"d}|jjdƒ}|j|jdƒ}|jjjjj}xÙ|dD]Í}|d|}|jj j d|d|dt d|jd |dd |d dƒƒ}|jj j} g} x| D]} | j|ƒqÃW|d |j| Œ} t| |jƒj|j| jj jƒƒqMWdS( Ntfoot data_loaders resources-1Rt resource_nametsingle_resource_json_definitiontservice_contextRtresource_json_definitionst service_modeltservice_waiter_modelR (Rt get_componenttload_service_modelRRtmetaR R3Rtresource_factorytload_from_definitionRRtresource_modelt identifierstappendRRR,tadd_new_sectiontname( RR+ttemp_identifier_valuetloadertjson_resource_modelR3R/R:t resource_clsR;targst_R((s3/tmp/pip-install-usGedi/boto3/boto3/docs/service.pyR$Xs0   cCs)tjjtjj|j|jdƒƒS(Ns.rst(tostpathtrealpathtjoint EXAMPLE_PATHR(R((s3/tmp/pip-install-usGedi/boto3/boto3/docs/service.pyt_get_example_fileus cCs”|jƒ}tjj|ƒr|jjdƒ|jjƒ|jdƒ|jjƒ|jjƒt|dƒ}|j|j ƒƒWdQXndS(NtExampless'.. contents:: :local: :depth: 1tr( RJRERFtisfiletstyleth2tnew_linetwritetopentread(RR+t examples_filetf((s3/tmp/pip-install-usGedi/boto3/boto3/docs/service.pyR%zs     (t__name__t __module__RERFRHtdirnametboto3t__file__RIRR(R R#R$RJR%(((s3/tmp/pip-install-usGedi/boto3/boto3/docs/service.pyRs$     (RERYtbotocore.exceptionsRtbotocore.docs.serviceRtBaseServiceDocumentertbotocore.docs.bcdoc.restdocRt boto3.utilsRtboto3.docs.clientRtboto3.docs.resourceRR(((s3/tmp/pip-install-usGedi/boto3/boto3/docs/service.pyt s