
    ,Of                    j    d dl mZ d dlmZ d dlZd dlZd dlmZm	Z	m
Z
  G d de	      Z G d d      Zy)	    )annotations)AnyN)	AttributeNonCompletableGithubObjectNotSetc                  L    e Zd ZdZddZd	dZed	d       Zed
d       ZddZ	y)!EnvironmentProtectionRuleReviewerz
    This class represents a reviewer for an EnvironmentProtectionRule.

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

    c                0    t         | _        t         | _        y N)r   _type	_reviewerselfs    Hlib/python3.12/site-packages/github/EnvironmentProtectionRuleReviewer.py_initAttributesz1EnvironmentProtectionRuleReviewer._initAttributes;   s    %+
SY    c                P    | j                  d| j                  j                  i      S )Ntype)get__repr__r   valuer   s    r   __repr__z*EnvironmentProtectionRuleReviewer.__repr__?   s"    )9)9 :;;r   c                .    | j                   j                  S r   )r   r   r   s    r   r   z&EnvironmentProtectionRuleReviewer.typeB   s    zzr   c                .    | j                   j                  S r   )r   r   r   s    r   reviewerz*EnvironmentProtectionRuleReviewer.reviewerF   s    ~~###r   c                   d|v r| j                  |d         | _        d|v r| j                  j                  dv sJ | j                  j                  dk(  r3| j                  t        j
                  j
                  |d         | _        y | j                  j                  dk(  r3| j                  t        j                  j                  |d         | _        y y y )Nr   r   UserTeamr   r   )_makeStringAttributer   r   _makeClassAttributegithub	NamedUserr   r   )r   
attributess     r   _useAttributesz0EnvironmentProtectionRuleReviewer._useAttributesJ   s    Z22:f3EFDJ#::##'7777zz6)!%!9!9&:J:J:T:TV`akVl!m!!V+!%!9!9&++:J:JJWaLb!c ,	 $r   N)returnNone)r%   str)r%   z-github.NamedUser.NamedUser | github.Team.Team)r#   zdict[str, Any]r%   r&   )
__name__
__module____qualname____doc__r   r   propertyr   r   r$    r   r   r	   r	   2   s@    Z<     $ $dr   r	   c                       e Zd ZdZddZddZy)ReviewerParamszP
    This class presents reviewers as can be configured for an Environment.
    c                p    t        |t              r|dv sJ t        |t              sJ || _        || _        y )Nr   )
isinstancer'   intr   id)r   type_id_s      r   __init__zReviewerParams.__init__Z   s8    %%%3C*CCC#s###	r   c                4    | j                   | j                  dS )Nr   r3   r8   r   s    r   _asdictzReviewerParams._asdict`   s    II''
 	
r   N)r4   r'   r5   r2   )r%   dict)r(   r)   r*   r+   r6   r9   r-   r   r   r/   r/   U   s    
r   r/   )
__future__r   typingr   github.NamedUserr!   github.Teamgithub.GithubObjectr   r   r   r	   r/   r-   r   r   <module>r@      s4   R #    M M d(B  dF
 
r   