
    #Ii                      f    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   )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 rS rS rS rS rS rSrg)	Migration(   zx
This class represents Migrations. The reference can be found here https://docs.github.com/en/rest/reference/migrations
c                 z    U R                  U R                  R                  U R                  R                  S.5      $ )N)stateurl)get__repr___statevalue_urlselfs    6/venv/lib/python3.13/site-packages/github/Migration.py__repr__Migration.__repr__-   s*    $++*;*;DIIOO TUU    c                 .    U R                   R                  $ )z
:type: int
)_idr   r   s    r   idMigration.id0   s    
 xx~~r   c                 d    U R                  U R                  5        U R                  R                  $ )z,
:type: :class:`github.NamedUser.NamedUser`
)_completeIfNotSet_ownerr   r   s    r   ownerMigration.owner7   s&    
 	t{{+{{   r   c                 d    U R                  U R                  5        U R                  R                  $ z
:type: str
)r   _guidr   r   s    r   guidMigration.guid?   s&    
 	tzz*zzr   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   r    r   r   r   s    r   r	   Migration.stateG   s&    
 	tzz*{{   r   c                 d    U R                  U R                  5        U R                  R                  $ z
:type: bool
)r   _repositories_lock_repositoriesr   r   s    r   lock_repositoriesMigration.lock_repositoriesO   s*    
 	t112&&,,,r   c                 d    U R                  U R                  5        U R                  R                  $ r&   )r   _exclude_attachmentsr   r   s    r   exclude_attachmentsMigration.exclude_attachmentsW   s*    
 	t889((...r   c                 d    U R                  U R                  5        U R                  R                  $ )z]
:type: :class:`github.PaginatedList.PaginatedList` of :class:`github.Repository.Repository`
)r   r'   r   r   s    r   repositoriesMigration.repositories_   s*    
 	t112!!'''r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   r   r   r   s    r   r
   Migration.urlg   s$    
 	tyy)yyr   c                 d    U R                  U R                  5        U R                  R                  $ z'
:type: datetime.datetime
:rtype: None
)r   _created_atr   r   s    r   
created_atMigration.created_ato   *     	t//0%%%r   c                 d    U R                  U R                  5        U R                  R                  $ r5   )r   _updated_atr   r   s    r   
updated_atMigration.updated_atx   r9   r   c                     U R                   R                  SU R                  S[        R                  0S9u  pU R                  U5        U R                  $ )zs
:calls: `GET /user/migrations/{migration_id} <https://docs.github.com/en/rest/reference/migrations>`_
:rtype: str
GETAcceptheaders)
_requesterrequestJsonAndCheckr
   r   mediaTypeMigrationPreview_useAttributesr	   r   rB   datas      r   
get_statusMigration.get_status   sO    
 ;;488h0P0P%Q < 
 	D!zzr   c                     U R                   R                  SU R                   S3S[        R                  0S9u  pUS   $ )z{
:calls: `GET /user/migrations/{migration_id}/archive <https://docs.github.com/en/rest/reference/migrations>`_
:rtype: str
r?   /archiver@   rA   rH   rC   rD   r
   r   rE   rG   s      r   get_archive_urlMigration.get_archive_url   sJ    
 ;;xxj!v??@ < 

 F|r   c                 x    U R                   R                  SU R                   S3S[        R                  0S9u  pg)zr
:calls: `DELETE /user/migrations/{migration_id}/archive <https://docs.github.com/en/rest/reference/migrations>`_
DELETErL   r@   rA   NrM   rG   s      r   deleteMigration.delete   s@     ;;xxj!v??@ < 
r   c                     [        U[        5      (       d   U5       eU R                  R                  SU R                   SU S3S[
        R                  0S9u  p#g)z
:calls: `DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock <https://docs.github.com/en/rest/reference/migrations>`_
:param repo_name: str
:rtype: None
rQ   z/repos/z/lockr@   rA   N)
isinstancestrrC   rD   r
   r   rE   )r   	repo_namerB   rH   s       r   unlock_repoMigration.unlock_repo   s^     )S))494);;xxj	{%0v??@ < 
r   c                 p   [         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 )N)githubGithubObjectNotSetr   r   r    r   r(   r,   r'   r   r6   r;   r   s    r   _initAttributesMigration._initAttributes   s    &&--))00((//
))00"("5"5"<"<$*$7$7$>$>!#0077''..	!..55!..55r   c                    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        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        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)   r-   r0   r
   r7   r<   )_makeIntAttributer   _makeClassAttributer[   	NamedUserr   _makeStringAttributer    r   _makeBoolAttributer(   r,   _makeListOfClassesAttribute
Repositoryr'   r   _makeDatetimeAttributer6   r;   )r   
attributess     r   rF   Migration._useAttributes   st   :--j.>?DHj 22  **Jw,?DK Z22:f3EFDJj 33Jw4GHDK*,&*&=&=./'D# !J.(,(?(?01)D% Z'!%!A!A!!,,j.H"D J11*U2CDDI:%#:::l;STD:%#:::l;STD &r   )
r6   r,   r    r   r(   r   r'   r   r;   r   N)__name__
__module____qualname____firstlineno____doc__r   propertyr   r   r!   r	   r)   r-   r0   r
   r7   r<   rI   rN   rR   rX   r^   rF   __static_attributes__ r   r   r   r   (   s    V   ! !     ! ! - - / / ( (   & & & &	



6Ur   r   )	github.GithubObjectr[   github.NamedUsergithub.PaginatedList r   r\   CompletableGithubObjectr   rr   r   r   <module>rx      s0   B    oU##;; oUr   