Ë
    Ö—Äj�2  ã                  ó6  — d dl mZ d dlmZ d dlmZmZ d dlZd dlZd dl	Zd dl
Zd dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlmZ d dlmZ d dl
mZmZmZ d dlmZ d d	lmZ erd d
lmZ d dlmZ d dlmZ d dlm Z  dejB                  iZ" G d„ de«      Z#y)é    )Úannotations)Údatetime)ÚTYPE_CHECKINGÚAnyN)ÚConsts)ÚAppAuth)Ú	AttributeÚNonCompletableGithubObjectÚNotSet)ÚPaginatedList)Ú	Requester)ÚGithub)Ú	NamedUser)ÚOrganization)Ú
RepositoryÚAcceptc                  óè  ‡ — e Zd ZdZ	 	 	 	 	 	 	 	 dˆ fd„Zdd„Zd 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ed#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ed 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ed d„«       Zed#d„«       Zd)d„Zd*d„Zd+d„Z ˆ xZ!S ),ÚInstallationzå
    This class represents Installations.

    The reference can be found here
    https://docs.github.com/en/rest/reference/apps#installations

    The OpenAPI schema can be found at

    - /components/schemas/installation

    c                ó   •— t         ‰| �  |||«       | j                  �| j                  j                  nd }t	        |t
        «      rH|j                  | j                  | j                  ¬«      }| j                  j                  |«      | _        y y )N)Ú	requester)	ÚsuperÚ__init__Ú
_requesterÚauthÚ
isinstancer   Úget_installation_authÚidÚwithAuth)Úselfr   ÚheadersÚ
attributesr   Ú	__class__s        €úXC:\Users\pivot\Documents\cueki\casual-preloader\Lib\site-packages\github/Installation.pyr   zInstallation.__init__[   sr   ø€ ô 	‰Ñ˜ G¨ZÔ8à'+§¡Ð'Bˆt�‰×#Ò#Èˆä�dœGÔ$à×-Ñ-¨d¯g©gÀÇÁÐ-ÓQˆDØ"Ÿo™o×6Ñ6°tÓ<ˆD�Oð %ó    c                óÒ  — t         | _        t         | _        t         | _        t         | _        t         | _        t         | _        t         | _        t         | _        t         | _	        t         | _
        t         | _        t         | _        t         | _        t         | _        t         | _        t         | _        t         | _        t         | _        t         | _        t         | _        t         | _        y ©N)r   Ú_access_tokens_urlÚ_accountÚ_app_idÚ	_app_slugÚ
_client_idÚ_contact_emailÚ_created_atÚ_eventsÚ_has_multiple_single_filesÚ	_html_urlÚ_idÚ_permissionsÚ_repositories_urlÚ_repository_selectionÚ_single_file_nameÚ_single_file_pathsÚ_suspended_atÚ_suspended_byÚ
_target_idÚ_target_typeÚ_updated_at©r   s    r#   Ú_initAttributeszInstallation._initAttributesj   s¢   € Ü28ˆÔÜ=CˆŒÜ'-ˆŒÜ)/ˆŒÜ*0ˆŒÜ.4ˆÔÜ06ˆÔÜ-3ˆŒÜ;AˆÔ'Ü)/ˆŒÜ#)ˆŒÜ7=ˆÔÜ17ˆÔÜ5;ˆÔ"Ü17ˆÔÜ8>ˆÔÜ28ˆÔÜ39ˆÔÜ*0ˆŒÜ,2ˆÔÜ06ˆÕr$   c                óP   — | j                  d| j                  j                  i«      S )Nr   )Úget__repr__r1   Úvaluer<   s    r#   Ú__repr__zInstallation.__repr__�   s    € Ø×Ñ  t§x¡x§~¡~Ð 6Ó7Ð7r$   c                ó.   — | j                   j                  S r&   )r'   r@   r<   s    r#   Úaccess_tokens_urlzInstallation.access_tokens_url„   ó   € à×&Ñ&×,Ñ,Ð,r$   c                ó.   — | j                   j                  S r&   )r(   r@   r<   s    r#   ÚaccountzInstallation.accountˆ   s   € à�}‰}×"Ñ"Ð"r$   c                ó.   — | j                   j                  S r&   )r)   r@   r<   s    r#   Úapp_idzInstallation.app_idŒ   ó   € à�|‰|×!Ñ!Ð!r$   c                ó.   — | j                   j                  S r&   )r*   r@   r<   s    r#   Úapp_slugzInstallation.app_slug�   ó   € à�~‰~×#Ñ#Ð#r$   c                ó.   — | j                   j                  S r&   )r+   r@   r<   s    r#   Ú	client_idzInstallation.client_id”   ó   € à�‰×$Ñ$Ð$r$   c                ó.   — | j                   j                  S r&   )r,   r@   r<   s    r#   Úcontact_emailzInstallation.contact_email˜   s   € à×"Ñ"×(Ñ(Ð(r$   c                ó.   — | j                   j                  S r&   )r-   r@   r<   s    r#   Ú
created_atzInstallation.created_atœ   ó   € à×Ñ×%Ñ%Ð%r$   c                ó.   — | j                   j                  S r&   )r.   r@   r<   s    r#   ÚeventszInstallation.events    rI   r$   c                ó.   — | j                   j                  S r&   )r/   r@   r<   s    r#   Úhas_multiple_single_filesz&Installation.has_multiple_single_files¤   s   € à×.Ñ.×4Ñ4Ð4r$   c                ó.   — | j                   j                  S r&   )r0   r@   r<   s    r#   Úhtml_urlzInstallation.html_url¨   rL   r$   c                ó.   — | j                   j                  S r&   )r1   r@   r<   s    r#   r   zInstallation.id¬   s   € à�x‰x�~‰~Ðr$   c                ó.   — | j                   j                  S r&   )r2   r@   r<   s    r#   ÚpermissionszInstallation.permissions°   ó   € à× Ñ ×&Ñ&Ð&r$   c                ó.   — | j                   j                  S r&   )r3   r@   r<   s    r#   Úrepositories_urlzInstallation.repositories_url´   ó   € à×%Ñ%×+Ñ+Ð+r$   c                ó.   — | j                   j                  S r&   )r4   r@   r<   s    r#   Úrepository_selectionz!Installation.repository_selection¸   s   € à×)Ñ)×/Ñ/Ð/r$   c                ó   — | j                   S )z…
        Return my Requester object.

        For example, to make requests to API endpoints not yet supported by PyGitHub.

        )r   r<   s    r#   r   zInstallation.requester¼   s   € ð �‰Ðr$   c                ó.   — | j                   j                  S r&   )r5   r@   r<   s    r#   Úsingle_file_namezInstallation.single_file_nameÆ   ra   r$   c                ó.   — | j                   j                  S r&   )r6   r@   r<   s    r#   Úsingle_file_pathszInstallation.single_file_pathsÊ   rD   r$   c                ó.   — | j                   j                  S r&   )r7   r@   r<   s    r#   Úsuspended_atzInstallation.suspended_atÎ   ó   € à×!Ñ!×'Ñ'Ð'r$   c                ó.   — | j                   j                  S r&   )r8   r@   r<   s    r#   Úsuspended_byzInstallation.suspended_byÒ   rk   r$   c                ó.   — | j                   j                  S r&   )r9   r@   r<   s    r#   Ú	target_idzInstallation.target_idÖ   rO   r$   c                ó.   — | j                   j                  S r&   )r:   r@   r<   s    r#   Útarget_typezInstallation.target_typeÚ   r^   r$   c                ó.   — | j                   j                  S r&   )r;   r@   r<   s    r#   Ú
updated_atzInstallation.updated_atÞ   rT   r$   c                óT   — t        j                  di | j                  j                  ¤ŽS )N© )Úgithubr   r   Úkwargsr<   s    r#   Úget_github_for_installationz(Installation.get_github_for_installationâ   s   € Ü�}‰}Ñ6˜tŸ™×5Ñ5Ñ6Ð6r$   c                ót   — i }t        t        j                  j                  | j                  d|t        d¬«      S )z”
        :calls: `GET /installation/repositories <https://docs.github.com/en/rest/reference/integrations/installations#list-repositories>`_
        z/installation/repositoriesÚrepositories)ÚcontentClassr   ÚfirstUrlÚfirstParamsr    Ú	list_item)r   rv   r   r   ÚINTEGRATION_PREVIEW_HEADERS)r   Úurl_parameterss     r#   Ú	get_reposzInstallation.get_reposå   s8   € ð *,ˆäÜ×*Ñ*×5Ñ5Ø—o‘oØ1Ø&Ü/Ø$ô
ð 	
r$   c           	     óf  — d|v r| j                  |d   «      | _        d|v rO| j                  ddd |t        j                  j                  dft        j
                  j
                  df«      | _        d|v r| j                  |d   «      | _        d|v r| j                  |d   «      | _	        d|v r| j                  |d   «      | _
        d	|v r| j                  |d	   «      | _        d
|v r| j                  |d
   «      | _        d|v r| j                  |d   «      | _        d|v r| j!                  |d   «      | _        d|v r| j                  |d   «      | _        d|v r| j                  |d   «      | _        d|v r| j)                  |d   «      | _        d|v r| j                  |d   «      | _        d|v r| j                  |d   «      | _        d|v r| j                  |d   «      | _        d|v r| j                  |d   «      | _        d|v r| j                  |d   «      | _        d|v r2| j7                  t        j                  j                  |d   «      | _        d|v r| j                  |d   «      | _        d|v r| j                  |d   «      | _        d|v r| j                  |d   «      | _        y y )NrC   rF   rq   ÚUserr   rH   rK   rN   rQ   rS   rV   rX   rZ   r   r]   r`   rc   rf   rh   rj   rm   ro   rs   ) Ú_makeStringAttributer'   Ú._makeUnionClassAttributeFromTypeKeyAndValueKeyrv   r   r   r(   Ú_makeIntAttributer)   r*   r+   r,   Ú_makeDatetimeAttributer-   Ú_makeListOfStringsAttributer.   Ú_makeBoolAttributer/   r0   r1   Ú_makeDictAttributer2   r3   r4   r5   r6   r7   Ú_makeClassAttributer8   r9   r:   r;   )r   r!   s     r#   Ú_useAttributeszInstallation._useAttributesô   sæ  € Ø *Ñ,Ø&*×&?Ñ&?À
ÐK^Ñ@_Ó&`ˆDÔ#Ø˜
Ñ"Ø ×OÑOØØØØÜ×!Ñ!×+Ñ+¨VÐ4Ü×$Ñ$×1Ñ1°>ÐBóˆDŒMð �zÑ!Ø×1Ñ1°*¸XÑ2FÓGˆDŒLØ˜Ñ#Ø!×6Ñ6°zÀ*Ñ7MÓNˆDŒNØ˜*Ñ$Ø"×7Ñ7¸
À;Ñ8OÓPˆDŒOØ˜jÑ(Ø"&×";Ñ";¸JÀÑ<WÓ"XˆDÔØ˜:Ñ%Ø#×:Ñ:¸:ÀlÑ;SÓTˆDÔØ�zÑ!Ø×;Ñ;¸JÀxÑ<PÓQˆDŒLØ&¨*Ñ4Ø.2×.EÑ.EÀjÐQlÑFmÓ.nˆDÔ+Ø˜Ñ#Ø!×6Ñ6°zÀ*Ñ7MÓNˆDŒNØ�:ÑØ×-Ñ-¨j¸Ñ.>Ó?ˆDŒHØ˜JÑ&Ø $× 7Ñ 7¸
À=Ñ8QÓ RˆDÔØ Ñ+Ø%)×%>Ñ%>¸zÐJ\Ñ?]Ó%^ˆDÔ"Ø! ZÑ/Ø)-×)BÑ)BÀ:ÐNdÑCeÓ)fˆDÔ&Ø Ñ+Ø%)×%>Ñ%>¸zÐJ\Ñ?]Ó%^ˆDÔ"Ø *Ñ,Ø&*×&FÑ&FÀzÐReÑGfÓ&gˆDÔ#Ø˜ZÑ'Ø!%×!<Ñ!<¸ZÈÑ=WÓ!XˆDÔØ˜ZÑ'Ø!%×!9Ñ!9¼&×:JÑ:J×:TÑ:TÐV`ÐaoÑVpÓ!qˆDÔØ˜*Ñ$Ø"×4Ñ4°ZÀÑ5LÓMˆDŒOØ˜JÑ&Ø $× 9Ñ 9¸*À]Ñ:SÓ TˆDÔØ˜:Ñ%Ø#×:Ñ:¸:ÀlÑ;SÓTˆDÕð &r$   )r   r   r    zdict[str, str | int]r!   r   ÚreturnÚNone)r�   rŽ   )r�   Ústr)r�   zNamedUser | Organization)r�   Úint)r�   r   )r�   z	list[str])r�   Úbool)r�   údict[str, Any])r�   r   )r�   r   )r�   r   )r�   zPaginatedList[Repository])r!   r’   r�   rŽ   )"Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r=   rA   ÚpropertyrC   rF   rH   rK   rN   rQ   rS   rV   rX   rZ   r   r]   r`   rc   r   rf   rh   rj   rm   ro   rq   rs   rx   r�   rŒ   Ú__classcell__)r"   s   @r#   r   r   N   s  ø„ ñ
ð=àð=ð &ð=ð ð	=ð
 
õ=ó7ó.8ð ò-ó ð-ð ò#ó ð#ð ò"ó ð"ð ò$ó ð$ð ò%ó ð%ð ò)ó ð)ð ò&ó ð&ð ò"ó ð"ð ò5ó ð5ð ò$ó ð$ð òó ðð ò'ó ð'ð ò,ó ð,ð ò0ó ð0ð òó ðð ò,ó ð,ð ò-ó ð-ð ò(ó ð(ð ò(ó ð(ð ò%ó ð%ð ò'ó ð'ð ò&ó ð&ó7ó
÷1Ur$   r   )$Ú
__future__r   r   Útypingr   r   Úgithub.Authorizationrv   Úgithub.EventÚgithub.GistÚgithub.GithubObjectÚgithub.IssueÚgithub.NamedUserÚgithub.NotificationÚgithub.OrganizationÚgithub.PaginatedListÚgithub.PlanÚgithub.RepositoryÚgithub.UserKeyr   Úgithub.Authr   r	   r
   r   r   Úgithub.Requesterr   Úgithub.MainClassr   r   r   r   ÚmediaTypeIntegrationPreviewr   r   ru   r$   r#   Ú<module>r«      sx   ðõ\ #å ß %ã Û Û Û Û Û Û Û Û Û Û Û Ý Ý ß MÑ MÝ .Ý &áÝ'Ý*Ý0Ý,à'¨×)KÑ)KÐLÐ ôWUÐ-õ WUr$   