
    #Ii                     R    S SK rS SKr " S S\R                  R                  5      rg)    Nc                       \ rS rSrSrS r\S 5       r\S 5       r\S 5       r	S r
\R                  R                  4S jrS	 rS
 rSrg)GitRef#   zy
This class represents GitRefs. The reference can be found here https://docs.github.com/en/rest/reference/git#references
c                 P    U R                  SU R                  R                  05      $ )Nref)get__repr___refvalueselfs    3/venv/lib/python3.13/site-packages/github/GitRef.py__repr__GitRef.__repr__(   s     		 899    c                 d    U R                  U R                  5        U R                  R                  $ )z,
:type: :class:`github.GitObject.GitObject`
)_completeIfNotSet_objectr
   r   s    r   objectGitRef.object+   s&    
 	t||,||!!!r   c                 d    U R                  U R                  5        U R                  R                  $ z
:type: string
)r   r	   r
   r   s    r   r   
GitRef.ref3   $    
 	tyy)yyr   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _urlr
   r   s    r   url
GitRef.url;   r   r   c                 T    U R                   R                  SU R                  5      u  pg)z
:calls: `DELETE /repos/{owner}/{repo}/git/refs/{ref} <https://docs.github.com/en/rest/reference/git#references>`_
:rtype: None
DELETEN)
_requesterrequestJsonAndCheckr   )r   headersdatas      r   deleteGitRef.deleteC   s"    
 ;;HdhhOr   c                 h   [        U[        5      (       d   U5       eU[        R                  R                  L d  [        U[
        5      (       d   U5       eSU0nU[        R                  R                  La  X#S'   U R                  R                  SU R                  US9u  pEU R                  U5        g)z
:calls: `PATCH /repos/{owner}/{repo}/git/refs/{ref} <https://docs.github.com/en/rest/reference/git#references>`_
:param sha: string
:param force: bool
:rtype: None
shaforcePATCH)inputN)

isinstancestrgithubGithubObjectNotSetboolr    r!   r   _useAttributes)r   r'   r(   post_parametersr"   r#   s         r   editGitRef.editJ   s     #s##(S(#++222j6M6MTuTM3
 ++222',G$;;TXX_ < 
 	D!r   c                     [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        g )N)r-   r.   r/   r   r	   r   r   s    r   _initAttributesGitRef._initAttributes]   s;    **11''..	''..	r   c                     SU;   a2  U R                  [        R                  R                  US   5      U l        SU;   a  U R	                  US   5      U l        SU;   a  U R	                  US   5      U l        g g )Nr   r   r   )_makeClassAttributer-   	GitObjectr   _makeStringAttributer	   r   )r   
attributess     r   r1   GitRef._useAttributesb   sw    z!33  **Jx,@DL J11*U2CDDIJ11*U2CDDI r   )r   r	   r   N)__name__
__module____qualname____firstlineno____doc__r   propertyr   r   r   r$   r-   r.   r/   r3   r6   r1   __static_attributes__ r   r   r   r   #   so    : " "    P %1188 "&/
Er   r   )github.GithubObjectr-   github.GitObjectr.   CompletableGithubObjectr   rE   r   r   <module>rI      s)   >  GEV  88 GEr   