
                             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	 ddl
mZ d	d
iZ G d dej                  e	      Zee_        y)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                   &    e Zd ZdZed        Zd Zy)ListDeviceCapacitiesa\  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                     | j                   j                  t               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.
    N)display_info	AddFormatr   r	   URI_FLAGRemoveFromParser)parsers    7lib/surface/firebase/test/ios/list_device_capacities.pyArgszListDeviceCapacities.Args9   s+     !!">?MM""6*    c                 ^    | j                  t        j                  | j                              S )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   RunzListDeviceCapacities.RunD   s$     !!$"4"4T\\"BCCr   N)__name__
__module____qualname____doc__staticmethodr   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   