Ë
    €Ïî'  ã                   óŒ   — d dl mZ d dlmZ d dlmZ d dlmZ d dlm	Z	 d dl
mZ d dlmZ  G d„ d	e«      Z	 dd
„Z	 dd„Z	 dd„Zy)é    )Ú
xform_name)Úget_instance_public_methods)ÚDocumentedShape)ÚBaseDocumenter)Úget_resource_ignore_params)Ú%document_model_driven_resource_method)Úadd_resource_type_overviewc                   ó   — e Zd Zd„ Zd„ Zy)ÚCollectionDocumenterc                 ó6  — | j                   j                  j                  j                  }g }t	        |ddd¬«       || j
                  d<   |D ]J  }|j                  |j                  «      }|j                  |j                  «       | j                  ||«       ŒL y )NÚCollectionszUCollections provide an interface to iterate over and manipulate groups of resources. Úguide_collections)ÚsectionÚresource_typeÚdescriptionÚ
intro_linkÚcollections)
Ú	_resourceÚmetaÚresource_modelr   r	   Ú
member_mapÚadd_new_sectionÚnameÚappendÚ_document_collection)Úselfr   r   Úcollections_listÚ
collectionÚcollection_sections         ú(lib/third_party/boto3/docs/collection.pyÚdocument_collectionsz)CollectionDocumenter.document_collections   s‹   € Ø—n‘n×)Ñ)×8Ñ8×DÑDˆØÐÜ"ØØ'ð3à*õ	,ð *:ˆ‰˜Ñ&Û%ˆJØ!(×!8Ñ!8¸¿¹Ó!IÐØ×#Ñ# J§O¡OÔ4Ø×%Ñ%Ð&8¸*ÕEñ &ó    c           	      ó  — t        t        | j                  |j                  «      «      }t	        ||«       i }|j
                  D ]  }|||j                  <   Œ t        |«      D ]  }|j                  |«      }||v rƒt        || j                  | j                  j                  j                  j                  j                  ||   || j                  j                  j                  j                  j                  ¬«       Œœt        || j                  || j                  j                  j                  j                  j                  || j                  j                  j                  j                  j                  ¬«       Œ y )N)r   Úresource_nameÚevent_emitterÚbatch_action_modelÚcollection_modelÚservice_model)r   r$   Úaction_namer%   r'   r(   )r   Úgetattrr   r   Údocument_collection_objectÚbatch_actionsÚsortedr   Údocument_batch_actionÚ_resource_namer   ÚclientÚeventsr(   Údocument_collection_method)r   r   r   Úmethodsr,   Úbatch_actionÚmethodÚmethod_sections           r    r   z)CollectionDocumenter._document_collection(   s,  € Ü-ÜD—N‘N J§O¡OÓ4ó6ˆä" 7¨JÔ7ØˆØ&×4Ô4ˆLØ/;ˆM˜,×+Ñ+Ò,ð 5ô ˜W—oˆFØ$×4Ñ4°VÓ<ˆNØ˜Ñ&Ü%Ø*Ø"&×"5Ñ"5Ø"&§.¡.×"5Ñ"5×"<Ñ"<×"AÑ"A×"HÑ"HØ'4°VÑ'<Ø%/Ø"&§.¡.×"5Ñ"5×"<Ñ"<×"AÑ"A×"OÑ"Oöô +Ø*Ø"&×"5Ñ"5Ø &Ø"&§.¡.×"5Ñ"5×"<Ñ"<×"AÑ"A×"HÑ"HØ%/Ø"&§.¡.×"5Ñ"5×"<Ñ"<×"AÑ"A×"OÑ"O÷ñ &r"   N)Ú__name__Ú
__module__Ú__qualname__r!   r   © r"   r    r   r      s   „ òFó r"   r   c                 óò   — |r%| j                   j                  |j                  «       | j                  d|j                  j
                  z  «       | j                  d|j                  j
                  z  «       y)a
  Documents a collection resource object

    :param section: The section to write to

    :param collection_model: The model of the collection

    :param include_signature: Whether or not to include the signature.
        It is useful for generating docstrings.
    zA collection of %s resources.z„A %s Collection will include all resources by default, and extreme caution should be taken when performing actions on all resources.N)ÚstyleÚstart_sphinx_py_attrr   Úinclude_doc_stringÚresourceÚtype)r   r'   Úinclude_signatures      r    r+   r+   F   sm   € ñ Ø‰×*Ñ*Ð+;×+@Ñ+@ÔAØ×ÑØ'Ð*:×*CÑ*C×*HÑ*HÑHôJà×Ñð	$à&6×&?Ñ&?×&DÑ&Dñ	EõFr"   c                 ó°  — |j                  |j                  j                  «      }t        |j                  j                  «      }d}	|j
                  rt        |j
                  j                  «      }	t        |«      }
|j                  |k(  r|}
|	›d|
›d|j                  ›d|j                  ›}t        | |j                  |||j                  ||||¬«	       y)ai  Documents a collection's batch action

    :param section: The section to write to

    :param resource_name: The name of the resource

    :param action_name: The name of collection action. Currently only
        can be all, filter, limit, or page_size

    :param event_emitter: The event emitter to use to emit events

    :param batch_action_model: The model of the batch action

    :param collection_model: The model of the collection

    :param service_model: The model of the service

    :param include_signature: Whether or not to include the signature.
        It is useful for generating docstrings.
    Úresponsez = Ú.)	r   Úmethod_nameÚoperation_modelr%   Úmethod_descriptionÚexample_prefixÚexclude_inputÚresource_action_modelrA   N)rF   ÚrequestÚ	operationr   Úparamsr?   r   r@   Úservice_namer   r   Údocumentation)r   r$   r%   r&   r(   r'   rA   rF   Úignore_paramsÚexample_return_valueÚexample_resource_namerH   s               r    r.   r.   [   sÔ   € ð. $×3Ñ3Ø×"Ñ"×,Ñ,ó.€Oä.Ø×"Ñ"×)Ñ)ó+€Mð &ÐØ×"Ò"Ü)Ð*<×*EÑ*E×*JÑ*JÓKÐä& }Ó5ÐØ×!Ñ! ]Ò2Ø -ÐâÒ3Ø×ÓÐ1×6Ò6ð€Nô *ØÐ%7×%<Ñ%<Ø'Ø#Ø*×8Ñ8Ø%Ø#Ø0Ø+ö	r"   c           
      ó  — |j                  |j                  j                  «      }g }|j                  r|j                  j                  }t        |«      }	|j                  |k(  r|}	d|j                  j                  z  t        |j                  j                  «      ›d|	›d|j                  ›d|dœd|j                  j                  z  d|j                  j                  z  z   t        |j                  j                  «      ›d|	›d|j                  ›dt        |j                  j                  «      dœd	|j                  j                  z  t        |j                  j                  «      ›d|	›d|j                  ›d
t        ddd¬«      g|dœd|j                  j                  z  t        |j                  j                  «      ›d|	›d|j                  ›dt        ddd¬«      g|dœdœ}
||
v r|
|   }t        d| |||||dœ|¤Ž yy)a#  Documents a collection method

    :param section: The section to write to

    :param resource_name: The name of the resource

    :param action_name: The name of collection action. Currently only
        can be all, filter, limit, or page_size

    :param event_emitter: The event emitter to use to emit events

    :param collection_model: The model of the collection

    :param service_model: The model of the service

    :param include_signature: Whether or not to include the signature.
        It is useful for generating docstrings.
    z:Creates an iterable of all %s resources in the collection.z_iterator = rD   z.all)rG   rH   rI   z^Creates an iterable of all %s resources in the collection filtered by kwargs passed to method.zŸA %s collection will include all resources by default if no filters are provided, and extreme caution should be taken when performing actions on all resources.z.filterzOCreates an iterable up to a specified amount of %s resources in the collection.z.limitÚcountÚintegerz5The limit to the number of resources in the iterable.)r   Ú	type_namerO   )rG   rH   Úinclude_inputrI   zCreates an iterable of all %s resources in the collection, but limits the number of items returned by each service call by the specified amount.z
.page_sizez1The number of items returned by each service call)ÚallÚfilterÚlimitÚ	page_size)r   rE   rF   r%   rJ   rA   Nr:   )rF   rK   rL   Úinput_shapeÚmembersr   rN   r?   r@   r   r   rM   r   r   )r   r$   r)   r%   r'   r(   rA   rF   Úunderlying_operation_membersrR   Úcustom_action_info_dictÚaction_infos               r    r2   r2   Ž   sH  € ð* $×3Ñ3Ø× Ñ ×*Ñ*ó,€Oð $&Ð Ø×"Ò"Ø'6×'BÑ'B×'JÑ'JÐ$ä& }Ó5ÐØ×!Ñ! ]Ò2Ø -Ðð
%Ø'7×'@Ñ'@×'EÑ'EñFô Ð+×4Ñ4×9Ñ9Õ:Ú%Ð'7×'<Ó'<ð>ð :ñ
ðà,×5Ñ5×:Ñ:ñ;ð$ð &6×%>Ñ%>×%CÑ%CñDñDô Ð+×4Ñ4×9Ñ9Õ:Ú%Ð'7×'<Ó'<ð>ô 8Ø ×(Ñ(×/Ñ/ó1ñ
ð"2à ×)Ñ)×.Ñ.ñ/ô Ð+×4Ñ4×9Ñ9Õ:Ú%Ð'7×'<Ó'<ð>ô  Ø ¨Ið+ô-ð.ð :ñ
ð$ð -×5Ñ5×:Ñ:ñ;ô
 Ð+×4Ñ4×9Ñ9Õ:Ú%Ð'7×'<Ó'<ð>ô  Ø ¨Ið'ô)ð*ð :ñ
ñS:Ððv Ð-Ñ-Ø-¨kÑ:ˆÜ-ð 	
Ø¨Ø+Ø'Ø"2Ø/ñ	
ð ó	
ð .r"   N)T)Úbotocorer   Úbotocore.docs.methodr   Úbotocore.docs.utilsr   Úboto3.docs.baser   Úboto3.docs.utilsr   Úboto3.docs.methodr   r	   r   r+   r.   r2   r:   r"   r    Ú<module>rg      sJ   ðõ  Ý <Ý /å *Ý 7Ý CÝ 7ô,˜>ô ,ð` 26óFð. -1ó0ðj 26ôd
r"   