
    3	                         S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSK	J
r
  SSKJr  S	S
S.r\
R                  " \
R                  R                   5       " S S\
R"                  5      5       r\\l        g)z&'notebooks instances migrate' command.    )absolute_import)division)unicode_literals)	instances)util)base)flagsz7
        Request for migrating notebook instances.
    a"  
    To migrate an instance, run:

        $ {command} example-instance --location=us-central1

    To migrate an instance and reuse the post-startup script, run:

        $ {command} example-instance --location=us-central1 --post-startup-script-option=POST_STARTUP_SCRIPT_OPTION_RERUN
    )DESCRIPTIONEXAMPLESc                   .    \ rS rSrSr\S 5       rS rSrg)Migrate,   z Request for migrating instances.c                 x    [         R                  " U R                  5       5      n[        R                  " X!5        g)z Register flags for this command.N)r   ApiVersionSelectorReleaseTrackr	   AddMigrateInstanceFlags)clsparserapi_versions      *lib/surface/notebooks/instances/migrate.pyArgsMigrate.Args0   s+     ))#*:*:*<=K	!!+6    c                 <   U R                  5       n[        R                  " U5      n[        R                  " U5      nUR                  nUR                  [        R                  " X5      5      n[        R                  " UUUU[        R                  R                  S9$ )z9This is what gets called when the user runs this command.)operation_type)r   r   	GetClientGetMessagesprojects_locations_instancesr   instance_utilCreateInstanceMigrateRequest	HandleLROOperationTypeMIGRATE)selfargsrelease_trackclientmessagesinstance_service	operations          r   RunMigrate.Run6   s    %%'M^^M*F.H:: ((224BDI""$22::< <r    N)	__name__
__module____qualname____firstlineno____doc__classmethodr   r+   __static_attributes__r-   r   r   r   r   ,   s    (7 7
<r   r   N)r2   
__future__r   r   r    googlecloudsdk.api_lib.notebooksr   r   r   googlecloudsdk.callioper   $googlecloudsdk.command_lib.notebooksr	   DETAILED_HELPReleaseTracksr   GACommandr   detailed_helpr-   r   r   <module>r>      sp    - &  ' G 1 ( 6		$ D%%(()<dll < *<2 & r   