
    |                         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 models describe' command.    )absolute_import)division)unicode_literals)
exceptions)util)baseEXAMPLESze
      To see the attributes of the android model 'my-model', run:

        $ {command} my-model
    c                   &    e Zd ZdZed        Zd Zy)DescribezDescribe an Android model.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.
    model_idzAID of the model to describe, found using $ {parent_command} list.)helpN)add_argument)parsers    4lib/surface/firebase/test/android/models/describe.pyArgszDescribe.Args&   s     #  $    c                     t        j                  | j                        }|j                  D ]  }|j                  |j
                  k(  s|c S  t        j                  |j
                        )a/  Run the 'gcloud firebase test android models 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 Android model we want to show a description of.
    )r   GetAndroidCatalogcontextmodelsidr   r   ModelNotFoundError)selfargscatalogmodels       r   RunzDescribe.Run4   sR     $$T\\2G	T]]	"   
'
'
66r   N)__name__
__module____qualname____doc__staticmethodr   r    r   r   r   r   #   s    "$ $7r   r   N)r"   
__future__r   r   r   $googlecloudsdk.api_lib.firebase.testr   r   googlecloudsdk.callioper   DETAILED_HELPDescribeCommandr   detailed_helpr$   r   r   <module>r+      sK     B &  ' ; 5 (  7t## 7D ' r   