
    A	                     z    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	  G d d	e	j                        Zy
)z=The 'gcloud firebase test network-profiles describe' command.    )absolute_import)division)unicode_literals)
exceptions)util)basec                   0    e Zd ZdZdddZed        Zd Zy)DescribezDescribe a network profile.zqDescribe a network profile.

Run `$ {parent_command} --help` for descriptions of the network profile
parameters.
zTo describe a network profile, run:

  {command} GSM

To describe a network profiles in JSON format, run:

  {command} GSM --format=json
)DESCRIPTIONEXAMPLESc                 *    | 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.
    
profile_idzEThe network profile to describe, found using $ {parent_command} list.)helpN)add_argument)parsers    6lib/surface/firebase/test/network_profiles/describe.pyArgszDescribe.Args-   s     O  Q    c                     t        j                  | j                        }|j                  D ]  }|j                  |j
                  k(  s|c S  t        j                  |j
                        )a>  Run the 'gcloud firebase test network-profiles 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.NetworkConfiguration object to describe.
    )r   GetNetworkProfileCatalogcontextconfigurationsidr   r   NetworkProfileNotFoundError)selfargscatalogprofiles       r   RunzDescribe.Run;   sT     ++DLL9G))	t	& * 
0
0
AAr   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r    r   r   r
   r
      s2    #
-  Q QBr   r
   N)r#   
__future__r   r   r   $googlecloudsdk.api_lib.firebase.testr   r   googlecloudsdk.callioper   DescribeCommandr
   r&   r   r   <module>r+      s1    D &  ' ; 5 (/Bt## /Br   