Ë
    ×—Äj1  ã                  óº   — d dl mZ d dlZd dlmZ d dlmZmZ d dlZ	d dl
Z	d dlZ	d dlZ	d dlZ	d dl	mZ d dlmZmZmZ erd dl
mZ d dlmZ d d	lmZ  G d
„ de«      Zy)é    )ÚannotationsN)Údatetime)ÚTYPE_CHECKINGÚAny)ÚConsts)Ú	AttributeÚCompletableGithubObjectÚNotSet)Ú	NamedUser)ÚOrganization)Ú
Repositoryc                  óŒ  — e Zd ZdZdd„Zdd„Zedd„«       Zedd„«       Zedd„«       Z	ed d„«       Z
ed d„«       Zed d	„«       Zed d
„«       Zed d„«       Zedd„«       Zed!d„«       Zed d„«       Zedd„«       Zed d„«       Zed"d„«       Zed#d„«       Zedd„«       Zedd„«       Zedd„«       Zdd„Zdd„Zdd„Zd$d„Zd%d„Zy)&Ú	Migrationz×
    This class represents Migrations.

    The reference can be found here
    https://docs.github.com/en/rest/reference/migrations

    The OpenAPI schema can be found at

    - /components/schemas/migration

    c                ó�  — t         | _        t         | _        t         | _        t         | _        t         | _        t         | _        t         | _        t         | _        t         | _	        t         | _
        t         | _        t         | _        t         | _        t         | _        t         | _        t         | _        t         | _        t         | _        y ©N)r
   Ú_archive_urlÚ_created_atÚ_excludeÚ_exclude_attachmentsÚ_exclude_git_dataÚ_exclude_metadataÚ_exclude_owner_projectsÚ_exclude_releasesÚ_guidÚ_idÚ_lock_repositoriesÚ_node_idÚ_org_metadata_onlyÚ_ownerÚ_repositoriesÚ_stateÚ_updated_atÚ_url©Úselfs    úUC:\Users\pivot\Documents\cueki\casual-preloader\Lib\site-packages\github/Migration.pyÚ_initAttributeszMigration._initAttributesQ   s‹   € Ü,2ˆÔÜ06ˆÔÜ.4ˆŒÜ5;ˆÔ!Ü28ˆÔÜ28ˆÔÜ8>ˆÔ$Ü28ˆÔÜ%+ˆŒ
Ü#)ˆŒÜ39ˆÔÜ(.ˆŒÜ39ˆÔÜ;AˆŒÜ:@ˆÔÜ&,ˆŒÜ06ˆÔÜ$*ˆ�	ó    c                óz   — | j                  | j                  j                  | j                  j                  dœ«      S )N)ÚstateÚurl)Úget__repr__r!   Úvaluer#   r$   s    r&   Ú__repr__zMigration.__repr__e   s*   € Ø×Ñ¨$¯+©+×*;Ñ*;ÀDÇIÁIÇOÁOÑ TÓUÐUr(   c                ód   — | j                  | j                  «       | j                  j                  S r   )Ú_completeIfNotSetr   r-   r$   s    r&   Úarchive_urlzMigration.archive_urlh   s(   € à×Ñ˜t×0Ñ0Ô1Ø× Ñ ×&Ñ&Ð&r(   c                ód   — | j                  | j                  «       | j                  j                  S r   )r0   r   r-   r$   s    r&   Ú
created_atzMigration.created_atm   ó(   € à×Ñ˜t×/Ñ/Ô0Ø×Ñ×%Ñ%Ð%r(   c                ód   — | j                  | j                  «       | j                  j                  S r   )r0   r   r-   r$   s    r&   ÚexcludezMigration.excluder   ó$   € à×Ñ˜tŸ}™}Ô-Ø�}‰}×"Ñ"Ð"r(   c                ód   — | j                  | j                  «       | j                  j                  S r   )r0   r   r-   r$   s    r&   Úexclude_attachmentszMigration.exclude_attachmentsw   s(   € à×Ñ˜t×8Ñ8Ô9Ø×(Ñ(×.Ñ.Ð.r(   c                ód   — | j                  | j                  «       | j                  j                  S r   )r0   r   r-   r$   s    r&   Úexclude_git_datazMigration.exclude_git_data|   ó(   € à×Ñ˜t×5Ñ5Ô6Ø×%Ñ%×+Ñ+Ð+r(   c                ód   — | j                  | j                  «       | j                  j                  S r   )r0   r   r-   r$   s    r&   Úexclude_metadatazMigration.exclude_metadata�   r<   r(   c                ód   — | j                  | j                  «       | j                  j                  S r   )r0   r   r-   r$   s    r&   Úexclude_owner_projectsz Migration.exclude_owner_projects†   s(   € à×Ñ˜t×;Ñ;Ô<Ø×+Ñ+×1Ñ1Ð1r(   c                ód   — | j                  | j                  «       | j                  j                  S r   )r0   r   r-   r$   s    r&   Úexclude_releaseszMigration.exclude_releases‹   r<   r(   c                ód   — | j                  | j                  «       | j                  j                  S r   )r0   r   r-   r$   s    r&   ÚguidzMigration.guid�   s$   € à×Ñ˜tŸz™zÔ*Ø�z‰z×ÑÐr(   c                ó.   — | j                   j                  S r   )r   r-   r$   s    r&   ÚidzMigration.id•   s   € à�x‰x�~‰~Ðr(   c                ód   — | j                  | j                  «       | j                  j                  S r   )r0   r    r   r-   r$   s    r&   Úlock_repositorieszMigration.lock_repositories™   s(   € à×Ñ˜t×1Ñ1Ô2Ø×&Ñ&×,Ñ,Ð,r(   c                ód   — | j                  | j                  «       | j                  j                  S r   )r0   r   r-   r$   s    r&   Únode_idzMigration.node_idž   r7   r(   c                ód   — | j                  | j                  «       | j                  j                  S r   )r0   r   r-   r$   s    r&   Úorg_metadata_onlyzMigration.org_metadata_only£   s(   € à×Ñ˜t×6Ñ6Ô7Ø×&Ñ&×,Ñ,Ð,r(   c                ód   — | j                  | j                  «       | j                  j                  S r   )r0   r   r-   r$   s    r&   ÚownerzMigration.owner¨   s$   € à×Ñ˜tŸ{™{Ô+Ø�{‰{× Ñ Ð r(   c                ód   — | j                  | j                  «       | j                  j                  S r   )r0   r    r-   r$   s    r&   ÚrepositorieszMigration.repositories­   s(   € à×Ñ˜t×1Ñ1Ô2Ø×!Ñ!×'Ñ'Ð'r(   c                ód   — | j                  | j                  «       | j                  j                  S r   )r0   r   r!   r-   r$   s    r&   r*   zMigration.state²   s$   € à×Ñ˜tŸz™zÔ*Ø�{‰{× Ñ Ð r(   c                ód   — | j                  | j                  «       | j                  j                  S r   )r0   r"   r-   r$   s    r&   Ú
updated_atzMigration.updated_at·   r4   r(   c                ód   — | j                  | j                  «       | j                  j                  S r   )r0   r#   r-   r$   s    r&   r+   zMigration.url¼   s"   € à×Ñ˜tŸy™yÔ)Ø�y‰y�‰Ðr(   c                ó²   — | j                   j                  d| j                  dt        j                  i¬«      \  }}| j                  |«       | j                  S )zw
        :calls: `GET /user/migrations/{migration_id} <https://docs.github.com/en/rest/reference/migrations>`_
        ÚGETÚAccept©Úheaders)Ú
_requesterÚrequestJsonAndCheckr+   r   ÚmediaTypeMigrationPreviewÚ_useAttributesr*   ©r%   rY   Údatas      r&   Ú
get_statuszMigration.get_statusÁ   sQ   € ð Ÿ™×;Ñ;Ø�4—8‘8 h´×0PÑ0PÐ%Qð <ó 
‰ˆ�ð 	×Ñ˜DÔ!Ø�z‰zÐr(   c                óˆ   — | j                   j                  d| j                  › d�dt        j                  i¬«      \  }}|d   S )z
        :calls: `GET /user/migrations/{migration_id}/archive <https://docs.github.com/en/rest/reference/migrations>`_
        rV   ú/archiverW   rX   r_   ©rZ   r[   r+   r   r\   r^   s      r&   Úget_archive_urlzMigration.get_archive_urlË   sL   € ð Ÿ™×;Ñ;ØØ�x‰xˆj˜Ð!Øœv×?Ñ?Ð@ð <ó 
‰ˆ�ð
 �F‰|Ðr(   c                ó€   — | j                   j                  d| j                  › d�dt        j                  i¬«      \  }}y)z‚
        :calls: `DELETE /user/migrations/{migration_id}/archive <https://docs.github.com/en/rest/reference/migrations>`_
        ÚDELETErb   rW   rX   Nrc   r^   s      r&   ÚdeletezMigration.deleteÖ   s@   € ð Ÿ™×;Ñ;ØØ�x‰xˆj˜Ð!Øœv×?Ñ?Ð@ð <ó 
‰ˆ‘r(   c                óò   — t        |t        «      sJ |«       ‚t        j                  j	                  |«      }| j
                  j                  d| j                  › d|› d�dt        j                  i¬«      \  }}y)z‘
        :calls: `DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock <https://docs.github.com/en/rest/reference/migrations>`_
        rf   z/repos/z/lockrW   rX   N)
Ú
isinstanceÚstrÚurllibÚparseÚquoterZ   r[   r+   r   r\   )r%   Ú	repo_namerY   r_   s       r&   Úunlock_repozMigration.unlock_repoà   so   € ô ˜)¤SÔ)Ð4¨9Ó4Ð)Ü—L‘L×&Ñ& yÓ1ˆ	ØŸ™×;Ñ;ØØ�x‰xˆj˜ 	˜{¨%Ð0Øœv×?Ñ?Ð@ð <ó 
‰ˆ‘r(   c                ó¼  — d|v r| j                  |d   «      | _        d|v r| j                  |d   «      | _        d|v r| j	                  |d   «      | _        d|v r| j                  |d   «      | _        d|v r| j                  |d   «      | _        d|v r| j                  |d   «      | _	        d|v r| j                  |d   «      | _
        d|v r| j                  |d   «      | _        d	|v r| j                  |d	   «      | _        d
|v r| j                  |d
   «      | _        d|v r| j                  |d   «      | _        d|v r| j                  |d   «      | _        d|v r| j                  |d   «      | _        d|v rQ| j%                  dd|d   t&        j(                  j(                  dft&        j*                  j*                  df«      | _        d|v r2| j/                  t&        j0                  j0                  |d   «      | _        d|v r| j                  |d   «      | _        d|v r| j                  |d   «      | _        d|v r| j                  |d   «      | _        y y )Nr1   r3   r6   r9   r;   r>   r@   rB   rD   rF   rH   rJ   rL   rN   ÚtypeÚUserr   rP   r*   rS   r+   )Ú_makeStringAttributer   Ú_makeDatetimeAttributer   Ú_makeListOfStringsAttributer   Ú_makeBoolAttributer   r   r   r   r   r   Ú_makeIntAttributer   r   r   r   Ú#_makeUnionClassAttributeFromTypeKeyÚgithubr   r   r   Ú_makeListOfClassesAttributer   r    r!   r"   r#   )r%   Ú
attributess     r&   r]   zMigration._useAttributesì   s�  € Ø˜JÑ&Ø $× 9Ñ 9¸*À]Ñ:SÓ TˆDÔØ˜:Ñ%Ø#×:Ñ:¸:ÀlÑ;SÓTˆDÔØ˜
Ñ"Ø ×<Ñ<¸ZÈ	Ñ=RÓSˆDŒMØ  JÑ.Ø(,×(?Ñ(?À
ÐK`Ñ@aÓ(bˆDÔ%Ø Ñ+Ø%)×%<Ñ%<¸ZÐHZÑ=[Ó%\ˆDÔ"Ø Ñ+Ø%)×%<Ñ%<¸ZÐHZÑ=[Ó%\ˆDÔ"Ø# zÑ1Ø+/×+BÑ+BÀ:ÐNfÑCgÓ+hˆDÔ(Ø Ñ+Ø%)×%<Ñ%<¸ZÐHZÑ=[Ó%\ˆDÔ"Ø�ZÑØ×2Ñ2°:¸fÑ3EÓFˆDŒJØ�:ÑØ×-Ñ-¨j¸Ñ.>Ó?ˆDŒHØ *Ñ,Ø&*×&=Ñ&=¸jÐI\Ñ>]Ó&^ˆDÔ#Ø˜
Ñ"Ø ×5Ñ5°jÀÑ6KÓLˆDŒMØ *Ñ,Ø&*×&=Ñ&=¸jÐI\Ñ>]Ó&^ˆDÔ#Ø�jÑ Ø×BÑBØØØ˜7Ñ#Ü×!Ñ!×+Ñ+¨VÐ4Ü×$Ñ$×1Ñ1°>ÐBóˆDŒKð ˜ZÑ'Ø!%×!AÑ!AÜ×!Ñ!×,Ñ,¨j¸Ñ.Hó"ˆDÔð �jÑ Ø×3Ñ3°J¸wÑ4GÓHˆDŒKØ˜:Ñ%Ø#×:Ñ:¸:ÀlÑ;SÓTˆDÔØ�JÑØ×1Ñ1°*¸UÑ2CÓDˆD�Ið r(   N)ÚreturnÚNone)r|   rj   )r|   r   )r|   z	list[str])r|   Úbool)r|   Úint)r|   zNamedUser | Organization)r|   zlist[Repository])rn   rj   r|   r}   )r{   zdict[str, Any]r|   r}   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r'   r.   Úpropertyr1   r3   r6   r9   r;   r>   r@   rB   rD   rF   rH   rJ   rL   rN   rP   r*   rS   r+   r`   rd   rg   ro   r]   © r(   r&   r   r   D   s”  „ ñ
ó+ó(Vð ò'ó ð'ð ò&ó ð&ð ò#ó ð#ð ò/ó ð/ð ò,ó ð,ð ò,ó ð,ð ò2ó ð2ð ò,ó ð,ð ò ó ð ð òó ðð ò-ó ð-ð ò#ó ð#ð ò-ó ð-ð ò!ó ð!ð ò(ó ð(ð ò!ó ð!ð ò&ó ð&ð òó ðóó	ó
ó

ô,Er(   r   )Ú
__future__r   Úurllib.parserk   r   Útypingr   r   Úgithub.GithubObjectry   Úgithub.NamedUserÚgithub.OrganizationÚgithub.PaginatedListÚgithub.Repositoryr   r   r	   r
   r   r   r   r   r…   r(   r&   Ú<module>rŽ      sI   ðõ` #ã Ý ß %ã Û Û Û Û Ý ß JÑ JáÝ*Ý0Ý,ôTEÐ'õ TEr(   