
    ,Of/                        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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  G d
 de      Zy)    )annotations)datetime)TYPE_CHECKINGAnyN)	AttributeNonCompletableGithubObjectNotSet)DependabotAlertAdvisory)DependabotAlertDependency)DependabotAlertVulnerability)	NamedUserc                  $   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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y)DependabotAlertz
    This class represents a DependabotAlert.

    The reference can be found here
    https://docs.github.com/en/rest/dependabot/alerts

    c                8   t         | _        t         | _        t         | _        t         | _        t         | _        t         | _        t         | _        t         | _        t         | _	        t         | _
        t         | _        t         | _        t         | _        t         | _        y N)r	   _number_state_dependency_security_advisory_security_vulnerability_url	_html_url_created_at_updated_at_dismissed_at_dismissed_by_dismissed_reason_dismissed_comment	_fixed_atselfs    6lib/python3.12/site-packages/github/DependabotAlert.py_initAttributeszDependabotAlert._initAttributes5   sm    '-&,AGFLPV$$*	)/06069?:@8>9?)/    c                f    | j                  | j                  | j                  j                  d      S )N)numberghsa_id)get__repr__r&   security_advisoryr'   r    s    r"   __repr__zDependabotAlert.__repr__E   s(    4;;4CYCYCaCa bccr$   c                .    | j                   j                  S r   )r   valuer    s    r"   r&   zDependabotAlert.numberH   s    ||!!!r$   c                .    | j                   j                  S r   )r   r,   r    s    r"   statezDependabotAlert.stateL   s    {{   r$   c                .    | j                   j                  S r   )r   r,   r    s    r"   
dependencyzDependabotAlert.dependencyP       %%%r$   c                .    | j                   j                  S r   )r   r,   r    s    r"   r)   z!DependabotAlert.security_advisoryT       &&,,,r$   c                .    | j                   j                  S r   )r   r,   r    s    r"   security_vulnerabilityz&DependabotAlert.security_vulnerabilityX   s    ++111r$   c                .    | j                   j                  S r   )r   r,   r    s    r"   urlzDependabotAlert.url\   s    yyr$   c                .    | j                   j                  S r   )r   r,   r    s    r"   html_urlzDependabotAlert.html_url`       ~~###r$   c                .    | j                   j                  S r   )r   r,   r    s    r"   
created_atzDependabotAlert.created_atd   r1   r$   c                .    | j                   j                  S r   )r   r,   r    s    r"   
updated_atzDependabotAlert.updated_ath   r1   r$   c                .    | j                   j                  S r   )r   r,   r    s    r"   dismissed_atzDependabotAlert.dismissed_atl       !!'''r$   c                .    | j                   j                  S r   )r   r,   r    s    r"   dismissed_byzDependabotAlert.dismissed_byp   rA   r$   c                .    | j                   j                  S r   )r   r,   r    s    r"   dismissed_reasonz DependabotAlert.dismissed_reasont   s    %%+++r$   c                .    | j                   j                  S r   )r   r,   r    s    r"   dismissed_commentz!DependabotAlert.dismissed_commentx   r3   r$   c                .    | j                   j                  S r   )r   r,   r    s    r"   fixed_atzDependabotAlert.fixed_at|   r:   r$   c                   d|v r| j                  |d         | _        d|v r| j                  |d         | _        d|v r2| j	                  t
        j                  j                  |d         | _        d|v r2| j	                  t
        j                  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 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 )Nr&   r.   r0   r)   r5   r7   r9   r<   r>   r@   rC   rE   rG   rI   )_makeIntAttributer   _makeStringAttributer   _makeClassAttributegithubr   r   r
   r   r   r   r   r   _makeDatetimeAttributer   r   r   r   r   r   r   r   )r!   
attributess     r"   _useAttributeszDependabotAlert._useAttributes   s   z!11*X2FGDLj 33Jw4GHDK:%#7700JJJWcLd D *,&*&>&>..FF
SfHg'D# $z1+/+C+C33PPR\]uRv,D( J11*U2CDDI#!66z*7MNDN:%#:::l;STD:%#:::l;STDZ'!%!<!<Z=W!XDZ'!%!9!9&:J:J:T:TV`aoVp!qD+%)%>%>zJ\?]%^D"*,&*&?&?
K^@_&`D##!66z*7MNDN $r$   N)returnNone)rR   str)rR   int)rR   r   )rR   r
   )rR   r   )rR   r   )rR   zdatetime | None)rR   zNamedUser | None)rR   z
str | None)rP   zdict[str, Any]rR   rS   )__name__
__module____qualname____doc__r#   r*   propertyr&   r.   r0   r)   r5   r7   r9   r<   r>   r@   rC   rE   rG   rI   rQ    r$   r"   r   r   ,   s0   0 d " " ! ! & & - - 2 2   $ $ & & & & ( ( ( ( , , - - $ $"Or$   r   )
__future__r   r   typingr   r   #github.AdvisoryVulnerabilityPackagerN   github.DependabotAlertAdvisory github.DependabotAlertDependency#github.DependabotAlertVulnerabilitygithub.NamedUsergithub.GithubObjectr   r   r	   r
   r   r   r   r   r[   r$   r"   <module>rd      sE   2 #  % * % ' *  M MFJP*vO0 vOr$   