
    
                         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	5      r
\	R                  \	R                  " \	R                  R                  5       " S
 S\	R                  5      5       5       rg)z5Implementation of migration job objects list command.    )absolute_import)division)unicode_literals)objects)resource_args)basec                       \ rS rSrSrS rSrg)_MigrationJobObjectInfo   z>Container for migration job object data using in list display.c                    UR                   U l         UR                  U l        UR                  b  UR                  OS U l        UR                  U l        UR
                  U l        UR                  U l        UR                  U l	        g )N)
namesourceObjectsource_objecterrorstatephase
createTimecreate_time
updateTimeupdate_time)selfmessages     .lib/surface/database_migration/objects/list.py__init__ _MigrationJobObjectInfo.__init__   sc    DI --D")--";DJDJDJ))D))D    )r   r   r   r   r   r   r   N)__name__
__module____qualname____firstlineno____doc__r   __static_attributes__ r   r   r
   r
      s
    F*r   r
   c                   .    \ rS rSrSr\S 5       rS rSrg)List'   a|  List a DMS migration job objects.

List migration job objects.

## API REFERENCE
  This command uses the database-migration/v1 API. The full documentation
  for this API can be found at: https://cloud.google.com/database-migration/

## EXAMPLES
  To list all objects in a migration job and location 'us-central1',
  run:

      $ {command} --migration-job=mj --region=us-central1
c                 f    [         R                  " USSS9  UR                  R                  S5        g)z Register flags for this command.zto list migration job objectsF)
positionalz
            table(
              source_object,
              state:label=STATE,
              phase:label=PHASE,
              error:label=ERROR
            )
          N)r   AddOnlyMigrationJobResourceArgsdisplay_info	AddFormat)clsparsers     r   Args	List.Args9   s5     11/E !! # r   c                     [         R                  " U R                  5       5      nUR                  R                  R                  5       nUR                  X15      nU Vs/ s H  n[        U5      PM     sn$ s  snf )zRuns the command.

Args:
  args: All the arguments that were provided to this command invocation.

Returns:
  An iterator over objects containing migration job objects data.
)r   ObjectsClientReleaseTrackCONCEPTSmigration_jobParser%   r
   )r   argsobjects_clientmigration_job_refobjos         r   RunList.RunH   se     **4+<+<+>?N3399;


/
6C0341#A&444s   A6r#   N)	r   r   r   r    r!   classmethodr.   r;   r"   r#   r   r   r%   r%   '   s       5r   r%   N)r!   
__future__r   r   r   )googlecloudsdk.api_lib.database_migrationr   r   googlecloudsdk.callioper   r
   DefaultUniverseOnlyReleaseTracksr2   GAListCommandr%   r#   r   r   <module>rE      sl    < &  ' = C (
* 
* D%%((),54 ,5 * ,5r   