Ë
    Ö—Äj­~  ã                  óâ   — 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m
Z
 d dlmZmZmZmZmZmZmZ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 d
lmZ d dl	mZ d dlmZ  G d„ de«      Zy)é    )Úannotations)ÚTYPE_CHECKINGÚAnyN)ÚConsts)Ú	AttributeÚNonCompletableGithubObjectÚNotSetÚOptÚ
is_definedÚis_optionalÚis_optional_listÚis_undefined)ÚBranchProtection)ÚCommit)Ú	NamedUser)ÚPaginatedList)ÚRequiredPullRequestReviews)ÚRequiredStatusChecks)ÚTeamc                  óz  — e Zd Z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d0d„«       Zed+d„«       Zd/d„Zeeeeeeeeeeeeeeeeeeeeeeeef	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d1d„Zd*d„Zd2d„Zeeef	 	 	 	 	 	 	 d3d„Zd*d„Zd4d„Zeeeeeeef	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d5d„Zd*d„Zd.d„Zd*d„Zd*d„Zd6d„Zd7d„Zd8d„Zd8d„Z d8d„Z!d9d„Z"d9d„Z#d9d „Z$d*d!„Z%d.d"„Z&d*d#„Z'd*d$„Z(d.d%„Z)d*d&„Z*d*d'„Z+d:d(„Z,y));ÚBrancha4  
    This class represents Branches.

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

    The OpenAPI schema can be found at

    - /components/schemas/branch-short
    - /components/schemas/branch-with-protection
    - /components/schemas/short-branch

    c                ój  — t         | _        t        j                  j                   | _        t        j                  j                   | _        t         | _        t        j                  j                   | _        t         | _        t        j                  j                   | _	        t         | _
        t         | _        y ©N)r	   Ú_Branch__linksÚgithubÚGithubObjectÚ_commitÚ_nameÚ_patternÚ
_protectedÚ_protectionÚ_protection_urlÚ _required_approving_review_countÚ_url©Úselfs    úRC:\Users\pivot\Documents\cueki\casual-preloader\Lib\site-packages\github/Branch.pyÚ_initAttributeszBranch._initAttributesc   st   € Ü28ˆŒÜ*0×*=Ñ*=×*DÑ*DˆŒÜ%+×%8Ñ%8×%?Ñ%?ˆŒ
Ü(.ˆŒÜ+1×+>Ñ+>×+EÑ+EˆŒÜ8>ˆÔÜ/5×/BÑ/B×/IÑ/IˆÔÜ@FˆÔ-Ü$*ˆ�	ó    c                óP   — | j                  d| j                  j                  i«      S )NÚname)Úget__repr__r   Úvaluer%   s    r'   Ú__repr__zBranch.__repr__n   s"   € Ø×Ñ ¨¯©×)9Ñ)9Ð :Ó;Ð;r)   c                ó.   — | j                   j                  S r   )r   r-   r%   s    r'   Ú_linkszBranch._linksq   ó   € à�|‰|×!Ñ!Ð!r)   c                ó.   — | j                   j                  S r   )r   r-   r%   s    r'   ÚcommitzBranch.commitu   r1   r)   c                ó.   — | j                   j                  S r   )r   r-   r%   s    r'   r+   zBranch.namey   s   € à�z‰z×ÑÐr)   c                ó.   — | j                   j                  S r   )r   r-   r%   s    r'   ÚpatternzBranch.pattern}   s   € à�}‰}×"Ñ"Ð"r)   c                ó.   — | j                   j                  S r   )r    r-   r%   s    r'   Ú	protectedzBranch.protected�   s   € à�‰×$Ñ$Ð$r)   c                óx   — t        | j                  «      r| j                  «       S | j                  j                  S r   )r   r!   Úget_protectionr-   r%   s    r'   Ú
protectionzBranch.protection…   s1   € ä˜×(Ñ(Ô)Ø×&Ñ&Ó(Ð(Ø×Ñ×%Ñ%Ð%r)   c                ó.   — | j                   j                  S r   )r"   r-   r%   s    r'   Úprotection_urlzBranch.protection_url‹   s   € à×#Ñ#×)Ñ)Ð)r)   c                ó.   — | j                   j                  S r   )r#   r-   r%   s    r'   Úrequired_approving_review_countz&Branch.required_approving_review_count�   s   € à×4Ñ4×:Ñ:Ð:r)   c                ó.   — | j                   j                  S r   )r$   r-   r%   s    r'   Úurlz
Branch.url“   s   € à�y‰y�‰Ðr)   c                óÒ   — | j                   j                  d| j                  dt        j                  i¬«      \  }}t
        j                  j                  | j                   ||d¬«      S )zŽ
        :calls: `GET /repos/{owner}/{repo}/branches/{branch}/protection <https://docs.github.com/en/rest/reference/repos#branches>`_
        ÚGETÚAccept©ÚheadersT©Ú	completed)Ú
_requesterÚrequestJsonAndCheckr=   r   Ú(mediaTypeRequireMultipleApprovingReviewsr   r   ©r&   rF   Údatas      r'   r:   zBranch.get_protection—   sc   € ð Ÿ™×;Ñ;ØØ×ÑØœv×NÑNÐOð <ó 
‰ˆ�ô
 ×&Ñ&×7Ñ7¸¿¹ÈÐRVÐbfÐ7ÓgÐgr)   c                ó„
  — t        |t        «      sJ |«       ‚t        |t        «      sJ |«       ‚t        |t        «      sJ |«       ‚t        |t        «      sJ |«       ‚t        |t        «      sJ |«       ‚t        |t        «      sJ |«       ‚t        |t        «      sJ |«       ‚t        |t        «      sJ |«       ‚t        |	t        «      sJ |	«       ‚t        |t        «      sJ |«       ‚t        |t        «      sJ |«       ‚t        |t        «      sJ |«       ‚t        |t        «      sJ |«       ‚t        |t        «      sJ |«       ‚t        |t        «      sJ |«       ‚t        |t        «      sJ |«       ‚t        |t        «      sJ |«       ‚t        |t        «      sJ |«       ‚t        |t        «      sJ |«       ‚t        |t        t
        f«      sJ |«       ‚t        |«      rt        d„ |D «       «      sJ |«       ‚i }t        |«      st        |«      st        |«      rlt        |«      rd}g }t        |«      r-|D �cg c]!  }t        |t
        «      r|d   |d   dœnd|i‘Œ# }}nt        |«      r|D �cg c]  }d|i‘Œ }}||dœ|d<   nd	|d<   t        |«      r||d
<   nd	|d
<   t        |«      sct        |«      sXt        |«      sMt        |«      sBt        |«      s7t        |	«      s,t        |«      s!t        |«      st        |«      st        |«      rÊi |d<   t        |«      r||d   d<   t        |«      r||d   d<   t        |	«      r|	|d   d<   t        |«      r||d   d<   i }t        |«      r||d<   t        |«      r||d<   t        |«      r||d<   |r||d   d<   i }t        |«      r||d<   t        |«      r||d<   t        |«      r||d<   |r||d   d<   nd	|d<   t        |
«      st        |«      st        |«      r1t        |
«      rg }
t        |«      rg }t        |«      rg }|
||dœ|d<   nd	|d<   t        |«      r||d<   nd	|d<   t        |«      r||d<   nd	|d<   t        |«      r||d<   nd	|d<   t        |«      r||d<   nd	|d<   t        |«      r||d<   nd	|d<   t        |«      r||d<   nd	|d<   t        |«      r||d<   nd	|d<   | j                  j                  d| j                  dt        j                  i|¬ «      \  }} t        j                   j!                  | j                  || d!¬"«      S c c}w c c}w )#ay  
        :calls: `PUT /repos/{owner}/{repo}/branches/{branch}/protection <https://docs.github.com/en/rest/reference/repos#get-branch-protection>`_

        NOTE: The GitHub API groups strict and contexts together, both must
        be submitted. Take care to pass both as arguments even if only one is
        changing. Use edit_required_status_checks() to avoid this.
        c              3  óŽ   K  — | ]=  }t        |t        «       xs& t        t        t        |«      «      t
        t        gk(  –— Œ? y ­wr   ©Ú
isinstanceÚtupleÚlistÚmapÚtypeÚstrÚint©Ú.0Úchecks     r'   Ú	<genexpr>z)Branch.edit_protection.<locals>.<genexpr>Ù   ó>   è ø€ ÐpÑioÐ`eœ: e¬UÓ3Ð3Ò[´t¼CÄÀeÓ<LÓ7MÔRUÔWZÐQ[Ñ7[Ó[Ñioùó   ‚AAFr   é   ©ÚcontextÚapp_idr`   ©ÚstrictÚchecksÚrequired_status_checksNÚenforce_adminsÚrequired_pull_request_reviewsÚdismiss_stale_reviewsÚrequire_code_owner_reviewsr?   Úrequire_last_push_approvalÚusersÚteamsÚappsÚdismissal_restrictionsÚbypass_pull_request_allowances©rk   rl   rm   ÚrestrictionsÚrequired_linear_historyÚallow_force_pushesÚ required_conversation_resolutionÚlock_branchÚallow_fork_syncingÚblock_creationsÚallow_deletionsÚPUTrD   ©rF   ÚinputTrG   )r   Úboolr   rV   rW   rR   r   Úallr   rQ   rI   rJ   r=   r   rK   r   r   )!r&   rc   Úcontextsrf   Údismissal_usersÚdismissal_teamsÚdismissal_appsrh   ri   r?   Úuser_push_restrictionsÚteam_push_restrictionsÚapp_push_restrictionsrr   rs   rt   ru   rv   Ú$users_bypass_pull_request_allowancesÚ$teams_bypass_pull_request_allowancesÚ#apps_bypass_pull_request_allowancesrw   rj   rx   rd   Úpost_parametersÚchecks_parametersrZ   r`   rn   ro   rF   rM   s!                                    r'   Úedit_protectionzBranch.edit_protection¢   s  € ôD ˜6¤4Ô(Ð0¨&Ó0Ð(Ü ¬#Ô.Ð8°Ó8Ð.Ü˜>¬4Ô0Ð@°.Ó@Ð0Ü ´Ô5ÐF°ÓFÐ5Ü ´Ô5ÐF°ÓFÐ5Ü ´Ô4ÐD°nÓDÐ4ÜÐ0´$Ô7ÐNÐ9NÓNÐ7ÜÐ5´tÔ<ÐXÐ>XÓXÐ<ÜÐ:¼CÔ@ÐaÐBaÓaÐ@ÜÐ2´DÔ9ÐRÐ;RÓRÐ9ÜÐ-¬tÔ4ÐHÐ6HÓHÐ4ÜÐ;¼TÔBÐdÐDdÓdÐBÜ˜;¬Ô-Ð:¨{Ó:Ð-ÜÐ-¬tÔ4ÐHÐ6HÓHÐ4ÜÐ DÄcÔJÐpÐLpÓpÐJÜÐ DÄcÔJÐpÐLpÓpÐJÜÐ CÄSÔIÐnÐKnÓnÐIÜÐ5´tÔ<ÐXÐ>XÓXÐ<Ü˜?¬DÔ1ÐB°?ÓBÐ1Ü ¬¬e¨Ô5Ð=°vÓ=Ð5Ü�fÔÜÑpÑioÓpÔpÐxÐrxÓxÐpà*,ˆÜ�fÔ¤¨HÔ!5¼ÀFÔ9KÜ˜FÔ#Ø�à "ÐÜ˜&Ô!ñ "(ó%á!'˜ô BLÈEÔSXÔAY  a¡°E¸!±HÒ=Ð`iÐkpÐ_qÑqØ!'ð "ñ %ô ˜HÔ%ÙIQÓ$RÉ¸g i°Ò%9ÈÐ!Ð$Rð !Ø+ñ9ˆOÐ4Ò5ð
 9=ˆOÐ4Ñ5ä�nÔ%Ø0>ˆOÐ,Ò-à04ˆOÐ,Ñ-ô �Ô'Ü˜/Ô*Ü˜.Ô)ÜÐ/Ô0ÜÐ4Ô5ÜÐ9Ô:ÜÐ>Ô?ÜÐ>Ô?ÜÐ=Ô>ÜÐ4Ô5à?AˆOÐ;Ñ<ÜÐ/Ô0Ø\q�Ð ?Ñ@ÐAXÑYÜÐ4Ô5ð /ð  Ð ?Ñ@Ø0ñô Ð9Ô:ð 4ð  Ð ?Ñ@Ø5ñô Ð4Ô5ð /ð  Ð ?Ñ@Ø0ñð &(Ð"Ü˜/Ô*Ø2AÐ& wÑ/Ü˜/Ô*Ø2AÐ& wÑ/Ü˜.Ô)Ø1?Ð& vÑ.á%Ø]s�Ð ?Ñ@ÐAYÑZà-/Ð*ÜÐ>Ô?Ø:^Ð.¨wÑ7ÜÐ>Ô?Ø:^Ð.¨wÑ7ÜÐ=Ô>Ø9\Ð.¨vÑ6á-ð 3ð  Ð ?Ñ@Ø4òð @DˆOÐ;Ñ<äÐ-Ô.ÜÐ0Ô1ÜÐ/Ô0äÐ2Ô3Ø)+Ð&ÜÐ2Ô3Ø)+Ð&ÜÐ1Ô2Ø(*Ð%à/Ø/Ø-ñ/ˆO˜NÒ+ð /3ˆO˜NÑ+ÜÐ-Ô.Ø9PˆOÐ5Ò6à9=ˆOÐ5Ñ6ÜÐ(Ô)Ø4FˆOÐ0Ò1à48ˆOÐ0Ñ1ÜÐ6Ô7ØBbˆOÐ>Ò?àBFˆOÐ>Ñ?Ü�kÔ"Ø-8ˆO˜MÒ*à-1ˆO˜MÑ*ÜÐ(Ô)Ø4FˆOÐ0Ò1à48ˆOÐ0Ñ1Ü�oÔ&Ø1@ˆOÐ-Ò.à15ˆOÐ-Ñ.Ü�oÔ&Ø1@ˆOÐ-Ò.à15ˆOÐ-Ñ.àŸ™×;Ñ;ØØ×ÑØœv×NÑNÐOØ!ð	 <ó 
‰ˆ�ô ×&Ñ&×7Ñ7¸¿¹ÈÐRVÐbfÐ7ÓgÐgùò}%ùò
 %Ss   È8&T8É0T=c                óV   — | j                   j                  d| j                  «      \  }}y)z‘
        :calls: `DELETE /repos/{owner}/{repo}/branches/{branch}/protection <https://docs.github.com/en/rest/reference/repos#branches>`_
        ÚDELETEN©rI   rJ   r=   rL   s      r'   Úremove_protectionzBranch.remove_protectionb  s(   € ð Ÿ™×;Ñ;ØØ×Ñó
‰ˆ‘r)   c                ó´   — | j                   j                  d| j                  › d�«      \  }}t        j                  j	                  | j                   ||d¬«      S )zï
        :calls: `GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks <https://docs.github.com/en/rest/reference/repos#branches>`_
        :rtype: :class:`github.RequiredStatusChecks.RequiredStatusChecks`
        rC   ú/required_status_checksTrG   )rI   rJ   r=   r   r   rL   s      r'   Úget_required_status_checksz!Branch.get_required_status_checksk  sT   € ð
 Ÿ™×;Ñ;¸EÀd×FYÑFYÐEZÐZqÐCrÓs‰ˆ�Ü×*Ñ*×?Ñ?ÀÇÁÐQXÐZ^ÐjnÐ?ÓoÐor)   c                óŽ  — t        |t        «      sJ |«       ‚t        |t        «      sJ |«       ‚t        |t        t        f«      sJ |«       ‚t        |«      rt        d„ |D «       «      sJ |«       ‚t        }t        |«      r-|D �cg c]!  }t        |t        «      r|d   |d   dœnd|i‘Œ# }}nt        |«      r|D �cg c]  }d|i‘Œ }}t        j                  ||dœ«      }| j                  j                  d| j                  › d�|¬	«      \  }}	t        j                  j                  | j                  ||	d
¬«      S c c}w c c}w )z§
        :calls: `PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks <https://docs.github.com/en/rest/reference/repos#branches>`_
        c              3  óŽ   K  — | ]=  }t        |t        «       xs& t        t        t        |«      «      t
        t        gk(  –— Œ? y ­wr   rP   rX   s     r'   r[   z5Branch.edit_required_status_checks.<locals>.<genexpr>€  r\   r]   r   r^   r_   r`   rb   ÚPATCHr�   ©r{   TrG   )r   r|   r   rV   rR   r   r}   r	   rQ   Úremove_unset_itemsrI   rJ   r=   r   r   )
r&   rc   r~   rd   r‰   rZ   r`   rˆ   rF   rM   s
             r'   Úedit_required_status_checksz"Branch.edit_required_status_checkss  s`  € ô ˜6¤4Ô(Ð0¨&Ó0Ð(Ü ¬#Ô.Ð8°Ó8Ð.Ü ¬¬e¨Ô5Ð=°vÓ=Ð5Ü�fÔÜÑpÑioÓpÔpÐxÐrxÓxÐpä7=ÐÜ�fÔñ $ó!á#�Eô >HÈÌuÔ=U˜E !™H°°a±Ò9Ð\eÐglÐ[mÑmØ#ð ñ !ô ˜Ô!ÙEMÓ NÁX¸' )¨WÒ!5ÀXÐÐ Nä*0×*CÑ*CÈvÐarÑDsÓ*tˆàŸ™×;Ñ;ØØ×"Ñ"Ð#Ð#:Ð;Ø!ð <ó 
‰ˆ�ô ×*Ñ*×?Ñ?ÀÇÁÐQXÐZ^ÐjnÐ?ÓoÐoùò!ùò
 !Os   Â&D=Â=Ec                ó\   — | j                   j                  d| j                  › d�«      \  }}y)z¨
        :calls: `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks <https://docs.github.com/en/rest/reference/repos#branches>`_
        rŒ   r�   Nr�   rL   s      r'   Úremove_required_status_checksz$Branch.remove_required_status_checks•  s1   € ð Ÿ™×;Ñ;ØØ×"Ñ"Ð#Ð#:Ð;ó
‰ˆ‘r)   c                óØ   — | j                   j                  d| j                  › d�dt        j                  i¬«      \  }}t
        j                  j                  | j                   ||d¬«      S )z¬
        :calls: `GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews <https://docs.github.com/en/rest/reference/repos#branches>`_
        rC   ú/required_pull_request_reviewsrD   rE   TrG   )rI   rJ   r=   r   rK   r   r   rL   s      r'   Ú!get_required_pull_request_reviewsz(Branch.get_required_pull_request_reviewsž  sr   € ð Ÿ™×;Ñ;ØØ×"Ñ"Ð#Ð#AÐBØœv×NÑNÐOð <ó 
‰ˆ�ô
 ×0Ñ0×KÑKØ�O‰O˜W d°dð Ló 
ð 	
r)   c                ób  — t        |t        «      sJ |«       ‚t        |t        «      sJ |«       ‚t        |t        «      sJ |«       ‚t        |t        «      sJ |«       ‚t        |t        «      sJ |«       ‚t        |t        «      sJ |«       ‚t        j                  ||||dœ«      }t        j                  |||dœ«      }	|	r|	|d<   | j                  j                  d| j                  › d�dt        j                  i|¬«      \  }
}t        j                  j                  | j                  |
|d¬	«      S )
z®
        :calls: `PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews <https://docs.github.com/en/rest/reference/repos#branches>`_
        )rh   ri   r?   rj   rp   rn   r”   r›   rD   rz   TrG   )r   rV   r   r|   rW   r	   r–   rI   rJ   r=   r   rK   r   r   )r&   r   r€   r�   rh   ri   r?   rj   rˆ   rn   rF   rM   s               r'   Ú"edit_required_pull_request_reviewsz)Branch.edit_required_pull_request_reviews«  sI  € ô   ´Ô5ÐF°ÓFÐ5Ü ´Ô5ÐF°ÓFÐ5ÜÐ0´$Ô7ÐNÐ9NÓNÐ7ÜÐ5´tÔ<ÐXÐ>XÓXÐ<ÜÐ:¼CÔ@ÐaÐBaÓaÐ@ÜÐ5´tÔ<ÐXÐ>XÓXÐ<ä*0×*CÑ*Cà)>Ø.HØ3RØ.Hñ	ó+
ˆô 28×1JÑ1JØ%°ÈÑXó2
Ðñ "Ø8NˆOÐ4Ñ5àŸ™×;Ñ;ØØ×"Ñ"Ð#Ð#AÐBØœv×NÑNÐOØ!ð	 <ó 
‰ˆ�ô ×0Ñ0×KÑKØ�O‰O˜W d°dð Ló 
ð 	
r)   c                ó\   — | j                   j                  d| j                  › d�«      \  }}y)z¯
        :calls: `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews <https://docs.github.com/en/rest/reference/repos#branches>`_
        rŒ   r›   Nr�   rL   s      r'   Ú$remove_required_pull_request_reviewsz+Branch.remove_required_pull_request_reviewsÚ  s1   € ð Ÿ™×;Ñ;ØØ×"Ñ"Ð#Ð#AÐBó
‰ˆ‘r)   c                ód   — | j                   j                  d| j                  › d�«      \  }}|d   S )z�
        :calls: `GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins <https://docs.github.com/en/rest/reference/repos#branches>`_
        rC   ú/enforce_adminsÚenabledr�   rL   s      r'   Úget_admin_enforcementzBranch.get_admin_enforcementã  s7   € ð Ÿ™×;Ñ;¸EÀd×FYÑFYÐEZÐZiÐCjÓk‰ˆ�Ø�I‰Ðr)   c                ó\   — | j                   j                  d| j                  › d�«      \  }}y)zž
        :calls: `POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins <https://docs.github.com/en/rest/reference/repos#branches>`_
        ÚPOSTr¢   Nr�   rL   s      r'   Úset_admin_enforcementzBranch.set_admin_enforcementê  s-   € ð Ÿ™×;Ñ;¸FÀt×GZÑGZÐF[Ð[jÐDkÓl‰ˆ‘r)   c                ó\   — | j                   j                  d| j                  › d�«      \  }}y)z 
        :calls: `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins <https://docs.github.com/en/rest/reference/repos#branches>`_
        rŒ   r¢   Nr�   rL   s      r'   Úremove_admin_enforcementzBranch.remove_admin_enforcementð  s-   € ð Ÿ™×;Ñ;¸HÈ×I\ÑI\ÐH]Ð]lÐFmÓn‰ˆ‘r)   c                ó¤   — t         j                  j                  t         j                  j                  | j                  | j                  › d�d«      S )z¡
        :calls: `GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users <https://docs.github.com/en/rest/reference/repos#branches>`_
        ú/restrictions/usersN)r   r   r   rI   r=   r%   s    r'   Úget_user_push_restrictionsz!Branch.get_user_push_restrictionsö  sH   € ô ×#Ñ#×1Ñ1Ü×Ñ×&Ñ&Ø�O‰OØ×"Ñ"Ð#Ð#6Ð7Øó	
ð 	
r)   c                ó¤   — t         j                  j                  t         j                  j                  | j                  | j                  › d�d«      S )z¡
        :calls: `GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams <https://docs.github.com/en/rest/reference/repos#branches>`_
        ú/restrictions/teamsN)r   r   r   rI   r=   r%   s    r'   Úget_team_push_restrictionsz!Branch.get_team_push_restrictions  sF   € ô ×#Ñ#×1Ñ1Ü�K‰K×ÑØ�O‰OØ×"Ñ"Ð#Ð#6Ð7Øó	
ð 	
r)   c                ó’   — t        d„ |D «       «      sJ |«       ‚| j                  j                  d| j                  › d�|¬«      \  }}y)zÏ
        :calls: `POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users <https://docs.github.com/en/rest/reference/repos#branches>`_
        :users: list of strings (user names)
        c              3  ó<   K  — | ]  }t        |t        «      –— Œ y ­wr   ©rQ   rV   ©rY   Úelements     r'   r[   z4Branch.add_user_push_restrictions.<locals>.<genexpr>  ó   è ø€ ÐA¹5°”:˜g¤s×+¹5ùó   ‚r¦   r«   r•   N©r}   rI   rJ   r=   ©r&   rk   rF   rM   s       r'   Úadd_user_push_restrictionsz!Branch.add_user_push_restrictions  óP   € ô
 ÑA¹5ÓAÔAÐHÀ5ÓHÐAàŸ™×;Ñ;Ø�t×*Ñ*Ð+Ð+>Ð?Àuð <ó 
‰ˆ‘r)   c                ó’   — t        d„ |D «       «      sJ |«       ‚| j                  j                  d| j                  › d�|¬«      \  }}y)zÎ
        :calls: `PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users <https://docs.github.com/en/rest/reference/repos#branches>`_
        :users: list of strings (user names)
        c              3  ó<   K  — | ]  }t        |t        «      –— Œ y ­wr   r²   r³   s     r'   r[   z8Branch.replace_user_push_restrictions.<locals>.<genexpr>  rµ   r¶   ry   r«   r•   Nr·   r¸   s       r'   Úreplace_user_push_restrictionsz%Branch.replace_user_push_restrictions  óP   € ô
 ÑA¹5ÓAÔAÐHÀ5ÓHÐAàŸ™×;Ñ;Ø�d×)Ñ)Ð*Ð*=Ð>Àeð <ó 
‰ˆ‘r)   c                ó’   — t        d„ |D «       «      sJ |«       ‚| j                  j                  d| j                  › d�|¬«      \  }}y)zÑ
        :calls: `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users <https://docs.github.com/en/rest/reference/repos#branches>`_
        :users: list of strings (user names)
        c              3  ó<   K  — | ]  }t        |t        «      –— Œ y ­wr   r²   r³   s     r'   r[   z7Branch.remove_user_push_restrictions.<locals>.<genexpr>'  rµ   r¶   rŒ   r«   r•   Nr·   r¸   s       r'   Úremove_user_push_restrictionsz$Branch.remove_user_push_restrictions"  óP   € ô
 ÑA¹5ÓAÔAÐHÀ5ÓHÐAàŸ™×;Ñ;Ø˜×,Ñ,Ð-Ð-@ÐAÈð <ó 
‰ˆ‘r)   c                ó’   — t        d„ |D «       «      sJ |«       ‚| j                  j                  d| j                  › d�|¬«      \  }}y)zÏ
        :calls: `POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams <https://docs.github.com/en/rest/reference/repos#branches>`_
        :teams: list of strings (team slugs)
        c              3  ó<   K  — | ]  }t        |t        «      –— Œ y ­wr   r²   r³   s     r'   r[   z4Branch.add_team_push_restrictions.<locals>.<genexpr>2  rµ   r¶   r¦   r®   r•   Nr·   ©r&   rl   rF   rM   s       r'   Úadd_team_push_restrictionsz!Branch.add_team_push_restrictions-  rº   r)   c                ó’   — t        d„ |D «       «      sJ |«       ‚| j                  j                  d| j                  › d�|¬«      \  }}y)zÎ
        :calls: `PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams <https://docs.github.com/en/rest/reference/repos#branches>`_
        :teams: list of strings (team slugs)
        c              3  ó<   K  — | ]  }t        |t        «      –— Œ y ­wr   r²   r³   s     r'   r[   z8Branch.replace_team_push_restrictions.<locals>.<genexpr>=  rµ   r¶   ry   r®   r•   Nr·   rÅ   s       r'   Úreplace_team_push_restrictionsz%Branch.replace_team_push_restrictions8  r¾   r)   c                ó’   — t        d„ |D «       «      sJ |«       ‚| j                  j                  d| j                  › d�|¬«      \  }}y)zÑ
        :calls: `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams <https://docs.github.com/en/rest/reference/repos#branches>`_
        :teams: list of strings (team slugs)
        c              3  ó<   K  — | ]  }t        |t        «      –— Œ y ­wr   r²   r³   s     r'   r[   z7Branch.remove_team_push_restrictions.<locals>.<genexpr>H  rµ   r¶   rŒ   r®   r•   Nr·   rÅ   s       r'   Úremove_team_push_restrictionsz$Branch.remove_team_push_restrictionsC  rÂ   r)   c                ó\   — | j                   j                  d| j                  › d�«      \  }}y)zž
        :calls: `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions <https://docs.github.com/en/rest/reference/repos#branches>`_
        rŒ   z/restrictionsNr�   rL   s      r'   Úremove_push_restrictionszBranch.remove_push_restrictionsN  s-   € ð Ÿ™×;Ñ;¸HÈ×I\ÑI\ÐH]Ð]jÐFkÓl‰ˆ‘r)   c                óˆ   — | j                   j                  d| j                  › d�dt        j                  i¬«      \  }}|d   S )z¢
        :calls: `GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures <https://docs.github.com/en/rest/reference/repos#branches>`_
        rC   ú/required_signaturesrD   rE   r£   ©rI   rJ   r=   r   Ú"signaturesProtectedBranchesPreviewrL   s      r'   Úget_required_signatureszBranch.get_required_signaturesT  sP   € ð Ÿ™×;Ñ;ØØ×"Ñ"Ð#Ð#7Ð8Øœv×HÑHÐIð <ó 
‰ˆ�ð
 �I‰Ðr)   c                ó€   — | j                   j                  d| j                  › d�dt        j                  i¬«      \  }}y)z£
        :calls: `POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures <https://docs.github.com/en/rest/reference/repos#branches>`_
        r¦   rÐ   rD   rE   NrÑ   rL   s      r'   Úadd_required_signatureszBranch.add_required_signatures_  sD   € ð Ÿ™×;Ñ;ØØ×"Ñ"Ð#Ð#7Ð8Øœv×HÑHÐIð <ó 
‰ˆ‘r)   c                ó€   — | j                   j                  d| j                  › d�dt        j                  i¬«      \  }}y)z¥
        :calls: `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures <https://docs.github.com/en/rest/reference/repos#branches>`_
        rŒ   rÐ   rD   rE   NrÑ   rL   s      r'   Úremove_required_signaturesz!Branch.remove_required_signaturesi  sD   € ð Ÿ™×;Ñ;ØØ×"Ñ"Ð#Ð#7Ð8Øœv×HÑHÐIð <ó 
‰ˆ‘r)   c                ód   — | j                   j                  d| j                  › d�«      \  }}|d   S )zž
        :calls: `GET /repos/{owner}/{repo}/branches/{branch}/protection/allow_deletions <https://docs.github.com/en/rest/reference/repos#branches>`_
        rC   ú/allow_deletionsr£   r�   rL   s      r'   Úget_allow_deletionszBranch.get_allow_deletionss  s7   € ð Ÿ™×;Ñ;¸EÀd×FYÑFYÐEZÐZjÐCkÓl‰ˆ�Ø�I‰Ðr)   c                ó\   — | j                   j                  d| j                  › d�«      \  }}y)zŸ
        :calls: `POST /repos/{owner}/{repo}/branches/{branch}/protection/allow_deletions <https://docs.github.com/en/rest/reference/repos#branches>`_
        r¦   rÙ   Nr�   rL   s      r'   Úset_allow_deletionszBranch.set_allow_deletionsz  s-   € ð Ÿ™×;Ñ;¸FÀt×GZÑGZÐF[Ð[kÐDlÓm‰ˆ‘r)   c                ó\   — | j                   j                  d| j                  › d�«      \  }}y)z¡
        :calls: `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/allow_deletions <https://docs.github.com/en/rest/reference/repos#branches>`_
        rŒ   rÙ   Nr�   rL   s      r'   Úremove_allow_deletionszBranch.remove_allow_deletions€  s-   € ð Ÿ™×;Ñ;¸HÈ×I\ÑI\ÐH]Ð]mÐFnÓo‰ˆ‘r)   c                ót  — d|v r| j                  |d   «      | _        d|v r2| j                  t        j                  j                  |d   «      | _        d|v r| j                  |d   «      | _        d|v r| j                  |d   «      | _        d|v r| j                  |d   «      | _
        d|v r2| j                  t        j                  j                  |d   «      | _        d|v r| j                  |d   «      | _        d|v r| j                  |d   «      | _        d	|v r| j                  |d	   «      | _        y y )
Nr0   r3   r+   r6   r8   r;   r=   r?   rA   )Ú_makeDictAttributer   Ú_makeClassAttributer   r   r   Ú_makeStringAttributer   r   Ú_makeBoolAttributer    r   r!   r"   Ú_makeIntAttributer#   r$   )r&   Ú
attributess     r'   Ú_useAttributeszBranch._useAttributes†  sH  € Ø�zÑ!Ø×2Ñ2°:¸hÑ3GÓHˆDŒLØ�zÑ!Ø×3Ñ3´F·M±M×4HÑ4HÈ*ÐU]ÑJ^Ó_ˆDŒLØ�ZÑØ×2Ñ2°:¸fÑ3EÓFˆDŒJØ˜
Ñ"Ø ×5Ñ5°jÀÑ6KÓLˆDŒMØ˜*Ñ$Ø"×5Ñ5°jÀÑ6MÓNˆDŒOØ˜:Ñ%Ø#×7Ñ7Ü×'Ñ'×8Ñ8¸*À\Ñ:Ró ˆDÔð ˜zÑ)Ø#'×#<Ñ#<¸ZÐHXÑ=YÓ#ZˆDÔ Ø,°
Ñ:Ø48×4JÑ4JØÐ<Ñ=ó5ˆDÔ1ð �JÑØ×1Ñ1°*¸UÑ2CÓDˆD�Ið r)   N)ÚreturnÚNone)rç   rV   )rç   údict[str, Any])rç   r   )rç   r|   )rç   r   )rç   rW   )2rc   ú	Opt[bool]r~   úOpt[list[str]]rf   rê   r   rë   r€   rë   r�   rë   rh   rê   ri   rê   r?   úOpt[int]r‚   rë   rƒ   rë   r„   rë   rr   rê   rs   rê   rt   rê   ru   rê   rv   rê   r…   rë   r†   rë   r‡   rë   rw   rê   rj   rê   rx   rê   rd   ú Opt[list[str | tuple[str, int]]]rç   r   )rç   r   )rc   rê   r~   rë   rd   rí   rç   r   )rç   r   )r   rë   r€   rë   r�   rë   rh   rê   ri   rê   r?   rì   rj   rê   rç   r   )rç   zPaginatedList[NamedUser])rç   zPaginatedList[Team])rk   rV   rç   rè   )rl   rV   rç   rè   )rå   ré   rç   rè   )-Ú__name__Ú
__module__Ú__qualname__Ú__doc__r(   r.   Úpropertyr0   r3   r+   r6   r8   r;   r=   r?   rA   r:   r	   rŠ   rŽ   r‘   r—   r™   rœ   rž   r    r¤   r§   r©   r¬   r¯   r¹   r½   rÁ   rÆ   rÉ   rÌ   rÎ   rÓ   rÕ   r×   rÚ   rÜ   rÞ   ræ   © r)   r'   r   r   T   sm  „ ñó	+ó<ð ò"ó ð"ð ò"ó ð"ð ò ó ð ð ò#ó ð#ð ò%ó ð%ð ò&ó ð&ð
 ò*ó ð*ð ò;ó ð;ð òó ðó	hð #Ø#)Ø$*Ø*0Ø*0Ø)/Ø+1Ø06Ø4:Ø17Ø17Ø06Ø-3Ø(.Ø6<Ø!'Ø(.Ø?EØ?EØ>DØ%+Ø06Ø%+Ø39ð3~hàð~hð !ð~hð "ð	~hð
 (ð~hð (ð~hð 'ð~hð  )ð~hð %.ð~hð *2ð~hð !/ð~hð !/ð~hð  .ð~hð "+ð~hð &ð~hð  +4ð!~hð" ð#~hð$ &ð%~hð& /=ð'~hð( /=ð)~hð* .<ð+~hð, #ð-~hð. %.ð/~hð0 #ð1~hð2 1ð3~hð4 
ó5~hó@
ópð #Ø#)Ø39ð	 pàð pð !ð pð 1ð	 pð
 
ó póD
ó
ð +1Ø*0Ø)/Ø+1Ø06Ø4:Ø06ð-
à'ð-
ð (ð-
ð 'ð	-
ð
  )ð-
ð %.ð-
ð *2ð-
ð %.ð-
ð 
$ó-
ó^
óómóoó	
ó	
ó	
ó	
ó	
ó	
ó	
ó	
ómó	ó
ó
óónópôEr)   r   )Ú
__future__r   Útypingr   r   Úgithub.BranchProtectionr   Úgithub.CommitÚ!github.RequiredPullRequestReviewsÚgithub.RequiredStatusChecksr   Úgithub.GithubObjectr   r   r	   r
   r   r   r   r   r   r   Úgithub.NamedUserr   Úgithub.PaginatedListr   r   r   Úgithub.Teamr   r   ró   r)   r'   Ú<module>rþ      sW   ðõl #ç %ã Û Û (Û "Ý ÷	÷ 	ó 	ñ Ý8Ý$Ý*Ý2ÝLÝ@Ý ôH	EÐ'õ H	Er)   