
    "	                     b    d 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' command group.    )absolute_import)division)unicode_literals)basec                   (    e Zd ZdZddiZed        Zy)NetworkProfilesap  Explore network profiles available for testing.

  A network traffic profile consists of a set of parameters to emulate network
  conditions when running a test. This feature only works on physical devices.
  The network shaping parameters are:

  - *RULE*: Where to apply traffic shaping. The UP rule shapes the
    connection from the device to the internet. The DOWN rule shapes the
    connection from the internet to the device.
  - *DELAY*: The delay in packet transmission, in ms.
  - *LOSS_RATIO*: The ratio of packets dropped during transmission.
  - *DUPLICATION_RATIO*: The ratio of packets duplicated during
    transmission.
  - *BANDWIDTH*: The average packet transmission rate in kbits/s, as
    defined by the token bucket algorithm.
  - *BURST*: The total size, in kbits, by which packets can exceed the
    bandwidth, as defined by the token bucket algorithm.
  EXAMPLESz          To list all network profiles which can be used for testing, run:

            $ {command} list

          To view information about a specific network profile, run:

            $ {command} describe PROFILE_ID
          c                      y)zMethod called by Calliope to register flags common to this sub-group.

    Args:
      parser: An argparse parser used to add arguments that immediately follow
          this group in the CLI. Positional arguments are allowed.
    N )parsers    6lib/surface/firebase/test/network_profiles/__init__.pyArgszNetworkProfiles.Args9   s     	    N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r   r   r   r   r      s,    (  
- 	 	r   r   N)	r   
__future__r   r   r   googlecloudsdk.callioper   Groupr   r   r   r   <module>r      s'     A &  ' ((	djj (	r   