
    	                         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	 dd	iZ
 G d
 de	j                        Ze
e_        y)z=The 'gcloud firebase test android versions describe' command.    )absolute_import)division)unicode_literals)
exceptions)util)baseEXAMPLESzf
    To see attributes of the Android OS version 'my-version', run:

      $ {command} my-version
    c                   0    e Zd ZdZdddZed        Zd Zy)DescribezDescribe an Android OS version.zTo describe an Android OS version available for testing,
run:

  {command} Q

To describe an Android OS version available for testing in JSON format,
run:

  {command} Q --format=json
)DESCRIPTIONr	   c                 *    | j                  dd       y)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.
    
version_idz@The version ID to describe, found using $ {parent_command} list.)helpN)add_argument)parsers    6lib/surface/firebase/test/android/versions/describe.pyArgszDescribe.Args5   s     O  Q    c                     t        j                  | j                        }|j                  D ]  }|j                  |j
                  k(  s|c S  t        j                  |j
                        )a8  Run the 'gcloud firebase test android versions describe' 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 testing_v1_messages.AndroidVersion object to describe.
    )r   GetAndroidCatalogcontextversionsidr   r   VersionNotFoundError)selfargscatalogversions       r   RunzDescribe.RunB   sT     $$T\\2G##	t	& $ 
)
)$//
::r   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r    r   r   r   r   $   s1    ' 7	- 
Q 
Q;r   r   N)r#   
__future__r   r   r   $googlecloudsdk.api_lib.firebase.testr   r   googlecloudsdk.callioper   DETAILED_HELPDescribeCommandr   r$   r&   r   r   <module>r,      sK     D &  ' ; 5 (  ,;t## ,;^ ' r   