ó U!¶\c@sfddlmZddlmZdefd„ƒYZdefd„ƒYZdefd„ƒYZd S( iÿÿÿÿ(tShapeDocumenter(t py_type_nametBaseParamsDocumentercBsŒeZd d d„Zd„Zd d d„Zd d d„Zd d d„Zd d d d„Zd„Z d„Z d„Z d „Z d „Z RS( c Cs8g}|jd|d|d|ddd|d|ƒdS(s3Fills out the documentation for a section given a model shape. :param section: The section to write the documentation to. :param shape: The shape of the operation. :type include: Dictionary where keys are parameter names and values are the shapes of the parameter names. :param include: The parameter shapes to include in the documentation. :type exclude: List of the names of the parameters to exclude. :param exclude: The names of the parameters to exclude from documentation. tsectiontshapethistorytnametincludetexcludeN(ttraverse_and_document_shapetNone(tselfRRRRR((s8/tmp/pip-install-usGedi/botocore/botocore/docs/params.pytdocument_paramss cKs|j|||dS(N(t_add_member_documentation(R RRtkwargs((s8/tmp/pip-install-usGedi/botocore/botocore/docs/params.pytdocument_recursive_shape&scKs|j|||dS(N(R (R RRRRRR((s8/tmp/pip-install-usGedi/botocore/botocore/docs/params.pytdocument_shape_default)sc Ks|j||||j}|j|jdi|jjd6ƒ}|j|ƒ|jd|d|d|ddƒ|jdƒ}|j|ƒdS(NtcontextRRRRsend-list(R tmembertadd_new_sectionRt_start_nested_paramR R t_end_nested_param( R RRRRRRt param_shapet param_section((s8/tmp/pip-install-usGedi/botocore/botocore/docs/params.pytdocument_shape_type_list-s     c Ksé|j||||jddi|jjd6ƒ}|j|ƒ|j||jƒ|j|jjdi|jjd6ƒ}|jjƒ|j|ƒ|jd|d|jd|ddƒ|jdƒ} |j | ƒ|j | ƒdS(NtkeyRRRRRsend-map( R RRRRtvaluetstyletindentR R R( R RRRRRRt key_sectionRt end_section((s8/tmp/pip-install-usGedi/botocore/botocore/docs/params.pytdocument_shape_type_map:s "     c KsÌ|j|j|ƒ}|j||d|ƒx~|D]v} |rP| |krPq2n|| } |j| di| jd6ƒ} |j| ƒ|jd| d| d|d| ƒq2W|jdƒ}|j|ƒdS(NRRRRRs end-structure(t_add_members_to_shapetmembersR RRRR R( R RRRRRRRR!tparamRR((s8/tmp/pip-install-usGedi/botocore/botocore/docs/params.pytdocument_shape_type_structureOs     cKsdS(N((R RRR((s8/tmp/pip-install-usGedi/botocore/botocore/docs/params.pyR ascCs7|r3|jƒ}x|D]}|||j so