
                             d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl	m
Z
 ej                   G d d	ej                               Zy
)z,The gcloud app migrate gen1-to-gen2 command.    )absolute_import)division)unicode_literals)appengine_api_client)base)migration_utilc                   &    e Zd ZdZed        Zd Zy)
Gen1ToGen2z^Migrate the first-generation App Engine code to be compatible with second-generation runtimes.c                 R    | j                  dd       | j                  ddd       y )Nz	--appyamlzEYAML file for the first-generation App Engine version to be migrated.)helpz--output-dirTz[The directory where the migrated code for the second-generation application will be stored.)requiredr   )add_argument)parsers    'lib/surface/app/migrate/gen1_to_gen2.pyArgszGen1ToGen2.Args   s=    
   +	      c                     t        j                  | j                               }t        j                  ||      j                          y )N)r   GetApiClientForTrackReleaseTrackr   Gen1toGen2MigrationStartMigration)selfargs
api_clients      r   RunzGen1ToGen2.Run1   s4    %::4;L;L;NOJ&&z48GGIr   N)__name__
__module____qualname____doc__staticmethodr   r    r   r   r
   r
      s    f "Jr   r
   N)r   
__future__r   r   r   googlecloudsdk.api_lib.appr   googlecloudsdk.callioper   googlecloudsdk.command_lib.appr   DefaultUniverseOnlyCommandr
   r!   r   r   <module>r(      sD     3 &  ' ; ( 9 J J Jr   