&>ac@sddlmZddlmZddlmZddlmZddlmZddlm Z ddl m Z ddlm Z dd l mZd Zd efd YZd efdYZdS(i(tget_official_service_name(tdocument_custom_method(tdocument_model_driven_method(tget_instance_public_methods(tdocument_shared_examples(tResponseExampleDocumenter(tResponseParamsDocumenter(tDocumentedShape(t OrderedDictcKs|dkrdS|dkS(Ntgenerate_presigned_urlts3(R (tNone(t method_namet service_nametkwargs((s5/usr/lib/fence-agents/bundled/botocore/docs/client.pyt!_allowlist_generate_presigned_urls tClientDocumentercBseZegZddZdZdZdZdZ dZ dZ dZ dZ d Zd Zd Zd Zd ZdZRS(cCsF||_||_|jdkr-i|_n|jjjj|_dS(N(t_clientt_shared_examplesR tmetat service_modelR t _service_name(tselftclienttshared_examples((s5/usr/lib/fence-agents/bundled/botocore/docs/client.pyt__init__#s    cCsJ|j||j||j}|j|||j||dS(s]Documents a client and its methods :param section: The section to write to. N(t _add_titlet_add_class_signaturet_get_client_methodst_add_client_introt_add_client_methods(Rtsectiontclient_methods((s5/usr/lib/fence-agents/bundled/botocore/docs/client.pytdocument_client*s    cCst|j}|j|S(N(RRt_filter_client_methods(RR ((s5/usr/lib/fence-agents/bundled/botocore/docs/client.pyR5scCs[i}xN|jD]@\}}|jd|d|d|j}|r|||R1tindenttdedentRKR@(RRRi((s5/usr/lib/fence-agents/bundled/botocore/docs/client.pyRn s            cCs]|jd}|jjd|j||j|||j|||jjdS(Ntresponse(R0R-tstart_sphinx_py_attrt_add_response_attr_descriptiont_add_response_examplet_add_response_paramstend_sphinx_py_attr(RRRitresponse_section((s5/usr/lib/fence-agents/bundled/botocore/docs/client.pyRos  cCs+|jj|jd|jjdS(NsThe parsed error response. All exceptions have a top level ``Error`` key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.(R-R2R3(RR((s5/usr/lib/fence-agents/bundled/botocore/docs/client.pyRw"s cCs|jd}|jj|jjd|jjtd|jddd|jj j }|j ||d|j gdS(NtsyntaxtSyntaxR RVRQR'( R0R-R2RIt new_paragraphRRR RRRTtdocument_examplet_GENERIC_ERROR_SHAPE(RRRitexample_sectiont documenter((s5/usr/lib/fence-agents/bundled/botocore/docs/client.pyRx,s   cCs|jd}|jj|jjd|jjtd|jddd|jj j }|j ||d|j gdS(Nt StructureR RVRQR'( R0R-R2RIR~RRR RRRTtdocument_paramsR(RRRitparams_sectionR((s5/usr/lib/fence-agents/bundled/botocore/docs/client.pyRy:s   (R7RWRhRRRRRcRR`RkRaRbRlRmRnRoRwRxRy(((s5/usr/lib/fence-agents/bundled/botocore/docs/client.pyRXs8              N(tbotocore.docs.utilsRtbotocore.docs.methodRRRtbotocore.docs.sharedexampleRtbotocore.docs.exampleRtbotocore.docs.paramsRRtbotocore.compatRRtobjectRRX(((s5/usr/lib/fence-agents/bundled/botocore/docs/client.pyt s