o
    ,Âifõ  ã                   @   s€   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 d dlmZ d d	lmZ G d
d„ deƒZdS )é    )ÚEntity)ÚEntityCollection)ÚNotebookCollection)ÚOnenoteOperation)ÚOnenotePageCollection)ÚOnenoteResource)ÚSectionGroup)ÚOnenoteSection)ÚResourcePathc                       sj   e Zd ZdZedd„ ƒZedd„ ƒZedd„ ƒZedd	„ ƒZed
d„ ƒZ	edd„ ƒZ
d‡ fdd„	Z‡  ZS )ÚOnenotez&The entry point for OneNote resources.c                 C   ó   | j  dt| jtd| jƒƒ¡S )z$Retrieve a list of notebook objects.Ú	notebooks)Ú
propertiesÚgetr   Úcontextr
   Úresource_path©Úself© r   úR/var/www/html/corbot_env/lib/python3.10/site-packages/office365/onenote/onenote.pyr      ó   ÿþzOnenote.notebooksc              	   C   ó    | j  dt| jttd| jƒƒ¡S )z&Retrieve a list of OneNote operations.Ú
operations)r   r   r   r   r   r
   r   r   r   r   r   r      ó   
ýþzOnenote.operationsc                 C   r   )z Retrieve a list of page objects.Úpages)r   r   r   r   r
   r   r   r   r   r   r   &   r   zOnenote.pagesc              	   C   r   )zARetrieve a list of Resources objects from the specified notebook.Ú	resources)r   r   r   r   r   r
   r   r   r   r   r   r   1   r   zOnenote.resourcesc              	   C   r   )úFRetrieve a list of onenoteSection objects from the specified notebook.Úsections)r   r   r   r   r	   r
   r   r   r   r   r   r   =   s   
ýþzOnenote.sectionsc              	   C   r   )r   ÚsectionGroups)r   r   r   r   r   r
   r   r   r   r   r   Úsection_groupsJ   r   zOnenote.section_groupsNc                    s0   |d u rd| j i}| |d ¡}tt| ƒ ||¡S )Nr   )r   r   Úsuperr   Úget_property)r   ÚnameÚdefault_valueÚproperty_mapping©Ú	__class__r   r   r!   V   s   
zOnenote.get_property)N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úpropertyr   r   r   r   r   r   r!   Ú__classcell__r   r   r%   r   r      s    







r   N)Úoffice365.entityr   Úoffice365.entity_collectionr   Ú&office365.onenote.notebooks.collectionr   Ú$office365.onenote.operations.onenoter   Ú"office365.onenote.pages.collectionr   Ú$office365.onenote.resources.resourcer   Ú-office365.onenote.sectiongroups.section_groupr   Ú"office365.onenote.sections.sectionr	   Ú%office365.runtime.paths.resource_pathr
   r   r   r   r   r   Ú<module>   s    