
    ,Ofg                     Z    d dl mZ d dlmZ d dlmZ d dlZd dlmZm	Z	m
Z
  G d de	      Zy)    )annotations)datetime)AnyN)	AttributeCompletableGithubObjectNotSetc                     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ddZy)DeploymentStatusz
    This class represents Deployment Statuses.

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

    c                "   t         | _        t         | _        t         | _        t         | _        t         | _        t         | _        t         | _        t         | _        t         | _	        t         | _
        t         | _        t         | _        t         | _        y N)r   _created_at_creator_deployment_url_description_environment_environment_url_repository_url_state_target_url_updated_at_url_id_node_idselfs    7lib/python3.12/site-packages/github/DeploymentStatus.py_initAttributesz DeploymentStatus._initAttributes>   se    06?E/5,2,206/5&,+106$*	#)(.    c                z    | j                  | j                  j                  | j                  j                  d      S )N)idurl)get__repr__r   valuer   r   s    r   __repr__zDeploymentStatus.__repr__M   s(    txx~~diioo NOOr   c                d    | j                  | j                         | j                  j                  S r   )_completeIfNotSetr   r#   r   s    r   
created_atzDeploymentStatus.created_atP   (    t//0%%%r   c                d    | j                  | j                         | j                  j                  S r   )r&   r   r#   r   s    r   creatorzDeploymentStatus.creatorU   $    t}}-}}"""r   c                d    | j                  | j                         | j                  j                  S r   )r&   r   r#   r   s    r   deployment_urlzDeploymentStatus.deployment_urlZ   (    t334##)))r   c                d    | j                  | j                         | j                  j                  S r   )r&   r   r#   r   s    r   descriptionzDeploymentStatus.description_   (    t001  &&&r   c                d    | j                  | j                         | j                  j                  S r   )r&   r   r#   r   s    r   environmentzDeploymentStatus.environmentd   r1   r   c                d    | j                  | j                         | j                  j                  S r   )r&   r   r#   r   s    r   environment_urlz DeploymentStatus.environment_urli   s(    t445$$***r   c                d    | j                  | j                         | j                  j                  S r   )r&   r   r#   r   s    r   repository_urlzDeploymentStatus.repository_urln   r.   r   c                d    | j                  | j                         | j                  j                  S r   )r&   r   r#   r   s    r   statezDeploymentStatus.states   s$    t{{+{{   r   c                d    | j                  | j                         | j                  j                  S r   )r&   r   r#   r   s    r   
target_urlzDeploymentStatus.target_urlx   r(   r   c                d    | j                  | j                         | j                  j                  S r   )r&   r   r#   r   s    r   
updated_atzDeploymentStatus.updated_at}   r(   r   c                d    | j                  | j                         | j                  j                  S r   )r&   r   r#   r   s    r   r!   zDeploymentStatus.url   s"    tyy)yyr   c                d    | j                  | j                         | j                  j                  S r   )r&   r   r#   r   s    r   r    zDeploymentStatus.id   s"    txx(xx~~r   c                d    | j                  | j                         | j                  j                  S r   )r&   r   r#   r   s    r   node_idzDeploymentStatus.node_id   r+   r   c                *   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	         | _        d
|v r| j                  |d
         | _        d|v r| j                  |d         | _        d|v r| j                  |d         | _        d|v r| j                  |d         | _        y y )Nr5   r!   r    rA   r'   r*   r-   r0   r3   r7   r9   r;   r=   )_makeStringAttributer   r   _makeIntAttributer   r   _makeDatetimeAttributer   _makeClassAttributegithub	NamedUserr   r   r   r   r   r   r   r   )r   
attributess     r   _useAttributeszDeploymentStatus._useAttributes   s   
*$($=$=jIZ>[$\D!J11*U2CDDI:--j.>?DH
" 55j6KLDM:%#:::l;STD
" 44V5E5E5O5OQ[\eQfgDMz)#'#<#<ZHX=Y#ZD J& $ 9 9*]:S TDJ& $ 9 9*]:S TDz)#'#<#<ZHX=Y#ZD j 33Jw4GHDK:%#88L9QRD:%#:::l;STD &r   N)returnNone)rK   str)rK   r   )rK   zgithub.NamedUser.NamedUser)rK   int)rI   zdict[str, Any]rK   rL   )__name__
__module____qualname____doc__r   r$   propertyr'   r*   r-   r0   r3   r5   r7   r9   r;   r=   r!   r    rA   rJ    r   r   r
   r
   5   s   /P & & # # * * ' ' ' ' + + * * ! ! & & & &     # #Ur   r
   )
__future__r   r   typingr   github.NamedUserrG   github.GithubObjectr   r   r   r
   rT   r   r   <module>rY      s+   X #    J JvU. vUr   