
    	                     n    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  G d dej                        Z
y	)
z9The 'gcloud firebase test network-profiles list' command.    )absolute_import)division)unicode_literals)util)basec                   0    e Zd ZdZdddZed        Zd Zy)Listz0List all network profiles available for testing.zList all network profiles available for testing.

Run `$ {parent_command} --help` for descriptions of the network profile
parameters.
zwTo list all network profiles, run:

  {command}

To list all GSM network profiles, run:

  {command} --filter="id:GSM"
)DESCRIPTIONEXAMPLESc                 x    | j                   j                  d       t        j                  j	                  |        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.
    a  
          table[box](
            id:label=PROFILE_ID,
            synthesize((rule:up, upRule),(rule:down, downRule)):
              format="table[box](
                rule,
                delay,
                packetLossRatio:label=LOSS_RATIO,
                packetDuplicationRatio:label=DUPLICATION_RATIO,
                bandwidth,
                burst
              )"
          )
    N)display_info	AddFormatr   URI_FLAGRemoveFromParser)parsers    2lib/surface/firebase/test/network_profiles/list.pyArgsz	List.Args,   s1     !! # 	 	MM""6*    c                 Z    t        j                  | j                        }t        |dd      S )a=  Run the 'gcloud firebase test network-profiles 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 network profiles we want to have printed later or None.
    configurationsN)r   GetNetworkProfileCatalogcontextgetattr)selfargscatalogs      r   RunzList.RunD   s(     ++DLL9G7,d33r   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r    r   r   r	   r	      s/    8
-  + +.4r   r	   N)r!   
__future__r   r   r   $googlecloudsdk.api_lib.firebase.testr   googlecloudsdk.callioper   ListCommandr	   r$   r   r   <module>r)      s,    @ &  ' 5 (644 64r   