ó T!¶\c@s–ddlmZddlmZddlmZddlmZddlmZddlm Z ddlm Z defd „ƒYZ e d „Z d S( iÿÿÿÿ(t xform_name(tget_service_module_name(tBaseDocumenter(t!get_identifier_args_for_signature(t!get_identifier_values_for_example(tget_identifier_description(tadd_resource_type_overviewtSubResourceDocumentercBseZd„ZRS(c Cs¯td|ddddddƒt|jjjjdd „ƒ}g}||jd #ss sub-resourcest resource_nametsub_resource_modelt service_model( Rtsortedt _resourcetmetatresource_modelt subresourcest member_maptadd_new_sectionRtappendtdocument_sub_resourcet_resource_namet_service_model(tselfRt sub_resourcestsub_resources_listRtsub_resource_section((s7/tmp/pip-install-usGedi/boto3/boto3/docs/subresource.pytdocument_sub_resourcess$    (t__name__t __module__R#(((s7/tmp/pip-install-usGedi/boto3/boto3/docs/subresource.pyRscCsg}x<|jjD].}|jdkr|jt|jƒƒqqW|rpt|ƒ}|jj|j |ƒn|j dƒ}d|jj } |j | ƒ|j dƒ} t |ƒ} t|ƒ} |j|krÛ|} ndt|jj ƒ| |j | f} | jjƒ| j| ƒ| jjƒ|j dƒ}xb|D]Z}t|j |ƒ} |jd|ƒ|jjƒ|jd|| fƒ|jjƒq=W|j d ƒ}|jjƒ|jd t|ƒ|jj fƒ|jjƒ|jd |jj ƒ|jjƒd S( sjDocuments a resource action :param section: The section to write to :param resource_name: The name of the resource :param sub_resource_model: The model of the subresource :param service_model: The model of the service :param include_signature: Whether or not to include the signature. It is useful for generating docstrings. tinputs method-introsCreates a %s resource.texamples%s = %s.%s(%s)tparamss:type %s: strings :param %s: %streturns:rtype: :py:class:`%s.%s`s:returns: A %s resourceN(tresourcet identifierstsourceRRttargetRtstyletstart_sphinx_py_methodRRttypetinclude_doc_stringRt service_nametstart_codeblocktwritet end_codeblockRtnew_lineR(RRRRtinclude_signaturetidentifiers_neededt identifiertsignature_argstmethod_intro_sectionR texample_sectiontexample_valuestexample_resource_nameR't param_sectiontreturn_section((s7/tmp/pip-install-usGedi/boto3/boto3/docs/subresource.pyR2sV                N(tbotocoreRtbotocore.utilsRtboto3.docs.baseRtboto3.docs.utilsRRRRRtTrueR(((s7/tmp/pip-install-usGedi/boto3/boto3/docs/subresource.pyt s