
    #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 5       r
\S 5       r\S	 5       rS
 rS rS rS rSrg)GistComment#   z~
This class represents GistComments. The reference can be found here https://docs.github.com/en/rest/reference/gists#comments
c                 z    U R                  U R                  R                  U R                  R                  S.5      $ )N)iduser)get__repr___idvalue_userselfs    8/venv/lib/python3.13/site-packages/github/GistComment.py__repr__GistComment.__repr__(   s*    txx~~tzz?O?O PQQ    c                 d    U R                  U R                  5        U R                  R                  $ z
:type: string
)_completeIfNotSet_bodyr   r   s    r   bodyGistComment.body+   &    
 	tzz*zzr   c                 d    U R                  U R                  5        U R                  R                  $ z
:type: datetime.datetime
)r   _created_atr   r   s    r   
created_atGistComment.created_at3   *    
 	t//0%%%r   c                 d    U R                  U R                  5        U R                  R                  $ )z
:type: integer
)r   r
   r   r   s    r   r   GistComment.id;   s$    
 	txx(xx~~r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _updated_atr   r   s    r   
updated_atGistComment.updated_atC   r   r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _urlr   r   s    r   urlGistComment.urlK   s$    
 	tyy)yyr   c                 d    U R                  U R                  5        U R                  R                  $ )z,
:type: :class:`github.NamedUser.NamedUser`
)r   r   r   r   s    r   r   GistComment.userS   r   r   c                 T    U R                   R                  SU R                  5      u  pg)zz
:calls: `DELETE /gists/{gist_id}/comments/{id} <https://docs.github.com/en/rest/reference/gists#comments>`_
:rtype: None
DELETEN)
_requesterrequestJsonAndCheckr(   )r   headersdatas      r   deleteGistComment.delete[   s"    
 ;;HdhhOr   c                     [        U[        5      (       d   U5       eSU0nU R                  R                  SU R                  US9u  p4U R                  U5        g)z
:calls: `PATCH /gists/{gist_id}/comments/{id} <https://docs.github.com/en/rest/reference/gists#comments>`_
:param body: string
:rtype: None
r   PATCH)inputN)
isinstancestrr.   r/   r(   _useAttributes)r   r   post_parametersr0   r1   s        r   editGistComment.editb   s`     $$$*d*$D
 ;;TXX_ < 
 	D!r   c                 x   [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        g )N)	githubGithubObjectNotSetr   r   r
   r#   r'   r   r   s    r   _initAttributesGistComment._initAttributesq   sv    ((//
!..55&&--!..55''..	((//
r   c                    SU;   a  U 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        SU;   a  U R                  US   5      U l        SU;   a  U R                  US   5      U l        SU;   a3  U R                  [        R                  R                  US   5      U l        g g )Nr   r   r   r$   r(   r   )_makeStringAttributer   _makeDatetimeAttributer   _makeIntAttributer
   r#   r'   _makeClassAttributer>   	NamedUserr   )r   
attributess     r   r9   GistComment._useAttributesy   s    Z22:f3EFDJ:%#:::l;STD:--j.>?DH:%#:::l;STDJ11*U2CDDIZ11  **Jv,>DJ  r   )r   r   r
   r#   r'   r   N)__name__
__module____qualname____firstlineno____doc__r   propertyr   r   r   r$   r(   r   r2   r;   rA   r9   __static_attributes__ r   r   r   r   #   s    R     & &   & &      P"0r   r   )github.GithubObjectr>   github.NamedUserr?   CompletableGithubObjectr   rR   r   r   <module>rV      s'   >  d&%%== dr   