
    #
                     z    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	\R                  5      rg
)z3The 'gcloud firebase test ios models list' command.    )absolute_import)division)unicode_literals)util)base)logc                   P   ^  \ rS rSrSrSSS.r\S 5       rS rS	U 4S jjr	Sr
U =r$ )
List   z*List all iOS models available for testing.zA
To list all iOS models available for testing, run:

  {command}
)DESCRIPTIONEXAMPLESc                 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.
z
        table[box](
          id:label=MODEL_ID,
          name,
          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    ,lib/surface/firebase/test/ios/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 )a`  Run the 'gcloud firebase test ios 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.
ios)r   GetIosCatalogcontextmodelssupportedVersionIdsGetDeprecatedTagWarning_epilog)selfargscatalogmodelfiltered_modelss        r   RunList.Run9   s_       .G">>)%-F-F>   //GDL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.EpilogL   s/    	$56||	kk$,, r   )r   )T)__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r%   r)   __static_attributes____classcell__)r,   s   @r   r
   r
      s;    2 B- + +"&   r   r
   N)r2   
__future__r   r   r   $googlecloudsdk.api_lib.firebase.testr   googlecloudsdk.callioper   googlecloudsdk.corer   ListCommandr
    r   r   <module>r=      s.     : &  ' 5 ( #5 4 5 r   