
    #IiM                     r    S SK rS SKrS SKrS SK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
 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g)CodeScanAlert   z
This class represents alerts from code scanning.
The reference can be found here https://docs.github.com/en/rest/reference/code-scanning.
c                 <    U R                  SU R                  05      $ )Nnumber)get__repr__r   selfs    :/venv/lib/python3.13/site-packages/github/CodeScanAlert.py__repr__CodeScanAlert.__repr__%   s    4;; 788    c                 .    U R                   R                  $ )z
:type: int
)_numbervaluer	   s    r   r   CodeScanAlert.number(   s    
 ||!!!r   c                 .    U R                   R                  $ )z3
:type: :class: `github.CodeScanRule.CodeScanRule`
)_ruler   r	   s    r   ruleCodeScanAlert.rule/       
 zzr   c                 .    U R                   R                  $ )z4
:type:  :class: `github.CodeScanTool.CodeScanTool`
)_toolr   r	   s    r   toolCodeScanAlert.tool6   r   r   c                 .    U R                   R                  $ z
:type: datetime
)_created_atr   r	   s    r   
created_atCodeScanAlert.created_at=   s    
 %%%r   c                 .    U R                   R                  $ r   )_dismissed_atr   r	   s    r   dismissed_atCodeScanAlert.dismissed_atD       
 !!'''r   c                 .    U R                   R                  $ )z-
:type: :class: `github.NamedUser.NamedUser`
)_dismissed_byr   r	   s    r   dismissed_byCodeScanAlert.dismissed_byK   r%   r   c                 .    U R                   R                  $ z
:type: str
)_dismissed_reasonr   r	   s    r   dismissed_reasonCodeScanAlert.dismissed_reasonR   s    
 %%+++r   c                 .    U R                   R                  $ z
:type: string
)_urlr   r	   s    r   urlCodeScanAlert.urlY   s    
 yyr   c                 .    U R                   R                  $ r0   )	_html_urlr   r	   s    r   html_urlCodeScanAlert.html_url`   s    
 ~~###r   c                 .    U R                   R                  $ r0   )_instances_urlr   r	   s    r   instances_urlCodeScanAlert.instances_urlg   s    
 ""(((r   c                 .    U R                   R                  $ )zC
:type: :class: github.CodeScanAlertInstance.CodeScanAlertInstance
)_most_recent_instancer   r	   s    r   most_recent_instance"CodeScanAlert.most_recent_instancen   s    
 ))///r   c                 .    U R                   R                  $ r+   )_stater   r	   s    r   stateCodeScanAlert.stateu   s    
 {{   r   c                     [         R                  R                  [         R                  R                  U R                  U R                  S5      $ )z
:calls: `GET` on the URL for instances as provided by Github
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.CodeScanAlertInstance.CodeScanAlertInstance`
N)githubPaginatedListCodeScanAlertInstance
_requesterr:   r	   s    r   get_instancesCodeScanAlert.get_instances|   s?    
 ##11((>>OO	
 	
r   c                    [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         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)rE   GithubObjectNotSetr   r   r   r   r"   r'   r,   r1   r5   r9   r=   rA   r	   s    r   _initAttributesCodeScanAlert._initAttributes   s    **11((//
((//
!..55#0077#0077!'!4!4!;!;''..	,,33$1188%+%8%8%?%?"))00r   c                    SU;   a  U R                  US   5      U l        SU;   a2  U R                  [        R                  R                  US   5      U l        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
        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        S	U;   a  U R                  US	   5      U l        S
U;   a  U R                  US
   5      U l        SU;   a2  U R                  [        R$                  R$                  US   5      U l        SU;   a  U R                  US   5      U l        g g )Nr   r   r   r   r#   r(   r-   r2   r6   r:   r>   rB   )_makeIntAttributer   _makeClassAttributerE   CodeScanRuler   CodeScanToolr   _makeDatetimeAttributer   r"   	NamedUserr'   _makeStringAttributer,   r1   r5   r9   rG   r=   rA   )r
   
attributess     r   _useAttributesCodeScanAlert._useAttributes   s   z!11*X2FGDLZ11##00*V2DDJ Z11##00*V2DDJ :%#:::l;STDZ'!%!<!<Z=W!XDZ'!%!9!9  **J~,F"D +%)%>%>-.&D" J11*U2CDDI#!66z*7MNDNj("&";";J<W"XD!Z/)-)A)A,,BB12*D& j 33Jw4GHDK !r   )r   r"   r'   r,   r5   r9   r=   r   r   rA   r   r1   N)__name__
__module____qualname____firstlineno____doc__r   propertyr   r   r   r   r#   r(   r-   r2   r6   r:   r>   rB   rI   rN   rY   __static_attributes__ r   r   r   r      s   
9 " "         & & ( ( ( ( , ,   $ $ ) ) 0 0 ! !

1"&Ir   r   )
github.CodeScanAlertInstancerE   github.CodeScanRulegithub.CodeScanToolgithub.GithubObjectgithub.NamedUsergithub.PaginatedListrL   NonCompletableGithubObjectr   rb   r   r   <module>rj      s5   . $     `IF''BB `Ir   