
    #Ii                         S SK r S SKJr  S SKrS SKrS SKrS SKrS SKrS SK	rS SK
rS SKrS SKrS SKrS SKrS SKrS SKrS SKrS SKrSSKJr   " S S\R*                  R,                  5      rg)    N)
namedtuple   )Constsc                      \ rS rSrSrS r\S 5       r\S 5       r\S 5       r	\S 5       r
\S 5       r\S	 5       r\S
 5       r\S 5       r\S 5       r\S 5       r\S 5       r\S 5       r\S 5       r\S 5       r\S 5       r\S 5       r\S 5       r\S 5       r\S 5       r\S 5       r\S 5       r\S 5       r\S 5       r\S 5       r\S 5       r\S 5       r \S 5       r!\S 5       r"\S  5       r#\S! 5       r$\S" 5       r%\S# 5       r&\S$ 5       r'\S% 5       r(\S& 5       r)\S' 5       r*\S( 5       r+\S) 5       r,S* r-S+ r.S, r/S- r0S. r1\2Rf                  Rh                  \2Rf                  Rh                  \2Rf                  Rh                  \2Rf                  Rh                  \2Rf                  Rh                  S/4S0 jr5\6\2Rf                  Rh                  \2Rf                  Rh                  4S1 j5       r7\2Rf                  Rh                  \2Rf                  Rh                  4S2 jr8\2Rf                  Rh                  4S3 jr9S4 r:\2Rf                  Rh                  4S5 jr;\2Rf                  Rh                  \2Rf                  Rh                  \2Rf                  Rh                  \2Rf                  Rh                  \2Rf                  Rh                  \2Rf                  Rh                  \2Rf                  Rh                  \2Rf                  Rh                  \2Rf                  Rh                  \2Rf                  Rh                  \2Rf                  Rh                  \2Rf                  Rh                  \2Rf                  Rh                  \2Rf                  Rh                  4S6 jr<\2Rf                  Rh                  \2Rf                  Rh                  \2Rf                  Rh                  \2Rf                  Rh                  \2Rf                  Rh                  \2Rf                  Rh                  \2Rf                  Rh                  4S7 jr=S8 r>S9 r?S: r@S; rAS< rBS= rC\2Rf                  Rh                  4S> jrD\2Rf                  Rh                  \2Rf                  Rh                  \2Rf                  Rh                  \2Rf                  Rh                  \2Rf                  Rh                  \2Rf                  Rh                  4S? jrE\2Rf                  Rh                  \2Rf                  Rh                  \2Rf                  Rh                  \2Rf                  Rh                  \2Rf                  Rh                  \2Rf                  Rh                  4S@ jrFSA rGSB rHSC rI\2Rf                  Rh                  \2Rf                  Rh                  \2Rf                  Rh                  \2Rf                  Rh                  4SD jrJSE rKSF rLSG rM\2Rf                  Rh                  \2Rf                  Rh                  \2Rf                  Rh                  \2Rf                  Rh                  \2Rf                  Rh                  4SH jrNSI rOSJ rPSK rQSL rRSM rSSN rTSO rUSP rVSQ rWSR rX\YR                  R                  \YR                  R                  5      4SS jr]ST r^SU r_SV r`SW raSX rbSY rcSZ rd\2Rf                  Rh                  \2Rf                  Rh                  4S[ jreS\ rfS] rgS^ rhS_ riS`rjg/)aAuthenticatedUser@   z
This class represents AuthenticatedUsers as returned by https://docs.github.com/en/rest/reference/users#get-the-authenticated-user

An AuthenticatedUser object can be created by calling ``get_user()`` on a Github object.
c                 P    U R                  SU R                  R                  05      $ )Nlogin)get__repr___loginvalueselfs    >/venv/lib/python3.13/site-packages/github/AuthenticatedUser.py__repr__AuthenticatedUser.__repr__G   s"    $++*;*; <==    c                 d    U R                  U R                  5        U R                  R                  $ z
:type: string
)_completeIfNotSet_avatar_urlr   r   s    r   
avatar_urlAuthenticatedUser.avatar_urlJ   *    
 	t//0%%%r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _bior   r   s    r   bioAuthenticatedUser.bioR   $    
 	tyy)yyr   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _blogr   r   s    r   blogAuthenticatedUser.blogZ   &    
 	tzz*zzr   c                 d    U R                  U R                  5        U R                  R                  $ z
:type: integer
)r   _collaboratorsr   r   s    r   collaboratorsAuthenticatedUser.collaboratorsb   *    
 	t223""(((r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _companyr   r   s    r   companyAuthenticatedUser.companyj   &    
 	t}}-}}"""r   c                 d    U R                  U R                  5        U R                  R                  $ z
:type: datetime.datetime
)r   _created_atr   r   s    r   
created_atAuthenticatedUser.created_atr   r   r   c                 d    U R                  U R                  5        U R                  R                  $ r&   )r   _disk_usager   r   s    r   
disk_usageAuthenticatedUser.disk_usagez   r   r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _emailr   r   s    r   emailAuthenticatedUser.email   &    
 	t{{+{{   r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _events_urlr   r   s    r   
events_urlAuthenticatedUser.events_url   r   r   c                 d    U R                  U R                  5        U R                  R                  $ r&   )r   
_followersr   r   s    r   	followersAuthenticatedUser.followers   &    
 	t/$$$r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _followers_urlr   r   s    r   followers_urlAuthenticatedUser.followers_url   r*   r   c                 d    U R                  U R                  5        U R                  R                  $ r&   )r   
_followingr   r   s    r   	followingAuthenticatedUser.following   rF   r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _following_urlr   r   s    r   following_urlAuthenticatedUser.following_url   r*   r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   
_gists_urlr   r   s    r   	gists_urlAuthenticatedUser.gists_url   rF   r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _gravatar_idr   r   s    r   gravatar_idAuthenticatedUser.gravatar_id   *    
 	t001  &&&r   c                 d    U R                  U R                  5        U R                  R                  $ z
:type: bool
)r   	_hireabler   r   s    r   hireableAuthenticatedUser.hireable   &    
 	t~~.~~###r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   	_html_urlr   r   s    r   html_urlAuthenticatedUser.html_url   ra   r   c                 d    U R                  U R                  5        U R                  R                  $ r&   )r   _idr   r   s    r   idAuthenticatedUser.id   s$    
 	txx(xx~~r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   	_locationr   r   s    r   locationAuthenticatedUser.location   ra   r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   r   r   r   s    r   r
   AuthenticatedUser.login   r=   r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _namer   r   s    r   nameAuthenticatedUser.name   r$   r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _node_idr   r   s    r   node_idAuthenticatedUser.node_id   r/   r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _organizations_urlr   r   s    r   organizations_url#AuthenticatedUser.organizations_url   *    
 	t667&&,,,r   c                 d    U R                  U R                  5        U R                  R                  $ r&   )r   _owned_private_reposr   r   s    r   owned_private_repos%AuthenticatedUser.owned_private_repos  *    
 	t889((...r   c                 d    U R                  U R                  5        U R                  R                  $ )z"
:type: :class:`github.Plan.Plan`
)r   _planr   r   s    r   planAuthenticatedUser.plan
  r$   r   c                 d    U R                  U R                  5        U R                  R                  $ r&   )r   _private_gistsr   r   s    r   private_gistsAuthenticatedUser.private_gists  r*   r   c                 d    U R                  U R                  5        U R                  R                  $ r&   )r   _public_gistsr   r   s    r   public_gistsAuthenticatedUser.public_gists  *    
 	t112!!'''r   c                 d    U R                  U R                  5        U R                  R                  $ r&   )r   _public_reposr   r   s    r   public_reposAuthenticatedUser.public_repos"  r   r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _received_events_urlr   r   s    r   received_events_url%AuthenticatedUser.received_events_url*  r   r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   
_repos_urlr   r   s    r   	repos_urlAuthenticatedUser.repos_url2  rF   r   c                 d    U R                  U R                  5        U R                  R                  $ r]   )r   _site_adminr   r   s    r   
site_adminAuthenticatedUser.site_admin:  r   r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _starred_urlr   r   s    r   starred_urlAuthenticatedUser.starred_urlB  r[   r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _subscriptions_urlr   r   s    r   subscriptions_url#AuthenticatedUser.subscriptions_urlJ  r|   r   c                 d    U R                  U R                  5        U R                  R                  $ r&   )r   _total_private_reposr   r   s    r   total_private_repos%AuthenticatedUser.total_private_reposR  r   r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _typer   r   s    r   typeAuthenticatedUser.typeZ  r$   r   c                 d    U R                  U R                  5        U R                  R                  $ r1   )r   _updated_atr   r   s    r   
updated_atAuthenticatedUser.updated_atb  r   r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _urlr   r   s    r   urlAuthenticatedUser.urlj  r   r   c                 d    U R                  U R                  5        U R                  R                  $ r]   )r   _two_factor_authenticationr   r   s    r   two_factor_authentication+AuthenticatedUser.two_factor_authenticationr  s*    
 	t>>?..444r   c                     [        S U 5       5      (       d   U5       eSU0nU R                  R                  SSUS9u  p4g)zx
:calls: `POST /user/emails <http://docs.github.com/en/rest/reference/users#emails>`_
:param email: string
:rtype: None
c              3   B   #    U  H  n[        U[        5      v   M     g 7fN
isinstancestr.0elements     r   	<genexpr>2AuthenticatedUser.add_to_emails.<locals>.<genexpr>       B6:gs++6   emailsPOST/user/emailsinputNall
_requesterrequestJsonAndCheckr   r   post_parametersheadersdatas        r   add_to_emailsAuthenticatedUser.add_to_emailsz  sN     B6BBBJFJB#V,;;N/ < 
r   c                     [        U[        R                  R                  5      (       d   U5       eU R                  R	                  SSUR
                   35      u  p#g)z
:calls: `PUT /user/following/{user} <http://docs.github.com/en/rest/reference/users#followers>`_
:param following: :class:`github.NamedUser.NamedUser`
:rtype: None
PUT/user/following/Nr   github	NamedUserr   r   	_identityr   rM   r   r   s       r   add_to_following"AuthenticatedUser.add_to_following  sT     )V%5%5%?%?@@K)K@;;%i&9&9%:;
r   c                     [        U[        R                  R                  5      (       d   U5       eU R                  R	                  SSUR
                   35      u  p#g)z
:calls: `PUT /user/starred/{owner}/{repo} <http://docs.github.com/en/rest/reference/activity#starring>`_
:param starred: :class:`github.Repository.Repository`
:rtype: None
r   /user/starred/Nr   r   
Repositoryr   r   r   r   starredr   r   s       r   add_to_starred AuthenticatedUser.add_to_starred  sS     '6#4#4#?#?@@I'I@;;^G$5$5#67
r   c                     [        U[        R                  R                  5      (       d   U5       eU R                  R	                  SSUR
                   35      u  p#g)z
:calls: `PUT /user/subscriptions/{owner}/{repo} <http://docs.github.com/en/rest/reference/activity#watching>`_
:param subscription: :class:`github.Repository.Repository`
:rtype: None
r   /user/subscriptions/Nr   r   subscriptionr   r   s       r   add_to_subscriptions&AuthenticatedUser.add_to_subscriptions  sT     ,(9(9(D(DEES|SE;;),*@*@)AB
r   c                     [        U[        R                  R                  5      (       d   U5       eU R                  R	                  SSUR
                   S3SS0S9u  p#g)z
:calls: `PUT /repos/{owner}/{repo}/subscription <http://docs.github.com/en/rest/reference/activity#watching>`_
:param watched: :class:`github.Repository.Repository`
:rtype: None
r   /repos//subscription
subscribedTr   Nr   r   watchedr   r   s       r   add_to_watched AuthenticatedUser.add_to_watched  sc     '6#4#4#?#?@@I'I@;;g''(6& < 
r   Nc                    U[         R                  R                  L d  [        S U 5       5      (       d   U5       eU[         R                  R                  L d  [	        U[
        5      (       d   U5       eU[         R                  R                  L d  [	        U[
        5      (       d   U5       eU[         R                  R                  L d  [	        U[
        5      (       d   U5       eU[         R                  R                  L d  [	        U[
        5      (       d   U5       eUb  [	        U[
        5      (       d   U5       e[        5       nU[         R                  R                  La  XS'   U[         R                  R                  La  X'S'   U[         R                  R                  La  X7S'   U[         R                  R                  La  XGS'   U[         R                  R                  La  XWS'   Ub  [        R                  U0nOSnU R                  R                  SS	UUS
9u  p[         R                  R                  U R                  XSS9$ )a9  
:calls: `POST /authorizations <https://docs.github.com/en/developers/apps/authorizing-oauth-apps>`_
:param scopes: list of string
:param note: string
:param note_url: string
:param client_id: string
:param client_secret: string
:param onetime_password: string
:rtype: :class:`github.Authorization.Authorization`
c              3   B   #    U  H  n[        U[        5      v   M     g 7fr   r   r   s     r   r   9AuthenticatedUser.create_authorization.<locals>.<genexpr>  s      ;
4:Jw$$Fr   Nscopesnotenote_url	client_idclient_secretr   /authorizationsr   r   T	completed)r   GithubObjectNotSetr   r   r   dictr   	headerOTPr   r   Authorization)r   r   r   r   r   r   onetime_passwordr   request_headerr   r   s              r   create_authorization&AuthenticatedUser.create_authorization  sK   & ,,333s ;
4:;
 8
 8
 		 
 v**111Zc5J5JPDPJ6..555c:
 :
 		 
 F//666*s;
 ;
 		 
  3 3 : ::j3?
 ?
 		 
  ':c,
 ,
 		 
 &,,333(.H%v**111&*F#6..555*2J'F//666+4K( 3 3 : ::/<O,'  "2N "N;;!"	 < 
 ##11OOWd 2 
 	
r   c                     [        U [        R                  R                  5      (       d   U 5       eU R                  [        R                  R
                  UUS9$ )z
:calls: `POST /repos/{owner}/{repo}/forks <http://docs.github.com/en/rest/reference/repos#forks>`_
:param repo: :class:`github.Repository.Repository`
:param name: string
:param default_branch_only: bool
:rtype: :class:`github.Repository.Repository`
)organizationrr   default_branch_only)r   r   r   create_forkr  r  )reporr   r  s      r   r  AuthenticatedUser.create_fork  sU     $ 1 1 < <==CtC=,,33 3   
 	
r   c                    [        U[        5      (       d   U5       e[        U[        R                  R                  5      (       d   U5       eU[        R                  R
                  L d  [        U[        5      (       d   U5       eU[        R                  R
                  L d  [        U[        5      (       d   U5       eUU R                  S.nU[        R                  R
                  La  X5S'   U[        R                  R
                  La  XES'   U R                  R                  SSUR                  R                   SUR                   S3USS	0S
9u  pg[        R                  R                  U R                  XgSS9$ )a=  
:calls: `POST /repos/{template_owner}/{template_repo}/generate <https://docs.github.com/en/rest/reference/repos#create-a-repository-using-a-template>`_
:param name: string
:param repo :class:`github.Repository.Repository`
:param description: string
:param private: bool
:rtype: :class:`github.Repository.Repository`
)rr   ownerdescriptionprivater   r   /z	/generateAcceptzapplication/vnd.github.v3+jsonr   Tr  )r   r   r   r   r  r  boolr
   r   r   r  rr   )r   rr   r  r  r  r   r   r   s           r   create_repo_from_template+AuthenticatedUser.create_repo_from_template  ss    $$$*d*$$ 1 1 < <==CtC=f11888J=
 =
 		 
 &--444
T9
 9
 		 
 ZZ
 f11888-8M*&--444)0I&;;djj&&'q9=!?@	 < 
   ++OOWd , 
 	
r   c                 B   [        U[        5      (       d   U5       e[        S UR                  5        5       5      (       d   U5       eU[        R
                  R                  L d  [        U[        5      (       d   U5       eUUR                  5        VVs0 s H  u  pEXER                  _M     snnS.nU[        R
                  R                  La  X6S'   U R                  R                  SSUS9u  px[        R                  R                  U R                  XxSS9$ s  snnf )	z
:calls: `POST /gists <http://docs.github.com/en/rest/reference/gists>`_
:param public: bool
:param files: dict of string to :class:`github.InputFileContent.InputFileContent`
:param description: string
:rtype: :class:`github.Gist.Gist`
c              3   V   #    U  H  n[        U[        R                  5      v   M!     g 7fr   )r   r   InputFileContentr   s     r   r   0AuthenticatedUser.create_gist.<locals>.<genexpr>8  s#      
HVWJw 7 788s   '))publicfilesr  r   /gistsr   Tr  )r   r  r   valuesr   r  r  r   itemsr   r   r   Gist)	r   r  r   r  keyr   r   r   r   s	            r   create_gistAuthenticatedUser.create_gist/  s    &$''//' 
HM
 
 
 		 
 f11888J=
 =
 		 
 =B[[]K]zsc??*]K
 f11888-8M*;;HO < 
 {{$OO Ls   Dc                    [        U[        5      (       d   U5       e[        U[        5      (       d   U5       eUUS.nU R                  R                  SSUS9u  pE[        R
                  R                  U R                  XESS9$ )z
:calls: `POST /user/keys <http://docs.github.com/en/rest/reference/users#git-ssh-keys>`_
:param title: string
:param key: string
:rtype: :class:`github.UserKey.UserKey`
)titler%  r   
/user/keysr   Tr  )r   r   r   r   r   UserKey)r   r)  r%  r   r   r   s         r   
create_keyAuthenticatedUser.create_keyI  s     %%%,u,%#s##(S(#
 ;;L < 
 ~~%%doowPT%UUr   c                 d   [        U[        5      (       d   U5       eU[        R                  R                  L d  [        U[        5      (       d   U5       eUUS.nU R
                  R                  SSUS[        R                  0S9u  pE[        R                  R                  U R
                  XESS9$ )z
:calls: `POST /user/projects <https://docs.github.com/en/rest/reference/projects#create-a-user-project>`_
:param name: string
:param body: string
:rtype: :class:`github.Project.Project`
)rr   bodyr   z/user/projectsr  r   Tr  )
r   r   r   r  r  r   r   r   mediaTypeProjectsPreviewProject)r   rr   r/  r   r   r   s         r   create_project AuthenticatedUser.create_project[  s     $$$*d*$v**111Zc5J5JPDPJ
 ;;!v>>?	 < 
 ~~%%doowPT%UUr   c                 
   [        U[        5      (       d   U5       eU[        R                  R                  L d  [        U[        5      (       d   U5       eU[        R                  R                  L d  [        U[        5      (       d   U5       eU[        R                  R                  L d  [        U[
        5      (       d   U5       eU[        R                  R                  L d  [        U[
        5      (       d   U5       eU[        R                  R                  L d  [        U[
        5      (       d   U5       eU[        R                  R                  L d  [        U[
        5      (       d   U5       eU[        R                  R                  L d  [        U[
        5      (       d   U5       eU	[        R                  R                  L d  [        U	[
        5      (       d   U	5       eU
[        R                  R                  L d  [        U
[        5      (       d   U
5       eU[        R                  R                  L d  [        U[        5      (       d   U5       eU[        R                  R                  L d  [        U[
        5      (       d   U5       eU[        R                  R                  L d  [        U[
        5      (       d   U5       eU[        R                  R                  L d  [        U[
        5      (       d   U5       eU[        R                  R                  L d  [        U[
        5      (       d   U5       eSU0nU[        R                  R                  La  UUS'   U[        R                  R                  La  UUS'   U[        R                  R                  La  UUS'   U[        R                  R                  La  UUS'   U[        R                  R                  La  UUS'   U[        R                  R                  La  UUS'   U[        R                  R                  La  UUS'   U	[        R                  R                  La  U	US	'   U
[        R                  R                  La  U
US
'   U[        R                  R                  La  UUS'   U[        R                  R                  La  UUS'   U[        R                  R                  La  UUS'   U[        R                  R                  La  UUS'   U[        R                  R                  La  UUS'   U R                  R                  SSUS9u  nn[        R                  R                  U R                  UUSS9$ )a  
:calls: `POST /user/repos <http://docs.github.com/en/rest/reference/repos>`_
:param name: string
:param description: string
:param homepage: string
:param private: bool
:param has_issues: bool
:param has_wiki: bool
:param has_downloads: bool
:param has_projects: bool
:param auto_init: bool
:param license_template: string
:param gitignore_template: string
:param allow_squash_merge: bool
:param allow_merge_commit: bool
:param allow_rebase_merge: bool
:param delete_branch_on_merge: bool
:rtype: :class:`github.Repository.Repository`
rr   r  homepager  
has_issueshas_wikihas_downloadshas_projects	auto_initlicense_templategitignore_templateallow_squash_mergeallow_merge_commitallow_rebase_mergedelete_branch_on_merger   /user/reposr   Tr  )	r   r   r   r  r  r  r   r   r   )r   rr   r  r5  r  r6  r7  r8  r9  r:  r;  r<  r=  r>  r?  r@  r   r   r   s                      r   create_repoAuthenticatedUser.create_repop  sP   J $$$*d*$f11888J=
 =
 		 
 6..555c:
 :
 		 
 &--444
T9
 9
 		 
 V00777:<
 <
 		 
 6..555d:
 :
 		 
  3 3 : ::j4?
 ?
 		 
 v22999Z$>
 >
 		 
 F//666*t;
 ;
 		 
  6#6#6#=#==cB
 B
 		 
 "V%8%8%?%??:D
 D
 		 
 "V%8%8%?%??:D
 D
 		 
 "V%8%8%?%??:D
 D
 		 
 "V%8%8%?%??:D
 D
 		 
 &)<)<)C)CCz"DH
 H
 	"!	" 
 D
 f11888-8OM*6..555*2OJ'&--444)0OI&V00777,6OL)6..555*2OJ' 3 3 : ::/<OO,v22999.:ON+F//666+4OK(6#6#6#=#==2BO./V%8%8%?%??4FO01V%8%8%?%??4FO01V%8%8%?%??4FO01V%8%8%?%??4FO01!)<)<)C)CC8NO45;;M < 
   ++OOWdd , 
 	
r   c                 `   U[         R                  R                  L d  [        U[        5      (       d   U5       eU[         R                  R                  L d  [        U[        5      (       d   U5       eU[         R                  R                  L d  [        U[        5      (       d   U5       eU[         R                  R                  L d  [        U[        5      (       d   U5       eU[         R                  R                  L d  [        U[        5      (       d   U5       eU[         R                  R                  L d  [        U[
        5      (       d   U5       eU[         R                  R                  L d  [        U[        5      (       d   U5       e[        5       nU[         R                  R                  La  XS'   U[         R                  R                  La  X(S'   U[         R                  R                  La  X8S'   U[         R                  R                  La  XHS'   U[         R                  R                  La  XXS'   U[         R                  R                  La  XhS'   U[         R                  R                  La  XxS'   U R                  R                  SS	US
9u  pU R                  U
5        g)z
:calls: `PATCH /user <http://docs.github.com/en/rest/reference/users>`_
:param name: string
:param email: string
:param blog: string
:param company: string
:param location: string
:param hireable: bool
:param bio: string
:rtype: None
rr   r;   r"   r-   rl   r_   r   PATCHz/userr   N)
r   r  r  r   r   r  r  r   r   _useAttributes)r   rr   r;   r"   r-   rl   r_   r   r   r   r   s              r   editAuthenticatedUser.edit  sX   * v**111Zc5J5JPDPJ++222j6L6LSeSLv**111Zc5J5JPDPJ&--444
S9
 9
 		 
 6..555c:
 :
 		 
 6..555d:
 :
 		 
 f))000JsC4H4HM#MH&v**111&*F#++222',G$v**111&*F#&--444)0I&6..555*2J'6..555*2J'f))000%(E";;WO < 
 	D!r   c                     [        U[        5      (       d   U5       eU R                  R                  SSU 35      u  p#[        R
                  R                  U R                  X#SS9$ )z
:calls: `GET /authorizations/{id} <https://docs.github.com/en/developers/apps/authorizing-oauth-apps>`_
:param id: integer
:rtype: :class:`github.Authorization.Authorization`
GETz/authorizations/Tr  )r   intr   r   r   r  r   rh   r   r   s       r   get_authorization#AuthenticatedUser.get_authorization  sj     "c""&B&";;%bT*
 ##11OOWd 2 
 	
r   c                     [         R                  R                  [         R                  R                  U R                  SS5      $ )z
:calls: `GET /authorizations <https://docs.github.com/en/developers/apps/authorizing-oauth-apps>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Authorization.Authorization`
r   N)r   PaginatedListr  r   r   s    r   get_authorizations$AuthenticatedUser.get_authorizations*  s8    
 ##11  ..ARTX
 	
r   c                     U R                   R                  SS5      u  p[        SUS   R                  5       5      nU Vs/ s H!  oCR	                  UR                  5       5      PM#     sn$ s  snf )z
:calls: `GET /user/emails <http://docs.github.com/en/rest/reference/users#emails>`_
:rtype: list of namedtuples with members email, primary, verified and visibility
rJ  r   	EmailDatar   )r   r   r   keys_maker"  )r   r   r   itemdataitems        r   
get_emailsAuthenticatedUser.get_emails3  sW    
 ;;E>Rk47<<>::>?$$t{{}-$???s    (A+c                     [         R                  R                  [         R                  R                  U R                  SS5      $ )z
:calls: `GET /events <http://docs.github.com/en/rest/reference/activity#events>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Event.Event`
z/eventsN)r   rP  Eventr   r   s    r   
get_eventsAuthenticatedUser.get_events<  s4    
 ##11LLD
 	
r   c                     [         R                  R                  [         R                  R                  U R                  SS5      $ )z
:calls: `GET /user/followers <http://docs.github.com/en/rest/reference/users#followers>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser`
z/user/followersNr   rP  r   r   r   s    r   get_followersAuthenticatedUser.get_followersE  7    
 ##11&&9JD
 	
r   c                     [         R                  R                  [         R                  R                  U R                  SS5      $ )z
:calls: `GET /user/following <http://docs.github.com/en/rest/reference/users#followers>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser`
z/user/followingNr`  r   s    r   get_followingAuthenticatedUser.get_followingN  rc  r   c                    U[         R                  R                  L d&  [        U[        R                  5      (       d   U5       e[        5       nU[         R                  R                  La  UR                  S5      US'   [         R                  R                  [         R                  R                  U R                  SU5      $ )z
:calls: `GET /gists <http://docs.github.com/en/rest/reference/gists>`_
:param since: datetime.datetime format YYYY-MM-DDTHH:MM:SSZ
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Gist.Gist`
%Y-%m-%dT%H:%M:%SZsincer!  )
r   r  r  r   datetimer  strftimerP  r$  r   )r   ri  url_parameterss      r   	get_gistsAuthenticatedUser.get_gistsW  s     ++222j8$$7
 7
 		 
 ++222&+nn5I&JN7###11KKdoox
 	
r   c                 <   U[         R                  R                  L d  [        U[        5      (       d   U5       eU[         R                  R                  L d  [        U[        5      (       d   U5       eU[         R                  R                  L d  [        S U 5       5      (       d   U5       eU[         R                  R                  L d  [        U[        5      (       d   U5       eU[         R                  R                  L d  [        U[        5      (       d   U5       eU[         R                  R                  L d&  [        U[        R                  5      (       d   U5       e[        5       nU[         R                  R                  La  XS'   U[         R                  R                  La  X'S'   U[         R                  R                  La  SR                  S U 5       5      US'   U[         R                  R                  La  XGS'   U[         R                  R                  La  XWS'   U[         R                  R                  La  UR                  S	5      US
'   [         R                  R                  [         R                  R                  U R                  SU5      $ )a  
:calls: `GET /issues <http://docs.github.com/en/rest/reference/issues>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Issue.Issue`
:param filter: string
:param state: string
:param labels: list of :class:`github.Label.Label`
:param sort: string
:param direction: string
:param since: datetime.datetime
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Issue.Issue`
c              3   j   #    U  H)  n[        U[        R                  R                  5      v   M+     g 7fr   r   r   Labelr   s     r   r   /AuthenticatedUser.get_issues.<locals>.<genexpr>}  '      ;
CIJw 2 2336   13filterstate,c              3   8   #    U  H  oR                   v   M     g 7fr   rr   r   labels     r   r   rs         /Ou

   labelssort	directionrh  ri  z/issuesr   r  r  r   r   r   rj  r  joinrk  rP  Issuer   r   rv  rw  r  r  r  ri  rl  s           r   
get_issuesAuthenticatedUser.get_issuesg  s;   ( ,,333z&#7N7NVPVVN++222j6L6LSeSL,,333s ;
CI;
 8
 8
 		 
 v**111Zc5J5JPDPJF//666*s;
 ;
 		 
 ++222j8$$7
 7
 		 
 ,,333'-8$++222&+7#,,333'*xx/O/O'ON8$v**111%)6"F//666*3;'++222&+nn5I&JN7###11LLN
 	
r   c                 <   U[         R                  R                  L d  [        U[        5      (       d   U5       eU[         R                  R                  L d  [        U[        5      (       d   U5       eU[         R                  R                  L d  [        S U 5       5      (       d   U5       eU[         R                  R                  L d  [        U[        5      (       d   U5       eU[         R                  R                  L d  [        U[        5      (       d   U5       eU[         R                  R                  L d&  [        U[        R                  5      (       d   U5       e[        5       nU[         R                  R                  La  XS'   U[         R                  R                  La  X'S'   U[         R                  R                  La  SR                  S U 5       5      US'   U[         R                  R                  La  XGS'   U[         R                  R                  La  XWS'   U[         R                  R                  La  UR                  S	5      US
'   [         R                  R                  [         R                  R                  U R                  SU5      $ )a  
:calls: `GET /user/issues <http://docs.github.com/en/rest/reference/issues>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Issue.Issue`
:param filter: string
:param state: string
:param labels: list of :class:`github.Label.Label`
:param sort: string
:param direction: string
:param since: datetime.datetime
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Issue.Issue`
c              3   j   #    U  H)  n[        U[        R                  R                  5      v   M+     g 7fr   rq  r   s     r   r   4AuthenticatedUser.get_user_issues.<locals>.<genexpr>  rt  ru  rv  rw  rx  c              3   8   #    U  H  oR                   v   M     g 7fr   rz  r{  s     r   r   r    r}  r~  r  r  r  rh  ri  z/user/issuesr  r  s           r   get_user_issues!AuthenticatedUser.get_user_issues  s;   ( ,,333z&#7N7NVPVVN++222j6L6LSeSL,,333s ;
CI;
 8
 8
 		 
 v**111Zc5J5JPDPJF//666*s;
 ;
 		 
 ++222j8$$7
 7
 		 
 ,,333'-8$++222&+7#,,333'*xx/O/O'ON8$v**111%)6"F//666*3;'++222&+nn5I&JN7###11LL
 	
r   c                     [        U[        5      (       d   U5       eU R                  R                  SSU 35      u  p#[        R
                  R                  U R                  X#SS9$ )z
:calls: `GET /user/keys/{id} <http://docs.github.com/en/rest/reference/users#git-ssh-keys>`_
:param id: integer
:rtype: :class:`github.UserKey.UserKey`
rJ  z/user/keys/Tr  )r   rK  r   r   r   r+  rL  s       r   get_keyAuthenticatedUser.get_key  s^     "c""&B&";;E[QSPTCUV~~%%doowPT%UUr   c                     [         R                  R                  [         R                  R                  U R                  SS5      $ )z
:calls: `GET /user/keys <http://docs.github.com/en/rest/reference/users#git-ssh-keys>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.UserKey.UserKey`
r*  N)r   rP  r+  r   r   s    r   get_keysAuthenticatedUser.get_keys  s4    
 ##11NN""DOO\4
 	
r   c                     [        U[        5      (       d   U5       eU R                  R                  SSU 35      u  p#[        R
                  R                  U R                  X#SS9$ )z
:calls: `GET /notifications/threads/{id} <http://docs.github.com/en/rest/reference/activity#notifications>`_
:rtype: :class:`github.Notification.Notification`
rJ  z/notifications/threads/Tr  )r   r   r   r   r   NotificationrL  s       r   get_notification"AuthenticatedUser.get_notification  sj     "c""&B&";;,RD1
 ""//OOWd 0 
 	
r   c                    U[         R                  R                  L d  [        U[        5      (       d   U5       eU[         R                  R                  L d  [        U[        5      (       d   U5       eU[         R                  R                  L d&  [        U[
        R
                  5      (       d   U5       eU[         R                  R                  L d&  [        U[
        R
                  5      (       d   U5       e[        5       nU[         R                  R                  La  U(       a  SOSUS'   U[         R                  R                  La  U(       a  SOSUS'   U[         R                  R                  La  UR                  S5      US'   U[         R                  R                  La  UR                  S5      US'   [         R                  R                  [         R                  R                  U R                  SU5      $ )	a/  
:calls: `GET /notifications <http://docs.github.com/en/rest/reference/activity#notifications>`_
:param all: bool
:param participating: bool
:param since: datetime.datetime
:param before: datetime.datetime
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Notification.Notification`
truefalser   participatingrh  ri  before/notifications)r   r  r  r   r  rj  r  rk  rP  r  r   )r   r   r  ri  r  paramss         r   get_notifications#AuthenticatedUser.get_notifications  s     f))000JsD4I4IN3NI 3 3 : ::j4?
 ?
 		 
 ++222j8$$7
 7
 		 
 ,,333zH%%8
 8
 		 
 f))000&)FwF5M 3 3 : ::0=f7F?#++222#nn-ABF7O,,333%/CDF8##11,,doo?OQW
 	
r   c                    [        U[        R                  R                  5      (       d   U5       e[        R                  R                  [        R                  R                  U R
                  SU R                   SUR                   3S5      $ )z
:calls: `GET /users/{user}/events/orgs/{org} <http://docs.github.com/en/rest/reference/activity#events>`_
:param org: :class:`github.Organization.Organization`
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Event.Event`
z/users/z/events/orgs/N)r   r   OrganizationrP  r\  r   r
   )r   orgs     r   get_organization_events)AuthenticatedUser.get_organization_events  sp     #v22??@@E#E@##11LLOOdjj\syyk:	
 	
r   c                     [         R                  R                  [         R                  R                  U R                  SS5      $ )z
:calls: `GET /user/orgs <http://docs.github.com/en/rest/reference/orgs>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Organization.Organization`
z
/user/orgsN)r   rP  r  r   r   s    r   get_orgsAuthenticatedUser.get_orgs#  s6    
 ##11,,doo|T
 	
r   c                     [        U[        5      (       d   U5       eU R                  R                  SSU R                   SU 35      u  p#[
        R                  R                  U R                  X#SS9$ )z
:calls: `GET /repos/{owner}/{repo} <http://docs.github.com/en/rest/reference/repos>`_
:param name: string
:rtype: :class:`github.Repository.Repository`
rJ  r   r  Tr  )r   r   r   r   r
   r   r   )r   rr   r   r   s       r   get_repoAuthenticatedUser.get_repo,  ss     $$$*d*$;;WTZZL$0
   ++OOWd , 
 	
r   c                 "   U[         R                  R                  L d  [        U[        5      (       d   U5       eU[         R                  R                  L d  [        U[        5      (       d   U5       eU[         R                  R                  L d  [        U[        5      (       d   U5       eU[         R                  R                  L d  [        U[        5      (       d   U5       eU[         R                  R                  L d  [        U[        5      (       d   U5       e[        5       nU[         R                  R                  La  XS'   U[         R                  R                  La  X&S'   U[         R                  R                  La  X6S'   U[         R                  R                  La  XFS'   U[         R                  R                  La  XVS'   [         R                  R                  [         R                  R                  U R                  SU5      $ )a   
:calls: `GET /user/repos <http://docs.github.com/en/rest/reference/repos>`_
:param visibility: string
:param affiliation: string
:param type: string
:param sort: string
:param direction: string
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Repository.Repository`

visibilityaffiliationr   r  r  rA  )	r   r  r  r   r   r  rP  r   r   )r   r  r  r   r  r  rl  s          r   	get_reposAuthenticatedUser.get_repos:  s   " V00777:<
 <
 		 
 f11888J=
 =
 		 
 v**111Zc5J5JPDPJv**111Zc5J5JPDPJF//666*s;
 ;
 		 
 V00777+5<(f11888,7=)v**111%)6"v**111%)6"F//666*3;'##11(($//=.
 	
r   c                     [         R                  R                  [         R                  R                  U R                  SS5      $ )z
:calls: `GET /user/starred <http://docs.github.com/en/rest/reference/activity#starring>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Repository.Repository`
z/user/starredNr   rP  r   r   r   s    r   get_starredAuthenticatedUser.get_starrede  s6    
 ##11(($//?D
 	
r   c                     [         R                  R                  [         R                  R                  U R                  SS5      $ )z
:calls: `GET /gists/starred <http://docs.github.com/en/rest/reference/gists>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Gist.Gist`
z/gists/starredN)r   rP  r$  r   r   s    r   get_starred_gists#AuthenticatedUser.get_starred_gistsn  s5    
 ##11KKdoo/?
 	
r   c                     [         R                  R                  [         R                  R                  U R                  SS5      $ z
:calls: `GET /user/subscriptions <http://docs.github.com/en/rest/reference/activity#watching>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Repository.Repository`
z/user/subscriptionsNr  r   s    r   get_subscriptions#AuthenticatedUser.get_subscriptionsw  8    
 ##11(($//;PRV
 	
r   c                     [         R                  R                  [         R                  R                  U R                  SS5      $ )z
:calls: `GET /user/teams <http://docs.github.com/en/rest/reference/teams>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Team.Team`
z/user/teamsN)r   rP  Teamr   r   s    r   	get_teamsAuthenticatedUser.get_teams  s4    
 ##11KKdoo}d
 	
r   c                     [         R                  R                  [         R                  R                  U R                  SS5      $ r  r  r   s    r   get_watchedAuthenticatedUser.get_watched  r  r   c           	          [         R                  R                  [         R                  R                  U R                  SSS[        R
                  0SS9$ )z
:calls: `GET /user/installations <http://docs.github.com/en/rest/reference/apps>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Installation.Installation`
z/user/installationsNr  installations)r   	list_item)r   rP  Installationr   r   mediaTypeIntegrationPreviewr   s    r   get_installations#AuthenticatedUser.get_installations  sO    
 ##11,,OO!vAAB% 2 
 	
r   c                     [        U[        R                  R                  5      (       d   U5       eU R                  R	                  SSUR
                   35      u  p#nUS:H  $ )z
:calls: `GET /user/following/{user} <http://docs.github.com/en/rest/reference/users#followers>`_
:param following: :class:`github.NamedUser.NamedUser`
:rtype: bool
rJ  r      )r   r   r   r   requestJsonr   )r   rM   statusr   r   s        r   has_in_following"AuthenticatedUser.has_in_following  sa     )V%5%5%?%?@@K)K@ $ ; ;%i&9&9%:;!
 }r   c                     [        U[        R                  R                  5      (       d   U5       eU R                  R	                  SSUR
                   35      u  p#nUS:H  $ )z
:calls: `GET /user/starred/{owner}/{repo} <http://docs.github.com/en/rest/reference/activity#starring>`_
:param starred: :class:`github.Repository.Repository`
:rtype: bool
rJ  r   r  r   r   r   r   r  r   )r   r   r  r   r   s        r   has_in_starred AuthenticatedUser.has_in_starred  s`     '6#4#4#?#?@@I'I@ $ ; ;^G$5$5#67!
 }r   c                     [        U[        R                  R                  5      (       d   U5       eU R                  R	                  SSUR
                   35      u  p#nUS:H  $ )z
:calls: `GET /user/subscriptions/{owner}/{repo} <http://docs.github.com/en/rest/reference/activity#watching>`_
:param subscription: :class:`github.Repository.Repository`
:rtype: bool
rJ  r   r  r  )r   r   r  r   r   s        r   has_in_subscriptions&AuthenticatedUser.has_in_subscriptions  sa     ,(9(9(D(DEES|SE $ ; ;),*@*@)AB!
 }r   c                     [        U[        R                  R                  5      (       d   U5       eU R                  R	                  SSUR
                   S35      u  p#nUS:H  $ )z
:calls: `GET /repos/{owner}/{repo}/subscription <http://docs.github.com/en/rest/reference/activity#watching>`_
:param watched: :class:`github.Repository.Repository`
:rtype: bool
rJ  r   r      r  )r   r   r  r   r   s        r   has_in_watched AuthenticatedUser.has_in_watched  sb     '6#4#4#?#?@@I'I@ $ ; ;WW../}=!
 }r   c                     [        U[        R                  5      (       d   eSUR                  S5      0nU R                  R	                  SSUS9u  p4g)z
:calls: `PUT /notifications <https://docs.github.com/en/rest/reference/activity#notifications>`_
:param last_read_at: datetime
last_read_atrh  r   r  r   N)r   rj  rk  r   r   )r   r  put_parametersr   r   s        r   mark_notifications_as_read,AuthenticatedUser.mark_notifications_as_read  sX     ,(9(9::::(,*?*?@T*UV;;#> < 
r   c                     [        S U 5       5      (       d   U5       eSU0nU R                  R                  SSUS9u  p4g)zz
:calls: `DELETE /user/emails <http://docs.github.com/en/rest/reference/users#emails>`_
:param email: string
:rtype: None
c              3   B   #    U  H  n[        U[        5      v   M     g 7fr   r   r   s     r   r   7AuthenticatedUser.remove_from_emails.<locals>.<genexpr>  r   r   r   DELETEr   r   Nr   r   s        r   remove_from_emails$AuthenticatedUser.remove_from_emails  sN     B6BBBJFJB#V,;;nO < 
r   c                     [        U[        R                  R                  5      (       d   U5       eU R                  R	                  SSUR
                   35      u  p#g)z
:calls: `DELETE /user/following/{user} <http://docs.github.com/en/rest/reference/users#followers>`_
:param following: :class:`github.NamedUser.NamedUser`
:rtype: None
r  r   Nr   r   s       r   remove_from_following'AuthenticatedUser.remove_from_following  sT     )V%5%5%?%?@@K)K@;;()<)<(=>
r   c                     [        U[        R                  R                  5      (       d   U5       eU R                  R	                  SSUR
                   35      u  p#g)z
:calls: `DELETE /user/starred/{owner}/{repo} <http://docs.github.com/en/rest/reference/activity#starring>`_
:param starred: :class:`github.Repository.Repository`
:rtype: None
r  r   Nr   r   s       r   remove_from_starred%AuthenticatedUser.remove_from_starred  sS     '6#4#4#?#?@@I'I@;;w'8'8&9:
r   c                     [        U[        R                  R                  5      (       d   U5       eU R                  R	                  SSUR
                   35      u  p#g)z
:calls: `DELETE /user/subscriptions/{owner}/{repo} <http://docs.github.com/en/rest/reference/activity#watching>`_
:param subscription: :class:`github.Repository.Repository`
:rtype: None
r  r   Nr   r   s       r   remove_from_subscriptions+AuthenticatedUser.remove_from_subscriptions   sT     ,(9(9(D(DEES|SE;;,\-C-C,DE
r   c                     [        U[        R                  R                  5      (       d   U5       eU R                  R	                  SSUR
                   S35      u  p#g)z
:calls: `DELETE /repos/{owner}/{repo}/subscription <http://docs.github.com/en/rest/reference/activity#watching>`_
:param watched: :class:`github.Repository.Repository`
:rtype: None
r  r   r   Nr   r   s       r   remove_from_watched%AuthenticatedUser.remove_from_watched  sU     '6#4#4#?#?@@I'I@;; 1 12-@
r   c                 .   [        U[        R                  R                  5      (       d  [        U[        5      (       d   e[        U[        R                  R                  5      (       a  UR                  nU R
                  R                  SSU 30 S9u  p#g)z
:calls: `PATCH /user/repository_invitations/{invitation_id} <https://docs.github.com/en/rest/reference/repos/invitations#>`_
:param invitation: :class:`github.Invitation.Invitation` or int
:rtype: None
rE  z/user/repository_invitations/r   N)r   r   
InvitationrK  rh   r   r   )r   
invitationr   r   s       r   accept_invitation#AuthenticatedUser.accept_invitation  s     *f&7&7&B&BCCzH
 H
 	
 
 j&"3"3">">??#J;;4ZLA < 
r   c                     [         R                  R                  [         R                  R                  U R                  SS5      $ )z
:calls: `GET /user/repository_invitations <https://docs.github.com/en/rest/reference/repos#invitations>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Invitation.Invitation`
z/user/repository_invitationsN)r   rP  r  r   r   s    r   get_invitations!AuthenticatedUser.get_invitations'  s9    
 ##11((OO*	
 	
r   c                    [        U[        [        45      (       d   U5       e[        S U 5       5      (       d   U5       eU[        R
                  R                  L d  [        U[        5      (       d   U5       eU[        R
                  R                  L d  [        U[        5      (       d   U5       eSU0nU[        R
                  R                  La  X$S'   U[        R
                  R                  La  X4S'   U R                  R                  SSUS[        R                  0S9u  pV[        R                  R                  U R                  XVS	S
9$ )z
:calls: `POST /user/migrations <https://docs.github.com/en/rest/reference/migrations>`_
:param repos: list or tuple of str
:param lock_repositories: bool
:param exclude_attachments: bool
:rtype: :class:`github.Migration.Migration`
c              3   B   #    U  H  n[        U[        5      v   M     g 7fr   r   )r   r  s     r   r   5AuthenticatedUser.create_migration.<locals>.<genexpr>A  s     ;UT:dC((Ur   repositorieslock_repositoriesexclude_attachmentsr   /user/migrationsr  r   Tr  )r   listtupler   r   r  r  r  r   r   r   mediaTypeMigrationPreview	Migration)r   reposr  r   r   r   r   s          r   create_migration"AuthenticatedUser.create_migration3  sS    %$//66/;U;;;BUB; F$7$7$>$>>*tC
 C
 		 
 #f&9&9&@&@@JE
 E
 		 
 *51F$7$7$>$>>3D/0f&9&9&@&@@5H12;;!v??@	 < 
 ))OOWd * 
 	
r   c                     [         R                  R                  [         R                  R                  U R                  SSS[        R
                  0S9$ )z
:calls: `GET /user/migrations <https://docs.github.com/en/rest/reference/migrations>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Migration.Migration`
r  Nr  )r   )r   rP  r  r   r   r  r   s    r   get_migrations AuthenticatedUser.get_migrationsW  sL    
 ##11&&OOv??@ 2 
 	
r   c                     [        U[        5      (       d   eU R                  R                  SSU 35      u  p#[        R
                  R                  U R                  X#SS9$ )z
:calls: `GET /user/memberships/orgs/{org} <https://docs.github.com/en/rest/reference/orgs#get-an-organization-membership-for-the-authenticated-user>`_
:rtype: :class:`github.Membership.Membership`
rJ  z/user/memberships/orgs/Tr  )r   r   r   r   r   
Membership)r   r  r   r   s       r   get_organization_membership-AuthenticatedUser.get_organization_membershipd  se    
 #s####;;,SE2
   ++OOWd , 
 	
r   c                 8	   [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l	        [         R                  R                  U l
        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l         [         R                  R                  U l!        [         R                  R                  U l"        [         R                  R                  U l#        [         R                  R                  U l$        [         R                  R                  U l%        [         R                  R                  U l&        [         R                  R                  U l'        [         R                  R                  U l(        g r   ))r   r  r  r   r   r!   r'   r,   r2   r6   r:   r?   rC   rH   rL   rP   rT   rX   r^   rc   rg   rk   r   rq   ru   ry   r~   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   s    r   _initAttributes!AuthenticatedUser._initAttributesq  s   !..55''..	((//
$1188++22!..55!..55))00!..55 --44$1188 --44$1188 --44"//66,,33,,33&&--,,33))00((//
++22"("5"5"<"<$*$7$7$>$>!((//
$1188#0077#0077$*$7$7$>$>! --44!..55"//66"("5"5"<"<$*$7$7$>$>!((//
!..55''..	*0*=*=*D*D'r   c                 l	   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;   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;   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;   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;   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;   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;   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;   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 R9                  [:        R<                  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;   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;   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;   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;   a  U R                  US%   5      U l+        S&U;   a  U R%                  US&   5      U l,        g g )'Nr   r   r"   r(   r-   r3   r7   r;   r@   rD   rI   rM   rQ   rU   rY   r_   rd   rh   rl   r
   rr   rv   rz   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   )-_makeStringAttributer   r   r!   _makeIntAttributer'   r,   _makeDatetimeAttributer2   r6   r:   r?   rC   rH   rL   rP   rT   rX   _makeBoolAttributer^   rc   rg   rk   r   rq   ru   ry   r~   _makeClassAttributer   Planr   r   r   r   r   r   r   r   r   r   r   r   r   r   )r   
attributess     r   rF   AuthenticatedUser._useAttributes  s   :%#88L9QRDJ11*U2CDDIZ22:f3EFDJj("&"8"8O9T"UD
" 55j6KLDM:%#:::l;STD:%#55j6NODj 33Jw4GHDK:%#88L9QRD*$"44Z5LMDOj("&";";J<W"XD*$"44Z5LMDOj("&";";J<W"XD*$"77
;8OPDOJ& $ 9 9*]:S TD#!44Z
5KLDN#!66z*7MNDN:--j.>?DH#!66z*7MNDNj 33Jw4GHDKZ22:f3EFDJ
" 55j6KLDM*,&*&?&?./'D# !J.(,(>(>01)D% Z11&++2B2BJvDVWDJj("&"8"8O9T"UDZ'!%!7!7
>8R!SDZ'!%!7!7
>8R!SD J.(,(A(A01)D% *$"77
;8OPDO:%#66z,7OPDJ& $ 9 9*]:S TD*,&*&?&?./'D# !J.(,(>(>01)D% Z22:f3EFDJ:%#:::l;STDJ11*U2CDDI&*4.2.E.E67/D+ 5r   )&r   r   r!   r'   r,   r2   r6   r:   r?   rC   rH   rL   rP   rT   rX   r^   rc   rg   rk   r   rq   ru   ry   r~   r   r   r   r   r   r   r   r   r   r   r   r   r   r   )k__name__
__module____qualname____firstlineno____doc__r   propertyr   r   r"   r(   r-   r3   r7   r;   r@   rD   rI   rM   rQ   rU   rY   r_   rd   rh   rl   r
   rr   rv   rz   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r
  staticmethodr  r  r&  r,  r2  rB  rG  rM  rQ  rY  r]  ra  re  rm  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  rj  nowtimezoneutcr  r  r  r  r  r  r  r  r  r
  r  r  rF  __static_attributes__ r   r   r   r   @   s   > & &       ) ) # # & & & & ! ! & & % % ) ) % % ) ) % % ' ' $ $ $ $   $ $ ! !     # # - - / /     ) ) ( ( ( ( / / % % & & ' ' - - / /     & &   5 5

	
	
	

 ""))  ''$$++%%,,))00<
|    ''"//66
 
. ''..##**'
R 6<5H5H5O5O P4V$ )/(;(;(B(B V0 ''..$$++##**&&--$$++))00((//%%,,,,33!..55!..55!..55!..55%2299!t
p   ''!!((  ''##**$$++$$++&&4"l

@


 %1188 
$ ""))!!((""))  ''%%,,!!((/
f ""))!!((""))  ''%%,,!!((/
bV

  &&))00!!(("")))
V


  &&--''..  ''  ''%%,,)
V









 $,,001B1B1F1FG


	
	
	
	

"

 !--44"//66	"
H

&EPXr   r   )rj  collectionsr   github.Authorizationr   github.Eventgithub.Gistgithub.GithubObjectgithub.Invitationgithub.Issuegithub.Membershipgithub.Migrationgithub.NamedUsergithub.Notificationgithub.Organizationgithub.PaginatedListgithub.Plangithub.Repositorygithub.UserKey r   r  CompletableGithubObjectr   r'  r   r   <module>r:     sX   T  "                q++CC qr   