
                             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	0r " S
 S\R                  5      r\\l        g)z7The 'gcloud firebase test android models list' command.    )absolute_import)division)unicode_literals)util)base)logEXAMPLESz
    To list all models which are available for testing, run:

      $ {command}

    To list all models made by Samsung, run:

      $ {command} --filter=Samsung

    To list all virtual device models, run:

      $ {command} --filter=virtual
    c                   F   ^  \ rS rSrSr\S 5       rS rSU 4S jjrSr	U =r
$ )List,   z.List all Android models available for testing.c                 x    U R                   R                  S5        [        R                  R	                  U 5        g)zMethod called by Calliope to register flags for this command.

Args:
  parser: An argparse parser used to add arguments that follow this
      command in the CLI. Positional arguments are allowed.
a  
        table[box](
          id:label=MODEL_ID,
          manufacturer:label=MAKE,
          name:label=MODEL_NAME,
          form.color(blue=VIRTUAL,yellow=PHYSICAL,green=EMULATOR):label=FORM,
          format("{0:4} x {1}", screenY, screenX):label=RESOLUTION,
          supportedVersionIds.list(undefined="none"):label=OS_VERSION_IDS,
          tags.join(sep=", ").color(green=default,red=deprecated,yellow=preview)
        )
    N)display_info	AddFormatr   URI_FLAGRemoveFromParser)parsers    0lib/surface/firebase/test/android/models/list.pyArgs	List.Args/   s1     !! 
# 
	 	MM""6*    c                     [         R                  " U R                  5      nUR                   Vs/ s H  o3R                  (       d  M  UPM     nn[         R
                  " US5      U l        U$ s  snf )ad  Run the 'gcloud firebase test android models list' command.

Args:
  args: an argparse namespace. All the arguments that were provided to this
    command invocation (i.e. group and command arguments combined).

Returns:
  The list of device models we want to have printed later. Obsolete models
  with no currently supported OS versions are filtered out.
android)r   GetAndroidCatalogcontextmodelssupportedVersionIdsGetDeprecatedTagWarning_epilog)selfargscatalogmodelfiltered_modelss        r   RunList.RunD   s_     $$T\\2G">>)%-F-F>   //KDLs   A-A-c                    > [         [        U ]  U5        U R                  (       a!  [        R
                  " U R                  5        g g )N)superr   Epilogr   r   warning)r   resources_were_displayed	__class__s     r   r(   List.EpilogW   s/    	$56||	kk$,, r   )r   )T)__name__
__module____qualname____firstlineno____doc__staticmethodr   r$   r(   __static_attributes____classcell__)r+   s   @r   r   r   ,   s'    6+ +(&   r   r   N)r1   
__future__r   r   r   $googlecloudsdk.api_lib.firebase.testr   googlecloudsdk.callioper   googlecloudsdk.corer   DETAILED_HELPListCommandr   detailed_help r   r   <module>r=      sJ     > &  ' 5 ( #  "/ 4 / d # r   