
    #Ii                     ^    S SK Jr  S SKrS SKr " S S\R
                  R                  5      rg)    )ListNc                       \ rS rSrSrS r\S\4S j5       r\S\	4S j5       r
\S\	4S j5       r\S\\R                  R                     4S j5       r\S\4S	 j5       rS
 rS rSrg)EnvironmentProtectionRule   z
This class represents a protection rule for an environment. The reference can be found here https://docs.github.com/en/rest/reference/deployments#environments
c                 P    U R                  SU R                  R                  05      $ )Nid)get__repr___idvalueselfs    F/venv/lib/python3.13/site-packages/github/EnvironmentProtectionRule.py__repr__"EnvironmentProtectionRule.__repr__"   s     txx~~ 677    returnc                 .    U R                   R                  $ N)r
   r   r   s    r   r   EnvironmentProtectionRule.id%   s    xx~~r   c                 .    U R                   R                  $ r   )_node_idr   r   s    r   node_id!EnvironmentProtectionRule.node_id)   s    }}"""r   c                 .    U R                   R                  $ r   )_typer   r   s    r   typeEnvironmentProtectionRule.type-   s    zzr   c                 .    U R                   R                  $ r   )
_reviewersr   r   s    r   	reviewers#EnvironmentProtectionRule.reviewers1   s     $$$r   c                 .    U R                   R                  $ r   )_wait_timerr   r   s    r   
wait_timer$EnvironmentProtectionRule.wait_timer9   s    %%%r   c                 :   [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        g r   )githubGithubObjectNotSetr
   r   r   r   r#   r   s    r   _initAttributes)EnvironmentProtectionRule._initAttributes=   sb    &&--++22((//
 --44!..55r   c                 n   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$   )
_makeIntAttributer
   _makeStringAttributer   r   _makeListOfClassesAttributer'   !EnvironmentProtectionRuleReviewerr   r#   )r   
attributess     r   _useAttributes(EnvironmentProtectionRule._useAttributesD   s    :--j.>?DH
" 55j6KLDMZ22:f3EFDJ*$">>88ZZ;'DO :%#55j6NOD &r   )r
   r   r   r   r#   N)__name__
__module____qualname____firstlineno____doc__r   propertyintr   strr   r   r   r'   r0   r    r$   r*   r2   __static_attributes__ r   r   r   r      s    8 C   # # #  c     %	00RR
% % &C & &6Pr   r   )typingr   (github.EnvironmentProtectionRuleReviewerr'   github.GithubObjectr(   NonCompletableGithubObjectr   r=   r   r   <module>rB      s*   .  / 4P 3 3 N N 4Pr   