
    ,Of                     V    d dl mZmZ d dlmZmZmZ d dlmZ d dl	m
Z
  G d de      Zy)    )AnyDict)	AttributeCompletableGithubObjectNotSet)NamedEnterpriseUser)PaginatedListc                       e Zd ZdZddZdefdZedefd       Z	edefd       Z
edefd       Zedefd	       Zdee   fd
Zdeeef   ddfdZy)EnterpriseConsumedLicensesz
    This class represents license consumed by enterprises.

    The reference can be found here
    https://docs.github.com/en/enterprise-cloud@latest/rest/enterprise-admin/license#list-enterprise-consumed-licenses

    returnNc                 \    t         | _        t         | _        t         | _        t         | _        y N)r   _total_seats_consumed_total_seats_purchased_enterprise_urlselfs    Alib/python3.12/site-packages/github/EnterpriseConsumedLicenses.py_initAttributesz*EnterpriseConsumedLicenses._initAttributes8   s!    5;"6<#+1$*	    c                 P    | j                  d| j                  j                  i      S )N
enterprise)get__repr__r   valuer   s    r   __repr__z#EnterpriseConsumedLicenses.__repr__>   s$    t/?/?/E/E FGGr   c                 .    | j                   j                  S r   )r   r   r   s    r   total_seats_consumedz/EnterpriseConsumedLicenses.total_seats_consumedA   s    ))///r   c                 .    | j                   j                  S r   )r   r   r   s    r   total_seats_purchasedz0EnterpriseConsumedLicenses.total_seats_purchasedE   s    **000r   c                 d    | j                  | j                         | j                  j                  S r   )_completeIfNotSetr   r   r   s    r   r   z%EnterpriseConsumedLicenses.enterpriseI   s(    t//0%%%r   c                 d    | j                  | j                         | j                  j                  S r   )r"   r   r   r   s    r   urlzEnterpriseConsumedLicenses.urlN   s"    tyy)yyr   c           
          i }t        t        | j                  | j                  |dd| j                  | j
                        S )z
        :calls: `GET /enterprises/{enterprise}/consumed-licenses <https://docs.github.com/en/enterprise-cloud@latest/rest/enterprise-admin/license#list-enterprise-consumed-licenses>`_
        Nusers)	firstDatafirstHeaders)r	   r   
_requesterr$   raw_dataraw_headers)r   url_parameterss     r   	get_usersz$EnterpriseConsumedLicenses.get_usersS   s@    
 *,OOHHmm))	
 		
r   
attributesc                     d|v r| j                  |d         | _        d|v r| j                  |d         | _        d|v r| j                  |d         | _        d|v r| j                  |d         | _        y y )Nr   r    r   r$   )_makeIntAttributer   r   _makeStringAttributer   r   )r   r.   s     r   _useAttributesz)EnterpriseConsumedLicenses._useAttributesd   s    !Z/)-)?)?
Ka@b)cD&"j0*.*@*@LcAd*eD':%#88L9QRDJ11*U2CDDI r   )r   N)__name__
__module____qualname____doc__r   strr   propertyintr   r    r   r$   r	   r   r-   r   r   r2    r   r   r   r   /   s    +H# H 0c 0 0 1s 1 1 &C & & S  
=)<= 
"Ec3h ED Er   r   N)typingr   r   github.GithubObjectr   r   r   github.NamedEnterpriseUserr   github.PaginatedListr	   r   r:   r   r   <module>r?      s&   P  J J : .=E!8 =Er   