
                             S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSKJ	r	  SSK
Jr  S	S
0r " S S\R                  \	5      r\\l        g)zBThe 'gcloud firebase test android list-device-capacities' command.    )absolute_import)division)unicode_literals)util)DEVICE_CAPACITY_TABLE_FORMAT)DeviceCapacities)baseEXAMPLESa+  
    To list all published capacity information for Android devices, run:

      $ {command}

    To list capacity only for the model named 'redfin', run:

      $ {command} --filter=redfin

    To list capacities only for models that support API version 30, run:

      $ {command} --filter=30
    c                   .    \ rS rSrSr\S 5       rS rSrg)ListDeviceCapacities-   aB  List capacity information for Android models & versions.

List device capacity information (high/medium/low/none) for all Android
models & versions which are available for testing and have capacity
information published.

Device capacity is the number of online devices in Firebase Test Lab. For
physical devices, the number is the average of online devices in the last 30
days. It's important to note that device capacity does not directly reflect
any real-time data, like the length of the test queue, or the
available/busy state of the devices based on current test traffic.
c                     U R                   R                  [        5        [        R                  R                  U 5        g)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.
N)display_info	AddFormatr   r	   URI_FLAGRemoveFromParser)parsers    ;lib/surface/firebase/test/android/list_device_capacities.pyArgsListDeviceCapacities.Args;   s+     !!">?MM""6*    c                 `    U R                  [        R                  " U R                  5      5      $ )a  Run the 'gcloud firebase test android list-device-capacities' 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 device models, versions, and capacity info we want to have
  printed later. Obsolete (unsupported) devices, versions, and entries
  missing capacity info are filtered out.
)get_capacity_datar   GetAndroidCatalogcontext)selfargss     r   RunListDeviceCapacities.RunF   s$     !!$"8"8"FGGr    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r   __static_attributes__r    r   r   r   r   -   s!     + +Hr   r   N)r%   
__future__r   r   r   $googlecloudsdk.api_lib.firebase.testr   6googlecloudsdk.api_lib.firebase.test.device_capacitiesr   r   googlecloudsdk.callioper	   DETAILED_HELPListCommandr   detailed_helpr    r   r   <module>r/      sT     I &  ' 5 _ S ( 	$&H4++-= &HR &3  "r   