Ë
    Ö—Äj´  ã                  óz   — d dl mZ d dlmZmZ d dlZd dlmZm	Z	m
Z
 d dlmZ erd dlmZ d dlmZ  G d„ d	e	«      Zy)
é    )Úannotations)ÚTYPE_CHECKINGÚAnyN)Ú	AttributeÚNonCompletableGithubObjectÚNotSet)ÚPaginatedList)ÚCopilotSeat)Ú	Requesterc                  ób   ‡ — e Zd Zd	ˆ fd„Zd
d„Zdd„Zedd„«       Zdd„Zdd„Z	dd„Z
dd„Zˆ xZS )ÚCopilotc                ó,   •— t         ‰| �  |i d|i«       y ©NÚorg_name)ÚsuperÚ__init__)ÚselfÚ	requesterr   Ú	__class__s      €úSC:\Users\pivot\Documents\cueki\casual-preloader\Lib\site-packages\github/Copilot.pyr   zCopilot.__init__&   s   ø€ Ü‰Ñ˜ B¨°XÐ(>Õ?ó    c                ó   — t         | _        y ©N)r   Ú	_org_name©r   s    r   Ú_initAttributeszCopilot._initAttributes)   s	   € Ü)/ˆ�r   c                óŠ   — | j                  d| j                  t        ur| j                  j                  i«      S t        i«      S r   )Úget__repr__r   r   Úvaluer   s    r   Ú__repr__zCopilot.__repr__,   s:   € Ø×Ñ ÀTÇ^Á^Ô[aÑEa¨T¯^©^×-AÑ-AÐ nÓoÐoÔgmÐ nÓoÐor   c                ó.   — | j                   j                  S r   )r   r   r   s    r   r   zCopilot.org_name/   s   € à�~‰~×#Ñ#Ð#r   c                óš   — d| j                   j                  › d�}t        t        j                  j                  | j
                  |dd¬«      S )z}
        :calls: `GET /orgs/{org}/copilot/billing/seats <https://docs.github.com/en/rest/copilot/copilot-business>`_
        ú/orgs/z/copilot/billing/seatsNÚseats)Ú	list_item)r   r   r	   Úgithubr
   Ú
_requester)r   Úurls     r   Ú	get_seatszCopilot.get_seats3   sJ   € ð �t—~‘~×+Ñ+Ð,Ð,BÐCˆÜÜ×Ñ×*Ñ*Ø�O‰OØØØô
ð 	
r   c                ó†   — d| j                   j                  › d�}| j                  j                  d|d|i¬«      \  }}|d   S )a  
        :calls: `POST /orgs/{org}/copilot/billing/selected_users <https://docs.github.com/en/rest/copilot/copilot-business>`_
        :param selected_usernames: List of usernames to add Copilot seats for
        :rtype: int
        :return: Number of seats created
        r#   ú/copilot/billing/selected_usersÚPOSTÚselected_usernames©ÚinputÚseats_created©r   r   r'   ÚrequestJsonAndCheck©r   r-   r(   Ú_Údatas        r   Ú	add_seatszCopilot.add_seats@   sW   € ð �t—~‘~×+Ñ+Ð,Ð,KÐLˆØ—/‘/×5Ñ5ØØØ'Ð);Ð<ð 6ó 
‰ˆˆ4ð
 �OÑ$Ð$r   c                ó†   — d| j                   j                  › d�}| j                  j                  d|d|i¬«      \  }}|d   S )a  
        :calls: `DELETE /orgs/{org}/copilot/billing/selected_users <https://docs.github.com/en/rest/copilot/copilot-business>`_
        :param selected_usernames: List of usernames to remove Copilot seats for
        :rtype: int
        :return: Number of seats cancelled
        r#   r+   ÚDELETEr-   r.   Úseats_cancelledr1   r3   s        r   Úremove_seatszCopilot.remove_seatsO   sX   € ð �t—~‘~×+Ñ+Ð,Ð,KÐLˆØ—/‘/×5Ñ5ØØØ'Ð);Ð<ð 6ó 
‰ˆˆ4ð
 Ð%Ñ&Ð&r   c                ó@   — d|v r| j                  |d   «      | _        y y r   )Ú_makeStringAttributer   )r   Ú
attributess     r   Ú_useAttributeszCopilot._useAttributes^   s&   € Ø˜Ñ#Ø!×6Ñ6°zÀ*Ñ7MÓNˆD�Nð $r   )r   r   r   ÚstrÚreturnÚNone)r@   rA   )r@   r?   )r@   zPaginatedList[CopilotSeat])r-   z	list[str]r@   Úint)r=   zdict[str, Any]r@   rA   )Ú__name__Ú
__module__Ú__qualname__r   r   r    Úpropertyr   r)   r6   r:   r>   Ú__classcell__)r   s   @r   r   r   %   s=   ø„ õ@ó0ópð ò$ó ð$ó
ó%ó'÷Or   r   )Ú
__future__r   Útypingr   r   Úgithub.CopilotSeatr&   Úgithub.GithubObjectr   r   r   Úgithub.PaginatedListr	   r
   Úgithub.Requesterr   r   © r   r   Ú<module>rO      s1   ðõ0 #ç %ã ß MÑ MÝ .áÝ.Ý*ô;OÐ(õ ;Or   