
                             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)z>The 'gcloud firebase test ios list-device-capacities' command.    )absolute_import)division)unicode_literals)util)DEVICE_CAPACITY_TABLE_FORMAT)DeviceCapacities)baseEXAMPLESa  
    To list all published capacity information for iOS devices, run:

      $ {command}

    To list capacities for only iPad devices, run:

      $ {command} --filter=ipad

    To list capacities for only iOS version 14.2 devices, run:

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

List device capacity information (high/medium/low/none) for all iOS
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    7lib/surface/firebase/test/ios/list_device_capacities.pyArgsListDeviceCapacities.Args9   s+     !!">?MM""6*    c                 `    U R                  [        R                  " U R                  5      5      $ )a  Run the 'gcloud firebase test ios 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   GetIosCatalogcontext)selfargss     r   RunListDeviceCapacities.RunD   s$     !!$"4"4T\\"BCCr    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r   __static_attributes__r    r   r   r   r   +   s!     + +D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    E &  ' 5 _ S (  "%D4++-= %DP &3  "r   