o
    ,Âifâ	  ã                   @   sP   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 )	é    )ÚClientValue)ÚClientValueCollection)ÚStringCollection)ÚSharePointOneDriveOptions)ÚSortPropertyc                       s0   e Zd ZdZdddddeƒ f‡ fdd„	Z‡  ZS )ÚSearchRequestz*A search request formatted in a JSON blob.Nc                    sF   t t| ƒ ¡  || _|| _|| _|| _tt|ƒ| _	t
|ƒ| _|| _dS )a   
        :param office365.search.query.SearchQuery query: Contains the query terms.
        :param list[str] entity_types: One or more types of resources expected in the response.
            Possible values are: list, site, listItem, message, event, drive, driveItem, externalItem.
            See known limitations for those combinations of two or more entity types that are supported in the
            same search request.
        :param list[str] fields: Contains the fields to be returned for each resource object specified in entityTypes,
            allowing customization of the fields returned by default; otherwise, including additional fields such
            as custom managed properties from SharePoint and OneDrive, or custom fields in externalItem from the
            content that Microsoft Graph connectors bring in. The fields property can use the semantic labels
            applied to properties. For example, if a property is labeled as title, you can retrieve it using
            the following syntax: label_title.
        :param int search_from: Specifies the offset for the search results. Offset 0 returns the very first result.
        :param list[SortProperty] sort_properties: Contains the ordered collection of fields and direction to
            sort results. There can be at most 5 sort properties in the collection.
        :param list[str] content_sources: Contains the connection to be targeted.
        N)Úsuperr   Ú__init__ÚqueryÚentityTypesÚfieldsÚsearch_fromr   r   ÚsortPropertiesr   ÚcontentSourcesÚsharePointOneDriveOptions)Úselfr
   Úentity_typesr   r   Úsort_propertiesÚcontent_sourcesÚsharepoint_onedrive_options©Ú	__class__© úQ/var/www/html/corbot_env/lib/python3.10/site-packages/office365/search/request.pyr	      s   

zSearchRequest.__init__)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r	   Ú__classcell__r   r   r   r   r      s    ør   N)Úoffice365.runtime.client_valuer   Ú)office365.runtime.client_value_collectionr   Ú#office365.runtime.types.collectionsr   Ú,office365.search.sharepoint_onedrive_optionsr   Úoffice365.search.sort_propertyr   r   r   r   r   r   Ú<module>   s    