
    ge                     `    d dl mZ d dlmZmZ d dlmZ d dlmZ d dl	m
Z
  G d d          ZdS )	    )DocumentStructure)ClientDocumenterClientExceptionsDocumenter)PaginatorDocumenter)WaiterDocumenter)DataNotFoundErrorc                   F    e Zd Zd Zd Zd Zd Zd Zd Zd Z	d Z
dd
Zd	S )ServiceDocumenterc                     || _         || _        || _        | j                             |ddd          | _        | j        j        j        | _        g d| _        d S )Nz	us-east-1foobar)region_nameaws_access_key_idaws_secret_access_key)title
client-apiclient-exceptionspaginator-api
waiter-api)	_session_service_name_root_docs_pathcreate_client_clientmetaevents_event_emittersections)selfservice_namesessionroot_docs_paths       5lib/python3.11/site-packages/botocore/docs/service.py__init__zServiceDocumenter.__init__   sl    )-}22##"'	 3 
 
 #l/6
 
 
    c                    t          | j        | j        d          }|                     |                    d                     |                     |                    d                     |                     |                    d                     |                     |                    d                     |                     |                    d                     |	                                S )ziDocuments an entire service.

        :returns: The reStructured text of the documented service.
        html)section_namestargetr   r   r   r   r   )
r   r   r   r   get_section
client_apiclient_exceptionspaginator_api
waiter_apiflush_structure)r   doc_structures     r#   document_servicez"ServiceDocumenter.document_service*   s    
 *dmF
 
 
 	

=,,W5566611,??@@@}889LMMNNN=44_EEFFF11,??@@@,,...r%   c                     |j                             | j        j        j                   | j                            d| j         |           d S )Nzdocs.title.)section)styleh1r   	__class____name__r   emitr   r   r3   s     r#   r   zServiceDocumenter.title9   sZ    /8999  .$,.. 	! 	
 	
 	
 	
 	
r%   c                 >    |j                             dd           d S )NzTable of Contents   )r   depth)r4   table_of_contentsr9   s     r#   r=   z#ServiceDocumenter.table_of_contents?   s$    ''.A'KKKKKr%   c                     d }	 |                      | j                  }n# t          $ r Y nw xY wt          | j        | j        |                              |           d S N)get_examplesr   r   r   r   r   document_client)r   r3   exampless      r#   r+   zServiceDocumenter.client_apiB   su    	(();<<HH  	 	 	D	 	L$.	
 	

/'
"
"
"
"
"s    
,,c                 `    t          | j        | j                                      |           d S r?   )r   r   r   document_exceptionsr9   s     r#   r,   z#ServiceDocumenter.client_exceptionsM   s0    "L$.	
 	


g
&
&
&
&
&r%   c                     	 | j                             | j                  }n# t          $ r Y d S w xY w|j        r2t          | j        || j                  }|                    |           d S d S r?   )	r   get_paginator_modelr   r   _paginator_configr   r   r   document_paginators)r   r3   service_paginator_modelpaginator_documenters       r#   r-   zServiceDocumenter.paginator_apiR   s    	&*m&G&G"' '## ! 	 	 	FF	"4 	>#65t7K$ $  !44W=====		> 	>s   " 
00c                     | j         j        rQ| j                            | j                  }t          | j         || j                  }|                    |           d S d S r?   )r   waiter_namesr   get_waiter_modelr   r   r   document_waiters)r   r3   service_waiter_modelwaiter_documenters       r#   r.   zServiceDocumenter.waiter_api_   sr    <$ 	8#'=#A#A"$ $  !12D4H! ! ..w77777	8 	8r%   Nc                 t    | j                             d          }|                    |d|          }|d         S )Ndata_loaderz
examples-1rB   )r   get_componentload_service_model)r   r    api_versionloaderrB   s        r#   r@   zServiceDocumenter.get_examplesi   s@    ,,];;,,,
 
 
##r%   r?   )r7   
__module____qualname__r$   r1   r   r=   r+   r,   r-   r.   r@    r%   r#   r
   r
      s        
 
 
*/ / /
 
 
L L L	# 	# 	#' ' '
> > >8 8 8$ $ $ $ $ $r%   r
   N)botocore.docs.bcdoc.restdocr   botocore.docs.clientr   r   botocore.docs.paginatorr   botocore.docs.waiterr   botocore.exceptionsr   r
   rY   r%   r#   <module>r_      s    : 9 9 9 9 9 M M M M M M M M 7 7 7 7 7 7 1 1 1 1 1 1 1 1 1 1 1 1Z$ Z$ Z$ Z$ Z$ Z$ Z$ Z$ Z$ Z$r%   